]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mm/shadow: enclose an OOS function in the proper conditional ifdef
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Wed, 18 Apr 2012 15:49:55 +0000 (16:49 +0100)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Wed, 18 Apr 2012 15:49:55 +0000 (16:49 +0100)
Otherwise compilation fails if the feature is disabled.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-By: Gianluca Guida <gianluca.guida@citrix.com>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c

index 511a69e58625a65fcb28768bee441ffb66f59cdd..62ac0dd975c7facacd47d11586a43568eed6323f 100644 (file)
@@ -248,6 +248,7 @@ shadow_check_gwalk(struct vcpu *v, unsigned long va, walk_t *gw, int version)
     return !mismatch;
 }
 
+#if (SHADOW_OPTIMIZATIONS & SHOPT_OUT_OF_SYNC)
 static int
 shadow_check_gl1e(struct vcpu *v, walk_t *gw)
 {
@@ -263,7 +264,7 @@ shadow_check_gl1e(struct vcpu *v, walk_t *gw)
 
     return gw->l1e.l1 != nl1e.l1;
 }
-
+#endif
 
 /* Remove write access permissions from a gwalk_t in a batch, and
  * return OR-ed result for TLB flush hint and need to rewalk the guest