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] Fix change of CDROM for block-configure command

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix change of CDROM for block-configure command
From: "Kasai Takanori" <kasai.takanori@xxxxxxxxxxxxxx>
Date: Wed, 20 Jun 2007 13:34:58 +0900
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 19 Jun 2007 21:35:16 -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>
References: <C29DB358.10E60%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir,

Thank you for reply.

ioemu-nowait-change: This 5s timeout is deliberate.

We consented that waiting was necessary for the Windows guest.

ioemu-nocheck-change: The strcmp is deliberate, to filter out redundant
firings of the xenstore watch. If you want to be able to e.g., ...

We corrected the patch like writing an empty once character in xend.

Signed-off-by: Takanori Kasai <kasai.takanori@xxxxxxxxxxxxxx>


BTW, there is an acute problem in the change of CDROM.

When physical device (/dev/cdrom) of CDROM is set first, CDROM of the second piece cannot be correctly read. It remains opening former device on backend even if it changes with block-configure.

Therefore, CDROM of the second piece can read only the size of the first piece.

linux-2.6.18-xen.hg/drivers/xen/blkback/xenbus.c
264  static void backend_changed(struct xenbus_watch *watch,
265                              const char **vec, unsigned int len)
...
315                  err = vbd_create(be->blkif, handle, major, minor,
316                                   (NULL == strchr(be->mode, 'w')));

How do you think that we should correct about this problem?

Best Regards,

--
Takanori Kasai 

Attachment: python-blkif-change-cdrom.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>