[PATCH 5/5] i386: Add Bus Lock Detect support for EPYC-Turin-v2 model

Shivansh Dhiman posted 5 patches 2 months, 2 weeks ago
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Zhao Liu <zhao1.liu@intel.com>, Marcelo Tosatti <mtosatti@redhat.com>
[PATCH 5/5] i386: Add Bus Lock Detect support for EPYC-Turin-v2 model
Posted by Shivansh Dhiman 2 months, 2 weeks ago
Enable the Bus Lock Detect feature for the EPYC-Turin-v2 CPU model to
match the hardware capabilities of AMD Turin processors. This feature
allows detection of split locks and bus locks, which can cause
performance degradation in multi-core systems.

The bus-lock-detect feature is part of the architectural capabilities
exposed through CPUID and should be enabled by default for Turin v2
and later CPU models.

Signed-off-by: Shivansh Dhiman <shivansh.dhiman@amd.com>
---
 target/i386/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 12500d6b7bed..660b9c2a98b6 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -6748,6 +6748,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
                 .version = 2,
                 .props = (PropValue[]) {
                     { "x-force-cpuid-0x80000026", "on" },
+                    { "bus-lock-detect", "on" },
                     { /* end of list */ }
                 }
             },
-- 
2.43.0