]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: Fix wrong count setting
authorYang Zhong <yang.zhong@intel.com>
Mon, 30 May 2022 13:18:34 +0000 (09:18 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:53 +0000 (09:26 +0200)
commitb0f3184e82817b700ea81bc76ebc8d999de35278
tree52fb68b90cbe99c54de707bf290d7a23a55253e0
parentd8f3a60931a700c327aa2ee10d0beaeea2cb97da
target/i386: Fix wrong count setting

The previous patch used wrong count setting with index value, which got wrong
value from CPUID(EAX=12,ECX=0):EAX. So the SGX1 instruction can't be exposed
to VM and the SGX decice can't work in VM.

Fixes: d19d6ffa0710 ("target/i386: introduce helper to access supported CPUID")
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220530131834.1222801-1-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c