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] PV driver compatibility

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Subject: Re: [xen-devel][PATCH] PV driver compatibility
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Thu, 21 Jan 2010 20:38:20 +0000
Cc: ksrinivasan <ksrinivasan@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 Jan 2010 12:38:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C77CDAD6.6D76%keir.fraser@xxxxxxxxxxxxx>
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: <C77CDAD6.6D76%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2010-01-20 at 16:07 +0000, Keir Fraser wrote: 
> On 20/01/2010 16:02, "Ky Srinivasan" <ksrinivasan@xxxxxxxxxx> wrote:
> 
> > The attached patch fixes what I believe is a typo and permits guests running
> > the latest PV drivers to correctly interact with older back-ends.
> > 
> > Signed-off-by: K. Y. Srinivasan <ksrinivasan@xxxxxxxxxx>
> 
> Ian,
> 
> You introduced the magic port value check, in xen-unstable:19964.

I'm guilty of pretty poor changelogging there, aren't I, I've no idea
how the unmodified drivers part of the change relates to the comment :-(

> Can you ack/nack this please?

What vintage of older back-ends are we talking about?

What is their behaviour when reading from that port? Can we test for a
specific value instead of anything != MAGIC or is there some other way
to identify them? 

Without some sort of unplugging mechanism we run the risk of having both
PV and Emulated disk controllers active, accessing the same virtual disk
and with drivers loaded in the guest, which is potentially very
dangerous for the user's data. Did those older backends implement some
alternative unplugging mechanism we should be trying?

The whole point of this magic check is to ensure we are running on a
backend which is new enough to do the unplugging in a safe way, so I
think failing to switch to PV and sticking with emulated on such
platforms the safe approach.

I'd suggest that this issue should be fixed by backporting the backend
support for the safe unplug protocol -- I don't think the patch for such
minimal support is that big or risky. Failing that perhaps it could at
least be something you need to explicitly ask for if you have somehow
verified that there is no danger of the emulated and PV backends
trampling each other, e.g. via a frontend module parameter.

Ian.


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