]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: nVMX: shadow pin based execution controls
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Jun 2019 14:16:39 +0000 (16:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 15:10:50 +0000 (17:10 +0200)
commiteceb9973d908cb327372bf0d04f2d1ee0b27bff5
tree5db458cec6de2f37fc03fff5a64f538f6d3294c5
parent804939ea200d421fb7f3bf9eefebc38c255dd624
KVM: nVMX: shadow pin based execution controls

The VMX_PREEMPTION_TIMER flag may be toggled frequently, though not
*very* frequently.  Since it does not affect KVM's dirty logic, e.g.
the preemption timer value is loaded from vmcs12 even if vmcs12 is
"clean", there is no need to mark vmcs12 dirty when L1 writes pin
controls, and shadowing the field achieves that.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmcs_shadow_fields.h