20 lines
782 B
Diff
20 lines
782 B
Diff
qemu-spoof: CPU microcode revision (IA32_UCODE_REV)
|
|
|
|
QEMU/KVM default ucode_rev (Intel 0x1_00000000, AMD 0x01000065) is constant and
|
|
recognisable. Route it through spoof_cpu_microcode, which returns a plausible
|
|
vendor-positioned revision (Intel in MSR bits 63:32, AMD in 31:0) anchored to the
|
|
persona CPU vendor. Inert unless a spoof-seed is set. (target/i386 spoof.h include
|
|
is added by 0013.)
|
|
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
index c6fd1dc..96cbedc 100644
|
|
--- a/target/i386/cpu.c
|
|
+++ b/target/i386/cpu.c
|
|
@@ -10026,6 +10026,7 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp)
|
|
} else {
|
|
cpu->ucode_rev = 0x100000000ULL;
|
|
}
|
|
+ cpu->ucode_rev = spoof_cpu_microcode(cpu->ucode_rev); /* qemu-spoof */
|
|
}
|
|
|
|
/*
|