From: Kasai Takanori Subject: [PATCH][IOEMU] Allow changing CD for /dev/xvdX devices. Date: Wed, 17 Mar 2010 16:41:04 +0900 Message-ID: <39CAC5A532AEA5kasai.takanori@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-HdVLP5KB07d4TDuItpCRF" 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 --Boundary-HdVLP5KB07d4TDuItpCRF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi All, We found the issue being not able to change CD on the HVM-Domain. It is possible on the /dev/hdc device, but it is impossible on the/dev/xvdc device. We want to work it as all /dev/xvdX devices on the HVM-domain as well as on the PV-domain. Signed-off-by: Takanori Kasai The execution method is as follows. ---------------------------------------------------------------------- Domain configuration file: disk = ["tap:aio:/,xvda,w", ",xvdc:cdrom,r"] Operation that assign CD: # xm block-configure file: xvdc:cdrom r Operation that releases CD # xm block-configure '' xvdc:cdrom r ---------------------------------------------------------------------- Best Regards, --- Takanori Kasai --Boundary-HdVLP5KB07d4TDuItpCRF Content-Type: application/octet-stream; name="ioemu-media-change-xvdX.patch" Content-Disposition: attachment; filename="ioemu-media-change-xvdX.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3hlbnN0b3JlLmMgYi94ZW5zdG9yZS5jCmluZGV4IDA1YTFjMjIuLjg5 YjE5MzggMTAwNjQ0Ci0tLSBhL3hlbnN0b3JlLmMKKysrIGIveGVuc3RvcmUuYwpAQCAtOTY4 LDEwICs5NjgsNiBAQCB2b2lkIHhlbnN0b3JlX3Byb2Nlc3NfZXZlbnQodm9pZCAqb3BhcXVl KQogICAgICAgICAgICAgeGVuc3RvcmVfd2F0Y2hfY2FsbGJhY2tzW2ldLmNiKHZlY1tYU19X QVRDSF9UT0tFTl0sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgeGVuc3RvcmVfd2F0Y2hfY2FsbGJhY2tzW2ldLm9wYXF1ZSk7CiAKLSAgICBpZiAoc3Ry bmNtcCh2ZWNbWFNfV0FUQ0hfVE9LRU5dLCAiaGQiLCAyKSB8fAotICAgICAgICBzdHJsZW4o dmVjW1hTX1dBVENIX1RPS0VOXSkgIT0gMykKLSAgICAgICAgZ290byBvdXQ7Ci0KICAgICBo ZF9pbmRleCA9IGRyaXZlX25hbWVfdG9faW5kZXgodmVjW1hTX1dBVENIX1RPS0VOXSk7CiAg ICAgaWYgKGhkX2luZGV4ID09IC0xKSB7CiAJZnByaW50ZihzdGRlcnIsIm1lZGl1bSBjaGFu Z2Ugd2F0Y2ggb24gYCVzJyAtIgo= --Boundary-HdVLP5KB07d4TDuItpCRF 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 --Boundary-HdVLP5KB07d4TDuItpCRF--