Skip to contentSkip to conversation

x86/shadow: Fix build with CONFIG_SHADOW_PAGING=n following c/s 2fc002b

PATCH In review Andrew Cooper 3 participants 4 messages Jul 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/shadow: Fix build with CONFIG_SHADOW_PAGING=n following c/s 2fc002b

c/s 2fc002b "xen: Use a typesafe to define INVALID_GFN" changed INVALID_GFN to be a boxed type.

Identified by a Travis randconfig run:
https://travis-ci.org/xen-project/xen/jobs/144980445

---
CC: Tim Deegan <[email protected]>
CC: George Dunlap <[email protected]>
CC: Julien Grall <[email protected]>

---
 xen/arch/x86/mm/shadow/none.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/shadow/none.c +1 -1
index 38bdf92..69e56c5 100644
@@ -42,7 +42,7 @@ static unsigned long _gva_to_gfn(struct vcpu *v, struct p2m_domain *p2m,
                                  unsigned long va, uint32_t *pfec)
 {
     ASSERT_UNREACHABLE();
-    return INVALID_GFN;
+    return gfn_x(INVALID_GFN);
 }
 
 static void _update_cr3(struct vcpu *v, int do_locking)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper

Hi Andrew,

Quoted 7 lines · Andrew Cooper

c/s 2fc002b "xen: Use a typesafe to define INVALID_GFN" changed INVALID_GFN to be a boxed type.

Identified by a Travis randconfig run:

   https://travis-ci.org/xen-project/xen/jobs/144980445

Sorry for the breakage:

Regards,

Quoted 22 lines

---
CC: Tim Deegan <[email protected]>
CC: George Dunlap <[email protected]>
CC: Julien Grall <[email protected]>

---
  xen/arch/x86/mm/shadow/none.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/shadow/none.c +1 -1
index 38bdf92..69e56c5 100644
@@ -42,7 +42,7 @@ static unsigned long _gva_to_gfn(struct vcpu *v, struct p2m_domain *p2m,
                                   unsigned long va, uint32_t *pfec)
  {
      ASSERT_UNREACHABLE();
-    return INVALID_GFN;
+    return gfn_x(INVALID_GFN);
  }
 
  static void _update_cr3(struct vcpu *v, int do_locking)
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
Quoted 7 lines · Julien Grall

Hi Andrew,

Quoted 4 lines · Andrew Cooper

c/s 2fc002b "xen: Use a typesafe to define INVALID_GFN" changed INVALID_GFN to
be a boxed type.

Quoted 6 lines
Quoted 4 lines

Identified by a Travis randconfig run:

   https://travis-ci.org/xen-project/xen/jobs/144980445

Sorry for the breakage:

No problem. Breakage like this is always going to happen when making sweeping improvements like that; It even slipped through my pre-push checks.

At least we now have automation in place now which complains.

~Andrew

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