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] Re: [PATCH] make protocol specific usage of shared sring exp

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] make protocol specific usage of shared sring explicit
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Thu, 1 Jul 2010 10:39:21 +0100
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Dongxiao Xu <dongxiao.xu@xxxxxxxxx>, Daniel Stodden <Daniel.Stodden@xxxxxxxxxx>
Delivery-date: Thu, 01 Jul 2010 02:42:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1277976171-5785-1-git-send-email-ian.campbell@xxxxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <9fb06660a061dbb19ca0.1277976128@xxxxxxxxxxxxxxxxxxxxx> <1277976171-5785-1-git-send-email-ian.campbell@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2010-07-01 at 10:22 +0100, Ian Campbell wrote:
> I don't think protocol specific data't really belongs in this header
> but since it is already there and we seem to be stuck with it lets at
> least make the users explicit lest people get caught out by future new
> fields moving the pad field around.

The blktap use of the pad field was/is used as a back channel of sorts
to communicate device shutdown from the toolstack to the userspace
tapdisk process via a sysfs write which set the flag in pad[0] which the
tapdisk userspace picked up. This has now been replaced by a unix domain
socket control interface (tap-ctl) allowing communication directly
between the toolstack and the tapdisk process (a much cleaner and
preferable interface). 

However the interface between userspace and kernel was inadvertently
changed when the netfront smartpoll feature was added to netback due to
the new field in the shared ring which caused the the poll[0] field to
move up by one in the structure.

On the kernel side smartpoll change was apparently merged into
xen/master in October 2009 and on the hypervisor side the it is present
in Xen 4.0. So it seems that we have combinations in the wild of kernel
blktap and tapdisk userspace both independently using one of two
possible offsets of pad[0].

Perhaps this interface would be better deprecated and removed sooner
rather than later? Is the tap-ctl baked enough to consider for Xen
4.0.1?

Ian.



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