summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2013-09-19 11:32:43 +0530
committerAlexander Graf <agraf@suse.de>2013-10-17 14:49:37 +0200
commitca8ccbd41dcca5ef092d0d8bb972ac9307925cfe (patch)
tree72263bfac6e52666d9ef4f1a0a3c283d20af6a87 /arch/powerpc
parentfd75cb51f261d77eadd83bcb88f2016f53f4af4a (diff)
downloadlinux-ca8ccbd41dcca5ef092d0d8bb972ac9307925cfe.tar.gz
linux-ca8ccbd41dcca5ef092d0d8bb972ac9307925cfe.tar.bz2
linux-ca8ccbd41dcca5ef092d0d8bb972ac9307925cfe.zip
kvm: powerpc: allow guest control "G" attribute in mas2
"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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/e500.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h
index 277cb1851afc..4fd9650eb018 100644
--- a/arch/powerpc/kvm/e500.h
+++ b/arch/powerpc/kvm/e500.h
@@ -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)