kvm: powerpc: allow guest control "G" attribute in mas2
authorBharat Bhushan <r65777@freescale.com>
Thu, 19 Sep 2013 06:02:43 +0000 (11:32 +0530)
committerAlexander Graf <agraf@suse.de>
Thu, 17 Oct 2013 12:49:37 +0000 (14:49 +0200)
"G" bit in MAS2 indicates whether the page is Guarded.
There is no reason to stop guest setting  "G", so allow him.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/e500.h

index 277cb1851afced0574ef64757c096851c149b715..4fd9650eb0185374bfd567291dd16ce5f397b688 100644 (file)
@@ -117,7 +117,7 @@ static inline struct kvmppc_vcpu_e500 *to_e500(struct kvm_vcpu *vcpu)
 #define E500_TLB_USER_PERM_MASK (MAS3_UX|MAS3_UR|MAS3_UW)
 #define E500_TLB_SUPER_PERM_MASK (MAS3_SX|MAS3_SR|MAS3_SW)
 #define MAS2_ATTRIB_MASK \
-         (MAS2_X0 | MAS2_X1 | MAS2_E)
+         (MAS2_X0 | MAS2_X1 | MAS2_E | MAS2_G)
 #define MAS3_ATTRIB_MASK \
          (MAS3_U0 | MAS3_U1 | MAS3_U2 | MAS3_U3 \
           | E500_TLB_USER_PERM_MASK | E500_TLB_SUPER_PERM_MASK)