Skip to contentSkip to conversation

whpx: i386: do not override CET/IBT CPUID values

PATCH New Mohamed Mediouni 1 participant 1 message Dec 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 whpx: i386: do not override CET/IBT CPUID values

From: Mohamed Mediouni <[email protected]>

There's no need to anymore, and there's a user ask to be able to disable it as it causes instability on some systems.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/5031

---
 target/i386/whpx/whpx-all.c | 13 -------------
 1 file changed, 13 deletions(-)
target/i386/whpx/whpx-all.c +0 -13
index df1c772eb3..80d7743505 100644
@@ -2685,19 +2685,6 @@ int whpx_vcpu_run(CPUState *cpu)
             /* Dynamic depending on XCR0 and XSS, so query DefaultResult */
             if (vcpu->exit_ctx.CpuidAccess.Rax == 0x07
                 && vcpu->exit_ctx.CpuidAccess.Rcx == 0) {
-                if (vcpu->exit_ctx.CpuidAccess.DefaultResultRdx
-                    & CPUID_7_0_EDX_CET_IBT) {
-                    reg_values[3].Reg32 |= CPUID_7_0_EDX_CET_IBT;
-                } else {
-                    reg_values[3].Reg32 &= ~CPUID_7_0_EDX_CET_IBT;
-                }
-
-                if (vcpu->exit_ctx.CpuidAccess.DefaultResultRcx
-                    & CPUID_7_0_ECX_CET_SHSTK) {
-                    reg_values[2].Reg32 |= CPUID_7_0_ECX_CET_SHSTK;
-                } else {
-                    reg_values[2].Reg32 &= ~CPUID_7_0_ECX_CET_SHSTK;
-                }
 
                 if (vcpu->exit_ctx.CpuidAccess.DefaultResultRcx
                     & CPUID_7_0_ECX_OSPKE) {
Signature · 1 line
2.54.0 (Apple Git-157)