]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Interpret SR registers on demand
authorAlexander Graf <agraf@suse.de>
Mon, 2 Aug 2010 23:06:11 +0000 (01:06 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:11 +0000 (10:52 +0200)
commit545778fd6dad1e2f0026e6358ffc47b9da499acb
treea8afc1f2093faa9b85bda703e846ed461630f88d
parent570f1bce090cd62e8ceec19f664096f5587fd35b
KVM: PPC: Interpret SR registers on demand

Right now we're examining the contents of Book3s_32's segment registers when
the register is written and put the interpreted contents into a struct.

There are two reasons this is bad. For starters, the struct has worse real-time
performance, as it occupies more ram. But the more important part is that with
segment registers being interpreted from their raw values, we can put them in
the shared page, allowing guests to mess with them directly.

This patch makes the internal representation of SRs be u32s.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_32_mmu.c