All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pat Campbell <plc@novell.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [RFC][PATCH][ioemu] strip tap:aio from param
Date: Tue, 29 Jan 2008 13:06:37 -0700	[thread overview]
Message-ID: <479F874D.6040803@novell.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 722 bytes --]

Currently I am not able to mount or boot from an HVM CDROM when it is configured for 'tap:aio' instead of 'file'.

disk=[ 'tap:aio:/var/lib/xen/images/sles10-sp2-fv/disk0,hda,w', '
       tap:aio:/home/iso/sles/SLES10.iso,hdc:cdrom,r', ]

With the attached patch I am able to boot from the CDROM and or mount it.

Patch against xen-unstable tip changes xenstore.c:xenstore_parse_domain_config() to rewrite param to xenstore without the tap:aio prefix.  This allows xenstore_process_event() to read the correct image name. 

It might be better to filter out aio in xenstore_process_event() instead of changing param in xenstore. Anybody have an opinion on that?

I will submit a real patch once I have some feedback.

Pat


[-- Attachment #2: xen-tap-aio.patch --]
[-- Type: text/x-patch, Size: 567 bytes --]

diff -r 1c826ea72a80 tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c	Wed Jan 23 15:42:52 2008 +0000
+++ b/tools/ioemu/xenstore.c	Tue Jan 29 12:42:24 2008 -0700
@@ -182,6 +182,8 @@ void xenstore_parse_domain_config(int do
             if (!offset)
                 continue ;
             memmove(params, offset+1, strlen(offset+1)+1 );
+            if (pasprintf(&buf, "%s/params", bpath) == 0)
+                xs_write(xsh, XBT_NULL, buf, params, strlen(params));
             fprintf(logfile, "Strip off blktap sub-type prefix to %s\n", params); 
         }
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

             reply	other threads:[~2008-01-29 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29 20:06 Pat Campbell [this message]
2008-01-30  9:30 ` [RFC][PATCH][ioemu] strip tap:aio from param Keir Fraser

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=479F874D.6040803@novell.com \
    --to=plc@novell.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.