diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2009-03-12 18:18:43 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 11:03:14 +0200 |
commit | 4539b35881ae9664b0e2953438dd83f5ee02c0b4 (patch) | |
tree | 2bade12f83d50ff15947176d64c868c34f8df70a /sound | |
parent | 36463146ffb7eee4582ed785a8c8be213b8ed110 (diff) |
KVM: Fix missing smp tlb flush in invlpg
When kvm emulates an invlpg instruction, it can drop a shadow pte, but
leaves the guest tlbs intact. This can cause memory corruption when
swapping out.
Without this the other cpu can still write to a freed host physical page.
tlb smp flush must happen if rmap_remove is called always before mmu_lock
is released because the VM will take the mmu_lock before it can finally add
the page to the freelist after swapout. mmu notifier makes it safe to flush
the tlb after freeing the page (otherwise it would never be safe) so we can do
a single flush for multiple sptes invalidated.
Cc: stable@kernel.org
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions