KVM: VMX: Relax check on unusable segment
authorAvi Kivity <avi@redhat.com>
Thu, 7 Jun 2012 14:06:10 +0000 (17:06 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:01 +0000 (14:19 +0300)
commitf0495f9b9992f80f82b14306946444b287193390
tree407c142b0b1ac05c28962143ef3253b34d9f912c
parent510425ff3344df03a1f94bce49e659ae302e0d34
KVM: VMX: Relax check on unusable segment

Some userspace (e.g. QEMU 1.1) munge the d and g bits of segment
descriptors, causing us not to recognize them as unusable segments
with emulate_invalid_guest_state=1.  Relax the check by testing for
segment not present (a non-present segment cannot be usable).

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c