KVM: PPC: Book3S HV: Correct tlbie usage
[linux.git] / arch / powerpc / include / asm / kvm_book3s_64.h
index 76ff0b5c9996b822061d5a7c6fc23db68d24a58b..154ba3f6b7a9afca98fc8fa1860a7f4635900060 100644 (file)
@@ -100,7 +100,7 @@ static inline unsigned long compute_tlbie_rb(unsigned long v, unsigned long r,
                        /* (masks depend on page size) */
                        rb |= 0x1000;           /* page encoding in LP field */
                        rb |= (va_low & 0x7f) << 16; /* 7b of VA in AVA/LP field */
-                       rb |= (va_low & 0xfe);  /* AVAL field (P7 doesn't seem to care) */
+                       rb |= ((va_low << 4) & 0xf0);   /* AVAL field (P7 doesn't seem to care) */
                }
        } else {
                /* 4kB page */