KVM: PPC: Book3S HV: Fix computation of tlbie operand
[pandora-kernel.git] / arch / powerpc / include / asm / kvm_book3s_64.h
index 0aa8179..a37f1a4 100644 (file)
@@ -148,7 +148,7 @@ static inline unsigned long compute_tlbie_rb(unsigned long v, unsigned long r,
        /* This covers 14..54 bits of va*/
        rb = (v & ~0x7fUL) << 16;               /* AVA field */
 
-       rb |= v >> (62 - 8);                    /*  B field */
+       rb |= (v >> HPTE_V_SSIZE_SHIFT) << 8;   /*  B field */
        /*
         * AVA in v had cleared lower 23 bits. We need to derive
         * that from pteg index