aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/memory.c
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2012-02-02 15:47:26 +0000
committerTim Deegan <tim@xen.org>2012-02-02 15:47:26 +0000
commit6e05ed0925434a36026ca717c55b55243a3222b9 (patch)
tree91c7772831bce8cb01528bbb0b8bc0d78de6e793 /xen/common/memory.c
parent7d44891ccc13b842b9f135c77233d4d56720e219 (diff)
downloadxen-6e05ed0925434a36026ca717c55b55243a3222b9.tar.gz
xen-6e05ed0925434a36026ca717c55b55243a3222b9.tar.bz2
xen-6e05ed0925434a36026ca717c55b55243a3222b9.zip
Fix x86_32 build
Signed-off-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/common/memory.c')
-rw-r--r--xen/common/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/memory.c b/xen/common/memory.c
index b47e2447c7..489c9a620b 100644
--- a/xen/common/memory.c
+++ b/xen/common/memory.c
@@ -182,7 +182,7 @@ int guest_remove_page(struct domain *d, unsigned long gmfn)
}
page = mfn_to_page(mfn);
-#ifdef CONFIG_X86
+#ifdef CONFIG_X86_64
if ( p2m_is_shared(p2mt) )
{
/* Unshare the page, bail out on error. We unshare because
@@ -192,8 +192,8 @@ int guest_remove_page(struct domain *d, unsigned long gmfn)
if ( mem_sharing_unshare_page(d, gmfn, 0) )
return 0;
}
+#endif /* CONFIG_X86_64 */
-#endif /* CONFIG_X86 */
if ( unlikely(!get_page(page, d)) )
{
put_gfn(d, gmfn);