Re: [PATCH RFC 2/3] x86/kvm/hyper-v: move VMX controls sanitization out of nested_enable_evmcs()

From: Paolo Bonzini
Date: Sat Jan 18 2020 - 16:42:39 EST


On 16/01/20 17:19, Sean Christopherson wrote:
> Why not just do this in Qemu? IMO that's not a major ask, e.g. Qemu is
> doing a decent amount of manual adjustment anyways. And Qemu isn't even
> using the result of KVM_GET_MSRS so I don't think it's fair to say this is
> solely KVM's fault.

IMHO the features should stay available in case the guest chooses not to
use eVMCS. A guest that uses eVMCS should know which features it cannot
use and not enable them.

Paolo