xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] xen: arm: Set all bits in mfn_to_xen_entry()
@ 2015-08-14 21:42 Chris (Christopher) Brand
  2015-08-17 18:49 ` Julien Grall
  0 siblings, 1 reply; 4+ messages in thread
From: Chris (Christopher) Brand @ 2015-08-14 21:42 UTC (permalink / raw)
  To: xen-devel@lists.xen.org
  Cc: Julien Grall (julien.grall@citrix.com),
	stefano.stabellini@citrix.com,
	Ian Campbell (ian.campbell@citrix.com)

Ensure that every bit has a specific value.

Reported-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Chris Brand <chris.brand@broadcom.com>
---
 xen/include/asm-arm/page.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h
index 01628f3e96cb..7a56b2cb463a 100644
--- a/xen/include/asm-arm/page.h
+++ b/xen/include/asm-arm/page.h
@@ -202,9 +202,14 @@ static inline lpae_t mfn_to_xen_entry(unsigned long mfn, unsigned attr)
             .ai = attr,
             .ns = 1,              /* Hyp mode is in the non-secure world */
             .user = 1,            /* See below */
+            .ro = 0,              /* Assume read-write */
             .af = 1,              /* No need for access tracking */
             .ng = 1,              /* Makes TLB flushes easier */
+            .sbz = 0,
+            .contig = 0,          /* Assume non-contiguous */
+            .pxn = 0,
             .xn = 1,              /* No need to execute outside .text */
+            .avail = 0,
         }};;
     /* Setting the User bit is strange, but the ATS1H[RW] instructions
      * don't seem to work otherwise, and since we never run on Xen
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-17 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14 21:42 [PATCH 2/2] xen: arm: Set all bits in mfn_to_xen_entry() Chris (Christopher) Brand
2015-08-17 18:49 ` Julien Grall
2015-08-17 18:58   ` Chris (Christopher) Brand
2015-08-17 19:03     ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).