From: Xiaofeng Ling <xiaofeng.ling@intel.com>
To: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Cc: Arun Sharma <arun.sharma@intel.com>, Mike Wray <mike.wray@hp.com>,
xen-devel@lists.xensource.com, takebe_akio@jp.fujitsu.com
Subject: Re: exception looking up device number for hda
Date: Tue, 09 Aug 2005 10:58:17 +0800 [thread overview]
Message-ID: <42F81BC9.9030008@intel.com> (raw)
In-Reply-To: <200508090249.52113.mark.williamson@cl.cam.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 797 bytes --]
I've already made a patch when I doing para-driver debugging.
see the attach patch.
Does it fit the requirement?
It will skip setupping up the loop device for ioemu image files,
but by xm vbd-list, it can still see the file bind to hda.
so this command is still useful.
Mark Williamson wrote:
>>>Hope about an optional: vbd:/emu: prefix (or similar) on the second part
>>>of the triplet for a disk? The default (for non VMX domains) could be
>>>"vbd" so existing behaviour would remain the same.
>>
>>Sounds good to me. How about:
>>
>>hda = VBD hda
>>vbd://hda = VBD hda
>>ioemu://hda = IDE hda
>
>
> Sounds fine but I think I'd actually ditch the // to fit in with the phy: and
> file: syntax we already have. (and as David said in another post, to avoid
> looking like a URL).
>
>
[-- Attachment #2: dm-config.patch --]
[-- Type: text/x-patch, Size: 2381 bytes --]
diff -r 48aed1403fe3 tools/examples/xmexample.vmx
--- a/tools/examples/xmexample.vmx Fri Jul 22 16:44:33 2005
+++ b/tools/examples/xmexample.vmx Tue Aug 9 10:54:01 2005
@@ -46,7 +46,7 @@
# and MODE is r for read-only, w for read-write.
#disk = [ 'phy:hda1,hda1,r' ]
-disk = [ 'file:/var/images/min-el3-i386.img,hda,w' ]
+disk = [ 'ioemu:/var/images/min-el3-i386.img,hda,w' ]
#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
diff -r 48aed1403fe3 tools/python/xen/xend/Blkctl.py
--- a/tools/python/xen/xend/Blkctl.py Fri Jul 22 16:44:33 2005
+++ b/tools/python/xen/xend/Blkctl.py Tue Aug 9 10:54:01 2005
@@ -30,7 +30,7 @@
# Special case phy devices - they don't require any (un)binding
# Parallax also doesn't need script-based binding.
- if (type == 'phy') or (type == 'parallax'):
+ if (type == 'phy') or (type == 'parallax') or (type == 'ioemu'):
return dets
if script is None:
diff -r 48aed1403fe3 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Fri Jul 22 16:44:33 2005
+++ b/tools/python/xen/xend/image.py Tue Aug 9 10:54:01 2005
@@ -287,12 +287,14 @@
device = sxp.child(self.vm.config, 'device')
vbdinfo = sxp.child(device, 'vbd')
if not vbdinfo:
- raise VmError("vmx: missing vbd configuration")
+ continue
uname = sxp.child_value(vbdinfo, 'uname')
vbddev = sxp.child_value(vbdinfo, 'dev')
(vbdtype, vbdparam) = string.split(uname, ':', 1)
vbddev_list = ['hda', 'hdb', 'hdc', 'hdd']
- if vbdtype != 'file' or vbddev not in vbddev_list:
+ if vbdtype != 'ioemu':
+ continue
+ if vbddev not in vbddev_list:
raise VmError("vmx: for qemu vbd type=file&dev=hda~hdd")
ret.append("-%s" % vbddev)
ret.append("%s" % vbdparam)
diff -r 48aed1403fe3 tools/python/xen/xend/server/blkif.py
--- a/tools/python/xen/xend/server/blkif.py Fri Jul 22 16:44:33 2005
+++ b/tools/python/xen/xend/server/blkif.py Tue Aug 9 10:54:01 2005
@@ -243,6 +243,8 @@
pass
else:
node = Blkctl.block('bind', self.type, self.params)
+ if self.type == 'ioemu':
+ return
self.setNode(node)
self.attachBackend()
if change:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2005-08-09 2:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-05 19:34 exception looking up device number f,or hda Arun Sharma
2005-08-05 20:33 ` Anthony Liguori
2005-08-05 21:20 ` Arun Sharma
2005-08-08 2:21 ` takebe_akio
2005-08-08 5:38 ` exception looking up device number for hda Arun Sharma
2005-08-08 14:48 ` Mark Williamson
2005-08-09 0:06 ` Arun Sharma
2005-08-09 1:25 ` David Hopwood
2005-08-09 1:49 ` Mark Williamson
2005-08-09 2:58 ` Xiaofeng Ling [this message]
2005-08-09 18:19 ` Arun Sharma
[not found] ` <mailman.1123552364.22306@unix-os.sc.intel.com>
2005-08-09 19:06 ` Arun Sharma
2005-08-09 19:18 ` Mark Williamson
2005-08-08 8:08 ` exception looking up device number f,or hda Mike Wray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F81BC9.9030008@intel.com \
--to=xiaofeng.ling@intel.com \
--cc=arun.sharma@intel.com \
--cc=mark.williamson@cl.cam.ac.uk \
--cc=mike.wray@hp.com \
--cc=takebe_akio@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.