]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: RCU'ify the Book3s MMU
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 13:04:17 +0000 (15:04 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:58 +0000 (10:50 +0200)
commitef35dce26cea2cc75afe892442f23118e3f78fee
treece0d8f7cd57b50750b14740d2443fd6476db388d
parent1388081e60668f145c800e19cb2cfe36ebeb9532
KVM: PPC: RCU'ify the Book3s MMU

So far we've been running all code without locking of any sort. This wasn't
really an issue because I didn't see any parallel access to the shadow MMU
code coming.

But then I started to implement dirty bitmapping to MOL which has the video
code in its own thread, so suddenly we had the dirty bitmap code run in
parallel to the shadow mmu code. And with that came trouble.

So I went ahead and made the MMU modifying functions as parallelizable as
I could think of. I hope I didn't screw up too much RCU logic :-). If you
know your way around RCU and locking and what needs to be done when, please
take a look at this patch.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_mmu_hpte.c