WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/blktap2: allow to build as module
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Jun 2009 18:00:03 -0700
Delivery-date: Thu, 04 Jun 2009 18:00:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/blktap2: allow to build as module, Xen patchbot-linux-2.6.18-xen <=