]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix removal of nx capability from guest cpuid
authorAvi Kivity <avi@qumranet.com>
Wed, 25 Jul 2007 06:22:12 +0000 (09:22 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 25 Jul 2007 11:31:13 +0000 (14:31 +0300)
commit90b0988fe4d219fafcafda4f93b0b99af94352a7
tree2db7c22e03393e32ea4cdb0d55e5d13c71ed2ef2
parent7b1cfea5ff68b9161213ac40b6c7cfb892bd0c83
KVM: Fix removal of nx capability from guest cpuid

Testing the wrong bit caused kvm not to disable nx on the guest when it is
disabled on the host (an mmu optimization relies on the nx bits being the
same in the guest and host).

This allows Windows to boot when nx is disabled on te host (e.g. when
host pae is disabled).

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