OSDN Git Service

kvm: x86: Disable RDMSR interception of IA32_XFD_ERR
authorJing Liu <jing2.liu@intel.com>
Wed, 5 Jan 2022 12:35:25 +0000 (04:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jan 2022 18:44:33 +0000 (13:44 -0500)
commit61f208134a871047f1d642ed3b813f4f71e30b0e
treeabc436e9f9c01f21526833cf2b6c4948ab0d5b7b
parent548e83650a51dce0d188b9e41b1e2ca5d63597cf
kvm: x86: Disable RDMSR interception of IA32_XFD_ERR

This saves one unnecessary VM-exit in guest #NM handler, given that the
MSR is already restored with the guest value before the guest is resumed.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220105123532.12586-15-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h