]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: SVM: fix random segfaults with NPT enabled
authorJoerg Roedel <joerg.roedel@amd.com>
Sat, 13 Sep 2008 05:38:41 +0000 (08:38 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:22:54 +0000 (20:22 -0700)
commitfeec4f615504a766e1897412d5a9a28b1c4eec6c
treefb92d46a46533eff2297c4e2e9d86d9d847e2d89
parent7fa544746f2837f5d743b50e638fa60dd36da5a8
KVM: SVM: fix random segfaults with NPT enabled

(cherry picked from commit 44874f84918e37b64bec6df1587e5fe2fdf6ab62)

This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes
random segfaults and #UD exceptions in the guest seen under some workloads
(e.g. long running compile workloads or tbench). A kernbench run with and
without that fix showed that it has a slowdown lower than 0.5%

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