summary refs log tree commit diff stats
path: root/hw/intc/grlib_irqmp.c
diff options
context:
space:
mode:
authorXiaoyao Li <xiaoyao.li@intel.com>2024-01-24 21:40:16 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2024-02-16 13:56:08 +0100
commit0729857c707535847d7fe31d3d91eb8b2a118e3c (patch)
tree5ac1e597c6058845cea824cc7349bb6afc43bc64 /hw/intc/grlib_irqmp.c
parenta3b5376521a0de898440e8d0942b54e628f0949f (diff)
downloadfocaccia-qemu-0729857c707535847d7fe31d3d91eb8b2a118e3c.tar.gz
focaccia-qemu-0729857c707535847d7fe31d3d91eb8b2a118e3c.zip
i386/cpuid: Move leaf 7 to correct group
CPUID leaf 7 was grouped together with SGX leaf 0x12 by commit
b9edbadefb9e ("i386: Propagate SGX CPUID sub-leafs to KVM") by mistake.

SGX leaf 0x12 has its specific logic to check if subleaf (starting from 2)
is valid or not by checking the bit 0:3 of corresponding EAX is 1 or
not.

Leaf 7 follows the logic that EAX of subleaf 0 enumerates the maximum
valid subleaf.

Fixes: b9edbadefb9e ("i386: Propagate SGX CPUID sub-leafs to KVM")
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-ID: <20240125024016.2521244-4-xiaoyao.li@intel.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions