]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: fix random segfaults with NPT enabled
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 27 Aug 2008 12:18:43 +0000 (14:18 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 11 Sep 2008 08:31:53 +0000 (11:31 +0300)
commit4ea7abf62e1a45c6ee1d11f81024f1835f568251
tree8fc95bb2358322ddd9307d231849d7c0a064b001
parent7910785febbbac1b9c4437aae80ce41e28822ff2
KVM: SVM: fix random segfaults with NPT enabled

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%

Cc: stable@kernel.org
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>
arch/x86/kvm/svm.c