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

Re: [Xen-devel] [PATCH 0 of 7] blktap2: The tap-ctl userspace control ut

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH 0 of 7] blktap2: The tap-ctl userspace control utility and library
From: Łukasz Oleś <lukaszoles@xxxxxxxxx>
Date: Tue, 3 Aug 2010 21:14:24 +0200
Delivery-date: Tue, 03 Aug 2010 12:15:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=ApwWJjccljMjORgoS78x+wIjYDU7EefNNzOII2GxFpc=; b=sq9GJZyVzPG04G9YvaUuebwpfHEm0d8vnUD/6rovjgoR/YGPDef5C8t1aFyHBIP2Kz gfXGTJCZdjomJwdwTjfX7q12L9MY23RrraxXaLlZzLuDpGirl/leLgtbSqfYOqaZbVPk XwBjqdrneF7TRY7BCBuz1IgC8WD1KV5JKOsbs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=N9HQVAcn+c2tZscS1Y6+MSDjjFPaXLXkj42IOlZgl179MgPzb6T1yDMDNGpxKGOfAY jr6iltk+SXTq8Xl+93MgWasD66KP1cRj3KSkqz6yU0GJOy/nPR13vbDBkkHOvkEa01jg tTreqmaR57nFWIIGeUcFtFineM/dNtwSpmcFs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1275947687@xxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <patchbomb.1275947687@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.3 (Linux/2.6.32-5-686; KDE/4.4.4; i686; ; )
On Monday 07 June 2010 23:54:47 Daniel Stodden wrote:
> Hi.
> 
> Apart from removing some dead code and tidying up tapdisk-vbd a
> little, the bigger introduces our new tap-ctl utility code.
> 
> The code aims to be a complete replacement for the original blktap2
> control path, run through sysfs. Fully implemented in userspace, all
> tapdisks now gained a small IPC layer on top of Unix domain sockets.
> 
> Sample usage:
> 
> # tap-ctl allocate
> /dev/xen/blktap-2/tapdev0
> 
> # tap-ctl spawn
> tapdisk spawned with pid 4168
> 
> # tap-ctl list
>     4168  -    -          - -
>        -  0    -          - -
> 
> # tap-ctl attach -p 4168 -m 0
> # tap-ctl list
>     4168  0    0          - -
> 
> # tap-ctl open -p 4168 -m 0 -a aio:/var/tmp/lenny.ext
> 
> # tap-ctl list
>     4168  0    0        aio /var/tmp/lenny.ext
> 
> # tap-ctl close -p 4168 -m 0
> # tap-ctl detach -p 4168 -m 0
> # tap-ctl free -m 0
> 
> The above example is a bit noisy, because it's mediating between minor
> number (block devices), tapdisks and tapdisk VBDs (the tapdisk I/O
> queue running a bdev) in detail.
> 
> There are shortcuts. At the same time, the low-level interface should
> be general enough to stay extensible, and help accomodate some of the
> more esoteric features, like shared images and/or multiple VBDs
> sharing the same tapdisk.

I think README file should be also updated.

And maybe its good idea to merge it to xen 4.0?

--
Łukasz Oleś

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] [PATCH 0 of 7] blktap2: The tap-ctl userspace control utility and library, Łukasz Oleś <=