From: "Kasai Takanori" Subject: [RFC] CD-ROM cannot be changed Date: Thu, 14 Dec 2006 11:14:26 +0900 Message-ID: <009701c71f25$9591a670$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0094_01C71F71.03FE4730" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_0094_01C71F71.03FE4730 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit Hi All, I tried to install GuestOS on HVM Domain. I found the problem that was not able to be installed from two or more CD-ROM. It is possible to install it from one DVD. I investigated this problem. After CD-ROM had changed, it was not possible to read correctly even in cases other than the installation. The cause of this problem is that xenwatch continues to open the CD-ROM device. (/dev/cdrom etc) The CD-ROM device is opened when the domain is created. It keeps being opened until the domain is destroyed. Therefore, only the size of the first CD-ROM can be read. This patch was able to change CD-ROM by closing the device. However, another problem might break out in paraVM. Do you think that you should correct it by what method? Do you have a good idea? I think that it is necessary to reopen the device by telling vbd to have changed. Therefore, the change of CD-ROM is told from Dom0 by the xm command. (xm block-configure etc) I think that there is a method of closing the CD-ROM device only on HVM Domain, too. Thanks --- Takanori Kasai ------=_NextPart_000_0094_01C71F71.03FE4730 Content-Type: application/octet-stream; name="CD_media_change.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="CD_media_change.patch" diff -r 11b718eb22c9 linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c --- a/linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c Thu Nov 02 12:43:04 = 2006 -0700 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c Wed Dec 13 18:19:24 = 2006 +0900 @@ -89,6 +89,11 @@ int vbd_create(blkif_t *blkif, blkif_vde =20 DPRINTK("Successful creation of handle=3D%04x (dom=3D%u)\n", handle, blkif->domid); +#if 111 + if (vbd->type & VDISK_CDROM) { + vbd_free(vbd); + } +#endif return 0; } =20 ------=_NextPart_000_0094_01C71F71.03FE4730 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_0094_01C71F71.03FE4730--