]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: Allow reading aliases with mmu_lock
authorAndrea Arcangeli <andrea@qumranet.com>
Fri, 25 Jul 2008 14:26:39 +0000 (16:26 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 29 Jul 2008 09:33:40 +0000 (12:33 +0300)
commita1708ce8a362c4999f1201237ae7b77c4d13af82
treed9d98623e18616a3c7eac0f652a57bd888c5cc70
parent6e86841d05f371b5b9b86ce76c02aaee83352298
KVM: Allow reading aliases with mmu_lock

This allows the mmu notifier code to run unalias_gfn with only the
mmu_lock held.  Only alias writes need the mmu_lock held. Readers will
either take the slots_lock in read mode or the mmu_lock.

Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c