Commit 66c9897d9d7675bfb8f4cc4d57ceb00b6a12a2e8

Authored by Mihai Caraman
Committed by Alexander Graf
1 parent c7ba7771c3

KVM: PPC: e500mc: Fix tlbilx emulation for 64-bit guests

tlbilxva emulation was using an u32 variable for guest effective address.
Replace it with gva_t type to handle 64-bit guests.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

arch/powerpc/kvm/e500mc.c
... ... @@ -57,7 +57,8 @@
57 57 struct kvm_book3e_206_tlb_entry *gtlbe)
58 58 {
59 59 unsigned int tid, ts;
60   - u32 val, eaddr, lpid;
  60 + gva_t eaddr;
  61 + u32 val, lpid;
61 62 unsigned long flags;
62 63  
63 64 ts = get_tlb_ts(gtlbe);