]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: SVM: allow enabling/disabling NPT by reloading only the architecture module
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 14 Jul 2008 18:36:36 +0000 (20:36 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Jul 2008 08:34:09 +0000 (11:34 +0300)
commit5f4cb662a0a2533b45656607471571460310a5ca
tree19f3f431f75f7103a1b98e1eea56978712399c6b
parent8be1a6d6c77ab4532e4476fdb8177030ef48b52c
KVM: SVM: allow enabling/disabling NPT by reloading only the architecture module

If NPT is enabled after loading both KVM modules on AMD and it should be
disabled, both KVM modules must be reloaded. If only the architecture module is
reloaded the behavior is undefined. With this patch it is possible to disable
NPT only by reloading the kvm_amd module.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/svm.c
include/asm-x86/kvm_host.h