xen: arm: Be explicit about bit values in mfn_to_xen_entry()
authorChris Brand <chris.brand@broadcom.com>
Thu, 10 Sep 2015 18:56:29 +0000 (11:56 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 11 Sep 2015 13:29:34 +0000 (14:29 +0100)
Ensure that every relevant bit is given an explicit value.
This has no effect on the generated code, but makes it
a little easier to follow.

Reported-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Chris Brand <chris.brand@broadcom.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/page.h

index 01628f3e96cb0179489ff694cc6d0148eb8f4212..a94e978a9995e9428ae9b83599c4aaf53710d06a 100644 (file)
@@ -202,9 +202,12 @@ 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 */
+            .contig = 0,          /* Assume non-contiguous */
             .xn = 1,              /* No need to execute outside .text */
+            .avail = 0,           /* Reference count for domheap mapping */
         }};;
     /* Setting the User bit is strange, but the ATS1H[RW] instructions
      * don't seem to work otherwise, and since we never run on Xen