Re: [PATCH v4 05/19] KVM: x86: Allocate memslot resources during prepare_memory_region()

From: Peter Xu
Date: Tue Dec 17 2019 - 17:07:29 EST


On Tue, Dec 17, 2019 at 12:40:27PM -0800, Sean Christopherson wrote:
> Allocate the various metadata structures associated with a new memslot
> during kvm_arch_prepare_memory_region(), which paves the way for
> removing kvm_arch_create_memslot() altogether. Moving x86's memory
> allocation only changes the order of kernel memory allocations between
> x86 and common KVM code.
>
> No functional change intended.

(I still think it's a functional change, though...)

>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

Reviewed-by: Peter Xu <peterx@xxxxxxxxxx>

--
Peter Xu