aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/video/Makefile
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-03-15 13:59:54 +0200
committerAvi Kivity <avi@redhat.com>2010-05-17 12:15:39 +0300
commitdaea3e73cb4ac971bee97f333ae027861d00fc0b (patch)
treef6bf34cb9ad1e4ec85c8ef2a11ddee9d24c73d9a /arch/x86/video/Makefile
parent72016f3a4221799a0b1fdf443ef6e29db572a9bb (diff)
downloadkernel_samsung_tuna-daea3e73cb4ac971bee97f333ae027861d00fc0b.zip
kernel_samsung_tuna-daea3e73cb4ac971bee97f333ae027861d00fc0b.tar.gz
kernel_samsung_tuna-daea3e73cb4ac971bee97f333ae027861d00fc0b.tar.bz2
KVM: Make locked operations truly atomic
Once upon a time, locked operations were emulated while holding the mmu mutex. Since mmu pages were write protected, it was safe to emulate the writes in a non-atomic manner, since there could be no other writer, either in the guest or in the kernel. These days emulation takes place without holding the mmu spinlock, so the write could be preempted by an unshadowing event, which exposes the page to writes by the guest. This may cause corruption of guest page tables. Fix by using an atomic cmpxchg for these operations. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/video/Makefile')
0 files changed, 0 insertions, 0 deletions