Skip to content
Commit 722c05f2 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent 2a7c5b8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment