From: Avi Kivity Date: Sun, 13 Jul 2008 08:33:54 +0000 (+0300) Subject: KVM: MMU: Fix potential race setting upper shadow ptes on nonpae hosts X-Git-Tag: v2.6.27-rc1~968^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=722c05f2192070bac0208b2c16ce13929b32d92f;p=pandora-kernel.git 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 --- Reading git-diff-tree failed