whpx: i386: do not override CET/IBT CPUID values
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
Signed-off-by Mohamed Mediouni <[email protected]>
--- target/i386/whpx/whpx-all.c | 13 ------------- 1 file changed, 13 deletions(-)
target/i386/whpx/whpx-all.c +0 -13
@@ -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)