KVM: Make EFER reads safe when EFER does not exist
commit21616cb7a37a63b9f33ea2e45ab6d29910b43fd2
authorAvi Kivity <avi@redhat.com>
Sun, 3 May 2009 15:50:55 +0000 (3 18:50 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 May 2009 23:35:19 +0000 (18 16:35 -0700)
tree827e496d90983666abc0400a73cf2f7fc374510c
parenta6ddabcdf09bf394de04ca5c772129cb8fc6e179
KVM: Make EFER reads safe when EFER does not exist

commit e286e86e6d2042d67d09244aa0e05ffef75c9d54 upstream.

Some processors don't have EFER; don't oops if userspace wants us to
read EFER when we check NX.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c