KVM: SVM: fix guest global tlb flushes with NPT
commit689f18f9c2e72b4b8589b055a51ff7bc7ffbd5bd
authorJoerg Roedel <joerg.roedel@amd.com>
Sat, 13 Sep 2008 05:38:42 +0000 (13 08:38 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:22:54 +0000 (8 20:22 -0700)
tree4c3fde339990c38119dbee4ac02f7716e196e836
parentfeec4f615504a766e1897412d5a9a28b1c4eec6c
KVM: SVM: fix guest global tlb flushes with NPT

(cherry picked from commit e5eab0cede4b1ffaca4ad857d840127622038e55)

Accesses to CR4 are intercepted even with Nested Paging enabled. But the code
does not check if the guest wants to do a global TLB flush. So this flush gets
lost. This patch adds the check and the flush to svm_set_cr4.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/svm.c