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-devel

[Xen-devel] [PATCH] linux/blktap2: allow to build as module

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/blktap2: allow to build as module
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Wed, 03 Jun 2009 16:25:50 +0100
Delivery-date: Wed, 03 Jun 2009 08:26:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
... and also allow to interact with blkback when that's also built as
a module.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- head-2009-05-29.orig/arch/i386/mm/hypervisor.c      2009-05-29 
12:22:11.000000000 +0200
+++ head-2009-05-29/arch/i386/mm/hypervisor.c   2009-06-03 09:21:02.000000000 
+0200
@@ -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(const cpumask_t 
        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)
 {
--- head-2009-05-29.orig/drivers/xen/blktap2/device.c   2009-06-03 
08:58:54.000000000 +0200
+++ head-2009-05-29/drivers/xen/blktap2/device.c        2009-05-29 
12:39:04.000000000 +0200
@@ -14,7 +14,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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/blktap2: allow to build as module, Jan Beulich <=