From 579f0c11a119bf3c425127253cfc88e340f106cf Mon Sep 17 00:00:00 2001 From: Oliver Anderson Date: Wed, 29 Jul 2026 15:24:01 +0200 Subject: [PATCH] arch: Add compatibility check for CPUID.0x7.0x2:EDX Register EDX of CPUID leaf 0x7 sub-leaf 0x2 (Structured Extended Feature Enumeration Sub-leaf) is currently not checked, but it should be. KVM supports several of the features enumerated by this value when they are supported by the host such as Intel PSFD, IPRED_CTRL, RRSBA_CTRL and more. The migration destination needs to support any such feature exposed to the guest from the migration source. Signed-off-by: Oliver Anderson On-behalf-of: SAP oliver.anderson@sap.com --- arch/src/x86_64/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/src/x86_64/mod.rs b/arch/src/x86_64/mod.rs index ddead0963..e065b84f4 100644 --- a/arch/src/x86_64/mod.rs +++ b/arch/src/x86_64/mod.rs @@ -463,6 +463,12 @@ impl CpuidFeatureEntry { feature_reg: CpuidReg::EDX, compatible_check: CpuidCompatibleCheck::BitwiseSubset, }, + CpuidFeatureEntry { + function: 7, + index: 2, + feature_reg: CpuidReg::EDX, + compatible_check: CpuidCompatibleCheck::BitwiseSubset, + }, // Leaf 0x8000_0001, ECX/EDX, CPUID features bits CpuidFeatureEntry { function: 0x8000_0001,