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 3/4]: Extend blktap userland busid to 32-bits

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 3/4]: Extend blktap userland busid to 32-bits
From: Chris Lalancette <clalance@xxxxxxxxxx>
Date: Mon, 23 Jun 2008 20:29:07 +0200
Delivery-date: Mon, 23 Jun 2008 11:30:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
(please ignore my [PATCH 3/5]; this is the same thing with a proper subject)

This patch just extends the busid in the userland tools to 32-bits to match the
extension we made in the last patch in the kernel.

Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
diff -r dedfadeadf86 tools/blktap/drivers/blktapctrl.c
--- a/tools/blktap/drivers/blktapctrl.c Fri Jun 20 18:42:45 2008 +0100
+++ b/tools/blktap/drivers/blktapctrl.c Mon Jun 23 17:48:13 2008 +0200
@@ -127,7 +127,7 @@ static int get_new_dev(int *major, int *
        char *devname;
        
        tr.domid = blkif->domid;
-        tr.busid = (unsigned short)blkif->be_id;
+        tr.busid = blkif->be_id;
        ret = ioctl(ctlfd, BLKTAP_IOCTL_NEWINTF, tr );
        
        if ( (ret <= 0)||(ret > MAX_TAP_DEV) ) {
diff -r dedfadeadf86 tools/blktap/lib/blktaplib.h
--- a/tools/blktap/lib/blktaplib.h      Fri Jun 20 18:42:45 2008 +0100
+++ b/tools/blktap/lib/blktaplib.h      Mon Jun 23 17:48:13 2008 +0200
@@ -161,7 +161,7 @@ typedef struct tapdev_info {
 
 typedef struct domid_translate {
        unsigned short domid;
-       unsigned short busid;
+       uint32_t busid;
 } domid_translate_t ;
 
 typedef struct image {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 3/4]: Extend blktap userland busid to 32-bits, Chris Lalancette <=