x86_32: sh_clear_up_pointer is only used if CONFIG_PAGING_LEVELS >= 4
authorKeir Fraser <keir@xen.org>
Mon, 4 Oct 2010 11:52:14 +0000 (12:52 +0100)
committerKeir Fraser <keir@xen.org>
Mon, 4 Oct 2010 11:52:14 +0000 (12:52 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/x86/mm/shadow/common.c

index d063a4e371e71f2a98fe01aeab71f83dc2368985..143a2d73d80a58118b4d074a0c379e6baa7c63f9 100644 (file)
@@ -2776,6 +2776,7 @@ sh_remove_all_shadows_and_parents(struct vcpu *v, mfn_t gmfn)
 
 /**************************************************************************/
 
+#if CONFIG_PAGING_LEVELS >= 4
 /* Reset the up-pointers of every L3 shadow to 0. 
  * This is called when l3 shadows stop being pinnable, to clear out all
  * the list-head bits so the up-pointer field is properly inititalised. */
@@ -2784,6 +2785,7 @@ static int sh_clear_up_pointer(struct vcpu *v, mfn_t smfn, mfn_t unused)
     mfn_to_page(smfn)->up = 0;
     return 0;
 }
+#endif
 
 void sh_reset_l3_up_pointers(struct vcpu *v)
 {