]> git.baikalelectronics.ru Git - kernel.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)
commit3e9924d89da688e9447bb17904e1e99c71ee94d9
tree19f3f431f75f7103a1b98e1eea56978712399c6b
parent449413fce8a168d211a6a376c1ad0f0177fdd369
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