Marcelo Tosatti bed1d1dfc4 KVM: MMU: prepopulate guest pages after write-protecting
Zdenek reported a bug where a looping "dmsetup status" eventually hangs
on SMP guests.

The problem is that kvm_mmu_get_page() prepopulates the shadow MMU
before write protecting the guest page tables. By doing so, it leaves a
window open where the guest can mark a pte as present while the host has
shadow cached such pte as "notrap". Accesses to such address will fault
in the guest without the host having a chance to fix the situation.

Fix by moving the write protection before the pte prefetch.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-04-27 12:00:58 +03:00
..
2008-04-27 12:00:21 +03:00
2008-04-27 12:00:36 +03:00
2008-01-30 18:01:20 +02:00
2008-04-27 12:00:21 +03:00
2008-04-27 11:53:20 +03:00
2008-04-27 12:00:52 +03:00
2008-04-27 12:00:52 +03:00
2008-04-27 11:53:21 +03:00