Skip to contentSkip to conversation

x86/p2m: p2m_flags_to_type() deals only with "unsigned int"

PATCH In review Jan Beulich 3 participants 3 messages Feb 6, 2020 – Feb 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/p2m: p2m_flags_to_type() deals only with "unsigned int"

PTE flags, for now at least, get stored in "unsigned int". Hence there's no need to widen the values to "unsigned long" before processing them.

xen/include/asm-x86/p2m.h +1 -1
@@ -796,7 +796,7 @@ extern void audit_p2m(struct domain *d,
  */
 
 /* Extract the type from the PTE flags that store it */
-static inline p2m_type_t p2m_flags_to_type(unsigned long flags)
+static inline p2m_type_t p2m_flags_to_type(unsigned int flags)
 {
     /* For AMD IOMMUs we need to use type 0 for plain RAM, but we need
      * to make sure that an entirely empty PTE doesn't have RAM type */

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel