[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] linux/blktap2: allow to build as module



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1244107954 -3600
# Node ID 485fe5efa4ff61393101ff151ce9a6e2816dd00f
# Parent  104b6ae6b25765ec778c12536f02d2c81e771ac6
linux/blktap2: allow to build as module

... and also allow to interact with blkback when that's also built as
a module.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/i386/mm/hypervisor.c    |    2 ++
 drivers/xen/blktap2/device.c |    3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff -r 104b6ae6b257 -r 485fe5efa4ff arch/i386/mm/hypervisor.c
--- a/arch/i386/mm/hypervisor.c Wed Jun 03 11:22:24 2009 +0100
+++ b/arch/i386/mm/hypervisor.c Thu Jun 04 10:32:34 2009 +0100
@@ -122,6 +122,7 @@ void xen_tlb_flush_all(void)
        op.cmd = MMUEXT_TLB_FLUSH_ALL;
        BUG_ON(HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF) < 0);
 }
+EXPORT_SYMBOL_GPL(xen_tlb_flush_all);
 
 void xen_tlb_flush_mask(cpumask_t *mask)
 {
@@ -132,6 +133,7 @@ void xen_tlb_flush_mask(cpumask_t *mask)
        set_xen_guest_handle(op.arg2.vcpumask, mask->bits);
        BUG_ON(HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF) < 0);
 }
+EXPORT_SYMBOL_GPL(xen_tlb_flush_mask);
 
 void xen_invlpg_all(unsigned long ptr)
 {
diff -r 104b6ae6b257 -r 485fe5efa4ff drivers/xen/blktap2/device.c
--- a/drivers/xen/blktap2/device.c      Wed Jun 03 11:22:24 2009 +0100
+++ b/drivers/xen/blktap2/device.c      Thu Jun 04 10:32:34 2009 +0100
@@ -13,7 +13,8 @@
 
 #include "blktap.h"
 
-#ifdef CONFIG_XEN_BLKDEV_BACKEND
+#if defined(CONFIG_XEN_BLKDEV_BACKEND) || \
+    (defined(CONFIG_XEN_BLKDEV_BACKEND_MODULE) && defined(MODULE))
 #include "../blkback/blkback-pagemap.h"
 #else
 struct blkback_pagemap { };

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.