OSDN Git Service

KVM: nVMX: Eliminate vmcs02 pool
authorJim Mattson <jmattson@google.com>
Mon, 27 Nov 2017 23:22:25 +0000 (17:22 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Jan 2018 08:43:03 +0000 (09:43 +0100)
commitde3a0021a60635de96aa92713c1a31a96747d72c
tree9fcb56b3709816ad9aecc9ec11e1a49a280ba507
parentba804bb4b72e57374b5f567b783aa0298fba0ce6
KVM: nVMX: Eliminate vmcs02 pool

The potential performance advantages of a vmcs02 pool have never been
realized. To simplify the code, eliminate the pool. Instead, a single
vmcs02 is allocated per VCPU when the VCPU enters VMX operation.

Cc: stable@vger.kernel.org # prereq for Spectre mitigation
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Mark Kanda <mark.kanda@oracle.com>
Reviewed-by: Ameya More <ameya.more@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c