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)
commitbfdaab090386e7dda8c442721eeb91179258dad4
tree35c7a10421a67316c0aa87f70b11db829137e4b9
parent04d2cc7780d48a212843e38d46402d97fa1f4774
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