Re: [PATCH] kvm/x86/vmx: Make the emulation of MSR_IA32_ARCH_CAPABILITIES only for vmx

2019-03-07 Thread Xiaoyao Li
On Thu, 2019-03-07 at 19:15 +0100, Paolo Bonzini wrote: > On 07/03/19 18:37, Sean Christopherson wrote: > > On Thu, Mar 07, 2019 at 05:31:43PM +0800, Xiaoyao Li wrote: > > > At present, we report F(ARCH_CAPABILITIES) for x86 arch(both vmx and svm) > > > unconditionally, but we only emulate this

Re: [PATCH] kvm/x86/vmx: Make the emulation of MSR_IA32_ARCH_CAPABILITIES only for vmx

2019-03-07 Thread Paolo Bonzini
On 07/03/19 18:37, Sean Christopherson wrote: > On Thu, Mar 07, 2019 at 05:31:43PM +0800, Xiaoyao Li wrote: >> At present, we report F(ARCH_CAPABILITIES) for x86 arch(both vmx and svm) >> unconditionally, but we only emulate this MSR in vmx. It will cause #GP >> while guest kernel

[PATCH] kvm/x86/vmx: Make the emulation of MSR_IA32_ARCH_CAPABILITIES only for vmx

2019-03-07 Thread Xiaoyao Li
At present, we report F(ARCH_CAPABILITIES) for x86 arch(both vmx and svm) unconditionally, but we only emulate this MSR in vmx. It will cause #GP while guest kernel rdmsr(MSR_IA32_ARCH_CAPABILITIES) in an AMD host. Since MSR IA32_ARCH_CAPABILITIES is an intel-specific MSR, it makes no sense to