[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <efc22d22-9cb6-41f7-a703-e96cbaf0aca7@intel.com>
Date: Tue, 13 Aug 2024 23:14:31 +0800
From: Xiaoyao Li <xiaoyao.li@...el.com>
To: Chao Gao <chao.gao@...el.com>, Rick Edgecombe <rick.p.edgecombe@...el.com>
Cc: seanjc@...gle.com, pbonzini@...hat.com, kvm@...r.kernel.org,
kai.huang@...el.com, isaku.yamahata@...il.com,
tony.lindgren@...ux.intel.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 25/25] KVM: x86: Add CPUID bits missing from
KVM_GET_SUPPORTED_CPUID
On 8/13/2024 7:34 PM, Chao Gao wrote:
> I think adding new fixed-1 bits is fine as long as they don't break KVM, i.e.,
> KVM shouldn't need to take any action for the new fixed-1 bits, like
> saving/restoring more host CPU states across TD-enter/exit or emulating
> CPUID/MSR accesses from guests
I disagree. Adding new fixed-1 bits in a newer TDX module can lead to a
different TD with same cpu model.
People may argue that for the new features that have no vmcs control bit
(usually the new instruction) face the similar issue. Booting a VM with
same cpu model on a new platform with such new feature leads to the VM
actually can use the new feature.
However, for the perspective of CPUID, VMM at least can make sure it
unchanged, though guest can access the feature even when guest CPUID
tells no such feature. This is virtualization hole. no one like it.
Powered by blists - more mailing lists