summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-09-13 16:45:28 +0200
committerAvi Kivity <avi@redhat.com>2010-10-24 10:52:49 +0200
commitb0bc3ee2b54fcea0df42cc9aa05103b1ccd89db0 (patch)
tree15f55e178b86b69116bff5f1e53a1fbcd88ed033 /arch/x86/kvm/svm.c
parentc39cbd2a0012334714409eec1e9cf4d542e359e9 (diff)
downloadblackbird-op-linux-b0bc3ee2b54fcea0df42cc9aa05103b1ccd89db0.tar.gz
blackbird-op-linux-b0bc3ee2b54fcea0df42cc9aa05103b1ccd89db0.zip
KVM: MMU: Fix regression with ept memory types merged into non-ept page tables
Commit "KVM: MMU: Make tdp_enabled a mmu-context parameter" made real-mode set ->direct_map, and changed the code that merges in the memory type depend on direct_map instead of tdp_enabled. However, in this case what really matters is tdp, not direct_map, since tdp changes the pte format regardless of whether the mapping is direct or not. As a result, real-mode shadow mappings got corrupted with ept memory types. The result was a huge slowdown, likely due to the cache being disabled. Change it back as the simplest fix for the regression (real fix is to move all that to vmx code, and not use tdp_enabled as a synonym for ept). Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud