KVM: PPC: Interpret SR registers on demand
commit8e8651783ff2458f31098be7c2abacf2fcab054a
authorAlexander Graf <agraf@suse.de>
Mon, 2 Aug 2010 23:06:11 +0000 (3 01:06 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:11 +0000 (24 10:52 +0200)
treea8afc1f2093faa9b85bda703e846ed461630f88d
parentc1c88e2fa16f979ba3e99018a53962abe852b30f
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