]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8368f96341a264b1b5ac3d190e3856418c770dd2
treeabc436e9f9c01f21526833cf2b6c4948ab0d5b7b
parent1d966b60f3e1e07545bfc377d33545261be27b07
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