All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] x86/cpuid: Hide XSAVES/RDRAND/RDSEED from nested VMX guests
@ 2026-11-30  7:38 chunjie.zhu
  2026-11-30  7:38 ` [PATCH v1 1/2] x86/cpuid: Hide XSAVES " chunjie.zhu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: chunjie.zhu @ 2026-11-30  7:38 UTC (permalink / raw)
  To: xen-devel; +Cc: jbeulich, andrew.cooper3, roger, teddy.astie, Chunjie Zhu

From: Chunjie Zhu <chunjie.zhu@citrix.com>

Hyper-V (hvix64) as an L1 guest on Xen checks that every feature CPUID
reports has the matching secondary VM-execution control available in
IA32_VMX_PROCBASED_CTLS2, and fails early during boot otherwise.  Xen's
nested VMX does not offer the XSAVES, RDRAND-exiting or RDSEED-exiting
controls, so hide the features from L1 instead.

This is a pragmatic workaround rather than a complete answer.  Ideally the
CPUID policy would be derived from what nested VMX can actually offer, at
the toolstack level, and I'd welcome guidance on whether that is the
preferred direction before this goes any further.

Tested with a Hyper-V L1 guest, which gets past the VMX capability checks
with these applied.  Applies on top of current master.


Chunjie Zhu (2):
  x86/cpuid: Hide XSAVES from nested VMX guests
  x86/cpuid: Hide RDRAND and RDSEED from nested VMX guests

 xen/arch/x86/cpuid.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-01 11:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  7:38 [PATCH v1 0/2] x86/cpuid: Hide XSAVES/RDRAND/RDSEED from nested VMX guests chunjie.zhu
2026-11-30  7:38 ` [PATCH v1 1/2] x86/cpuid: Hide XSAVES " chunjie.zhu
2026-11-30  7:38 ` [PATCH v1 2/2] x86/cpuid: Hide RDRAND and RDSEED " chunjie.zhu
2026-11-30 22:15   ` Teddy Astie
2026-12-01 11:09 ` [PATCH v1 0/2] x86/cpuid: Hide XSAVES/RDRAND/RDSEED " Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.