]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2843237c7dcc44b87b4cd3511b7b45611ed6d376
tree9fcb56b3709816ad9aecc9ec11e1a49a280ba507
parent77c78e063fb0bbfaf99d1425dce0f7a07131c27e
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