]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix exit qualification width on i386
authorHe, Qing <qing.he@intel.com>
Wed, 12 Sep 2007 06:18:28 +0000 (14:18 +0800)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:28 +0000 (10:18 +0200)
commitcfe9a8af0ef1b71326bbeff03b04872bdb8dc4a3
tree35c7a10421a67316c0aa87f70b11db829137e4b9
parentd021231bb8e813ff7c18acd3dbb1a587890946b6
KVM: VMX: Fix exit qualification width on i386

According to Intel Software Developer's Manual, Vol. 3B, Appendix H.4.2,
exit qualification should be of natural width. However, current code
uses u64 as the data type for this register, which occasionally
introduces invalid value to VMExit handling logics. This patch fixes
this bug.

I have tested Windows and Linux guest on i386 host, and they can boot
successfully with this patch.

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c