KVM: Make EFER reads safe when EFER does not exist
authorAvi Kivity <avi@redhat.com>
Sun, 3 May 2009 15:50:55 +0000 (18:50 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 11 May 2009 08:19:00 +0000 (11:19 +0300)
commite286e86e6d2042d67d09244aa0e05ffef75c9d54
tree6fbabd149ba7e0b2fa06a03f39cebe268de9dc8b
parent334b8ad7b182fc14d720acd7729afda3ab4c7e3a
KVM: Make EFER reads safe when EFER does not exist

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

Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c