Pat Campbell
2008-Jan-30 12:57 UTC
[Xen-devel][PATCH][ioemu] strip tap subtype prefix from image name
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 changes xenstore.c:xenstore_process_event() to strip the tap subtype prefix from the image name. Please apply to xen-unstable tip. Signed-off-by: Pat Campbell <plc@novell.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Christoph Egger
2008-Jan-30 13:07 UTC
Re: [Xen-devel][PATCH][ioemu] strip tap subtype prefix from image name
On Wednesday 30 January 2008 13:57:24 Pat Campbell wrote:> 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 changes xenstore.c:xenstore_process_event() to strip the tap subtype > prefix from the image name. > > Please apply to xen-unstable tip. > > Signed-off-by: Pat Campbell <plc@novell.com>Please use a more readable coding style. What you did is this: if (a) { if (b) { if (c) { /* do it */ } else { /* Alternative C */ } } else { /* Alternative B */ } } else { /* Alternative A */ } return; I suggest you to use this style: if (!a) { /* Alternative A */ return; } if (!b) { /* Alternative B */ return; } if (!c) { /* Alternative C */ return; } /* do it */ return; -- AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-Jan-30 13:16 UTC
Re: [Xen-devel][PATCH][ioemu] strip tap subtype prefix from image name
On 30/1/08 13:07, "Christoph Egger" <Christoph.Egger@amd.com> wrote:>> Please apply to xen-unstable tip. >> >> Signed-off-by: Pat Campbell <plc@novell.com> > > Please use a more readable coding style.Seconded. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel