]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: nVMX: Update vmcs12 for MSR_IA32_DEBUGCTLMSR when it's written
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:37 +0000 (09:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:47:37 +0000 (11:47 +0200)
commit699a1ac214328569d203b9c6bfc22903d5642dee
tree7c2cf3f091ffed8144290c7ec9809e014532cb7d
parentde70d279709efb7d0b0c0dce2eb398fc43c4b7f6
KVM: nVMX: Update vmcs12 for MSR_IA32_DEBUGCTLMSR when it's written

KVM unconditionally intercepts WRMSR to MSR_IA32_DEBUGCTLMSR.  In the
unlikely event that L1 allows L2 to write L1's MSR_IA32_DEBUGCTLMSR, but
but saves L2's value on VM-Exit, update vmcs12 during L2's WRMSR so as
to eliminate the need to VMREAD the value from vmcs02 on nested VM-Exit.

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