aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool/backend/log.py
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2025-05-16 15:35:35 +0530
committerMichael S. Tsirkin <mst@redhat.com>2025-06-01 06:38:53 -0400
commit0f178860df3489a9d3c19a5f7f024e6aa6c26515 (patch)
treed9aa3c33480201699280fdbd1a686a766b25fe3a /scripts/tracetool/backend/log.py
parent31753d5a336fbb4e9246397f4b90b6f611f27f22 (diff)
downloadqemu-0f178860df3489a9d3c19a5f7f024e6aa6c26515.zip
qemu-0f178860df3489a9d3c19a5f7f024e6aa6c26515.tar.gz
qemu-0f178860df3489a9d3c19a5f7f024e6aa6c26515.tar.bz2
hw/i386/amd_iommu: Fix xtsup when vcpus < 255
If vCPUs > 255 then x86 common code (x86_cpus_init()) call kvm_enable_x2apic(). But if vCPUs <= 255 then the common code won't calls kvm_enable_x2apic(). This is because commit 8c6619f3e692 ("hw/i386/amd_iommu: Simplify non-KVM checks on XTSup feature") removed the call to kvm_enable_x2apic when xtsup is "on", which break things when guest is booted with x2apic mode and there are <= 255 vCPUs. Fix this by adding back kvm_enable_x2apic() call when xtsup=on. Fixes: 8c6619f3e692 ("hw/i386/amd_iommu: Simplify non-KVM checks on XTSup feature") Reported-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Tested-by: Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Cc: Philippe Mathieu-Daudé <philmd@linaro.org> Cc: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com> Message-Id: <20250516100535.4980-3-sarunkod@amd.com> Fixes: 8c6619f3e692 ("hw/i386/amd_iommu: Simplify non-KVM checks on XTSup feature") Reported-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Tested-by: Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Cc: Philippe Mathieu-Daudé <philmd@linaro.org> Cc: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Diffstat (limited to 'scripts/tracetool/backend/log.py')
0 files changed, 0 insertions, 0 deletions