]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: vmx: shadow more fields that are read/written on every vmexits
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Dec 2017 10:05:19 +0000 (11:05 +0100)
committerBrian Maly <brian.maly@oracle.com>
Mon, 5 Nov 2018 21:14:48 +0000 (16:14 -0500)
commit32e5dac3ae8dfa2f1c197e5da39b61d8cc80ead2
treedc460a0f614bb4cff7a855291e8f8069aa8769fd
parenta6f8896f11ecee151a1d6ad014620b495c10df4c
KVM: vmx: shadow more fields that are read/written on every vmexits

Compared to when VMCS shadowing was added to KVM, we are reading/writing
a few more fields: the PML index, the interrupt status and the preemption
timer value.  The first two are because we are exposing more features
to nested guests.  Adding them to the shadow VMCS field lists reduces
the cost of a vmexit by about 1000 clock cycles for each field that exists
on bare metal.

On the other hand, the guest BNDCFGS and TSC offset are not written on
fast paths, so remove them.

Suggested-by: Jim Mattson <jmattson@google.com>
Cc: Jim Mattson <jmattson@google.com>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
(cherry picked from commit c5d167b27e00026711ad19a33a23d5d3d562148a)

Orabug: 28581045

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
arch/x86/kvm/vmx.c
Different context and dropped VMX_PREEMPTION_TIMER_VALUE shadow at it requires
a lot more dependencies.

Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kvm/vmx.c