mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: Add compatibility check for CPUID.0x7.0x1:ECX
Register ECX of CPUID leaf 0x7 sub-leaf 0x1 (Structured Extended Feature Enumeration Sub-leaf) is currently not checked, but it should be. KVM exposes bit 5 (MSR_IMM: the immediate forms of the RDMSR and WRMSR instructions) when the host does. Live migrating from a source that supports MSR_IMM to a destination that does not is not safe. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
fa74e7a843
commit
c22b42d2de
@@ -451,6 +451,12 @@ impl CpuidFeatureEntry {
|
||||
feature_reg: CpuidReg::EAX,
|
||||
compatible_check: CpuidCompatibleCheck::BitwiseSubset,
|
||||
},
|
||||
CpuidFeatureEntry {
|
||||
function: 7,
|
||||
index: 1,
|
||||
feature_reg: CpuidReg::ECX,
|
||||
compatible_check: CpuidCompatibleCheck::BitwiseSubset,
|
||||
},
|
||||
// Leaf 0x8000_0001, ECX/EDX, CPUID features bits
|
||||
CpuidFeatureEntry {
|
||||
function: 0x8000_0001,
|
||||
|
||||
Reference in New Issue
Block a user