]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Allocate memslot resources during prepare_memory_region()
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 18 Feb 2020 21:07:19 +0000 (13:07 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:16 +0000 (17:57 +0100)
commitc561d48632855da3c252504300998e841a13b00a
treec9966db30aed2f18b1b093231d2cdd991eb14c18
parenteaa45e918ddc0bc6485d3033318a4f7fd018f231
KVM: x86: Allocate memslot resources during prepare_memory_region()

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.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c