aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-07-13 11:33:54 +0300
committerAvi Kivity <avi@qumranet.com>2008-07-20 12:42:40 +0300
commit722c05f2192070bac0208b2c16ce13929b32d92f (patch)
tree918037277cd65ec4abc1a9b5b15dcf0b8bb8fe25 /virt/kvm/kvm_main.c
parent2a7c5b8b550b1fb1db9eb490420132e637f5dcb4 (diff)
downloadkernel_samsung_smdk4412-722c05f2192070bac0208b2c16ce13929b32d92f.zip
kernel_samsung_smdk4412-722c05f2192070bac0208b2c16ce13929b32d92f.tar.gz
kernel_samsung_smdk4412-722c05f2192070bac0208b2c16ce13929b32d92f.tar.bz2
KVM: MMU: Fix potential race setting upper shadow ptes on nonpae hosts
The direct mapped shadow code (used for real mode and two dimensional paging) sets upper-level ptes using direct assignment rather than calling set_shadow_pte(). A nonpae host will split this into two writes, which opens up a race if another vcpu accesses the same memory area. Fix by calling set_shadow_pte() instead of assigning directly. Noticed by Izik Eidus. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions