Re: [PATCH v10 031/108] KVM: x86/mmu: Replace hardcoded value 0 for the initial value for SPTE

From: Huang, Kai
Date: Tue Nov 08 2022 - 06:33:27 EST


On Sat, 2022-10-29 at 23:22 -0700, isaku.yamahata@xxxxxxxxx wrote:
> The plan is to unconditionally set the "suppress #VE" bit for both AMD and
> Intel as: 1) AMD hardware doesn't use this bit; 2) for conventional VMX
> guests, KVM never enables the "EPT-violation #VE" in VMCS control and
> "suppress #VE" bit is ignored by hardware.

Hi Isaku,

"AMD hardware doesn't use this bit" is wrong:

https://lore.kernel.org/lkml/cover.1659854790.git.isaku.yamahata@xxxxxxxxx/T/#m5ed59404da43677e99ac51dd1360dc22b964bcbb