summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/book3s_mmu_hpte.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2011-06-29 00:16:42 +0000
committerAvi Kivity <avi@redhat.com>2011-07-12 13:16:45 +0300
commit149dbdb1859be46a063a5b1b0aa99a5f999b7632 (patch)
tree2629bd148e3e0a5a64ddb7c4bc070debade48c69 /arch/powerpc/kvm/book3s_mmu_hpte.c
parent3c8c652ae4c984a950d0672597085db866509914 (diff)
KVM: PPC: Fix machine checks on 32-bit Book3S
Commit 69acc0d3ba ("KVM: PPC: Resolve real-mode handlers through function exports") resulted in vcpu->arch.trampoline_lowmem and vcpu->arch.trampoline_enter ending up with kernel virtual addresses rather than physical addresses. This is OK on 64-bit Book3S machines, which ignore the top 4 bits of the effective address in real mode, but on 32-bit Book3S machines, accessing these addresses in real mode causes machine check interrupts, as the hardware uses the whole effective address as the physical address in real mode. This fixes the problem by using __pa() to convert these addresses to physical addresses. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/book3s_mmu_hpte.c')
0 files changed, 0 insertions, 0 deletions