KVM: Fix guest sysenter on vmx
authorAvi Kivity <avi@qumranet.com>
Tue, 6 Mar 2007 10:05:53 +0000 (12:05 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 18 Mar 2007 08:49:06 +0000 (10:49 +0200)
commitf5b42c3324494ea3f9bf795e2a7e4d3cbb06c607
tree98019c1e0f8d6ac45386dea3f4d5eab356ea864c
parentca45aaae1ef98890ac4e3ee48d65aa22401fd1dc
KVM: Fix guest sysenter on vmx

The vmx code currently treats the guest's sysenter support msrs as 32-bit
values, which breaks 32-bit compat mode userspace on 64-bit guests.  Fix by
using the native word width of the machine.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c