Explorar el Código

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>
Mihai Caraman hace 13 años
padre
commit
66c9897d9d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      arch/powerpc/kvm/e500mc.c

+ 2 - 1
arch/powerpc/kvm/e500mc.c

@@ -57,7 +57,8 @@ void kvmppc_e500_tlbil_one(struct kvmppc_vcpu_e500 *vcpu_e500,
 			   struct kvm_book3e_206_tlb_entry *gtlbe)
 			   struct kvm_book3e_206_tlb_entry *gtlbe)
 {
 {
 	unsigned int tid, ts;
 	unsigned int tid, ts;
-	u32 val, eaddr, lpid;
+	gva_t eaddr;
+	u32 val, lpid;
 	unsigned long flags;
 	unsigned long flags;
 
 
 	ts = get_tlb_ts(gtlbe);
 	ts = get_tlb_ts(gtlbe);