From: Gerd Hoffmann <kraxel@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/7] xen: groundwork for xen support
Date: Mon, 28 Jul 2008 16:52:28 +0200 [thread overview]
Message-ID: <488DDD2C.10308@redhat.com> (raw)
In-Reply-To: <488DD206.8040404@codemonkey.ws>
>> +/* xen_machine.c */
>> +extern QEMUMachine xenpv_machine;
>> +extern QEMUMachine xenfv_machine;
>
> Why does xenfv need its own machine type?
This is how xen's qemu-dm handles it at the moment and I've decided to
do it the same way for simplicity. I think qemu could also figure it
using a hypercall.
>> - /* XXX: this should not be: some embedded targets just have flash */
>> + /* need a disk for this machine to boot ? */
>> + /* XXX: add embedded targets which just have flash */
>> + nodisk_ok = 0;
>> + if (0 == strcmp(machine->name, "xenpv"))
>> + nodisk_ok = 1;
>> if (!linux_boot && net_boot == 0 &&
>> - nb_drives_opt == 0)
>> + !nodisk_ok && nb_drives_opt == 0)
>> help(1);
>
> This patch is pretty clean with the exception of this bit. I think a
> cleaner way to do this would be to let the machine types specify whether
> a disk is needed or not.
Agreed, I'll make it a machine_type field.
thanks,
Gerd
--
http://kraxel.fedorapeople.org/xenner/
next prev parent reply other threads:[~2008-07-28 14:52 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 13:17 [Qemu-devel] [PATCH 0/7] merge some xen bits into qemu Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 13:17 ` [Qemu-devel] [PATCH 1/7] xen: groundwork for xen support Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:04 ` [Qemu-devel] " Anthony Liguori
2008-07-28 14:52 ` Gerd Hoffmann [this message]
2008-07-29 8:10 ` [Xen-devel] " Daniel P. Berrange
2008-07-29 8:10 ` Daniel P. Berrange
2008-07-29 13:32 ` [Xen-devel] " Anthony Liguori
2008-07-29 13:32 ` Anthony Liguori
2008-07-29 14:24 ` [Xen-devel] " Daniel P. Berrange
2008-07-29 14:24 ` Daniel P. Berrange
2008-07-29 19:11 ` [Xen-devel] " Anthony Liguori
2008-07-29 19:11 ` Anthony Liguori
2008-07-29 21:36 ` [Xen-devel] " Gerd Hoffmann
2008-07-29 21:36 ` Gerd Hoffmann
2008-07-29 21:48 ` [Xen-devel] " Anthony Liguori
2008-07-29 21:48 ` Anthony Liguori
2008-07-29 14:32 ` [Xen-devel] " Gerd Hoffmann
2008-07-29 14:32 ` Gerd Hoffmann
2008-07-28 23:14 ` [Xen-devel] " Samuel Thibault
2008-07-28 23:14 ` Samuel Thibault
2008-07-29 7:38 ` [Xen-devel] " Gerd Hoffmann
2008-07-29 7:38 ` Gerd Hoffmann
2008-07-29 8:12 ` [Xen-devel] " Daniel P. Berrange
2008-07-29 8:12 ` Daniel P. Berrange
2008-07-29 8:55 ` [Xen-devel] " Gerd Hoffmann
2008-07-29 8:55 ` Gerd Hoffmann
2008-07-28 13:17 ` [Qemu-devel] [PATCH 2/7] xen: backend driver core Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:13 ` [Qemu-devel] " Anthony Liguori
2008-07-28 15:51 ` Gerd Hoffmann
2008-07-28 13:17 ` [Qemu-devel] [PATCH 3/7] xen: add console backend driver Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:17 ` [Qemu-devel] " Anthony Liguori
2008-07-28 15:43 ` Gerd Hoffmann
2008-07-28 19:04 ` Anthony Liguori
2008-07-28 13:17 ` [Qemu-devel] [PATCH 4/7] xen: add framebuffer " Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:22 ` [Qemu-devel] " Anthony Liguori
2008-07-28 14:41 ` Andreas Färber
2008-07-28 14:41 ` Andreas Färber
2008-07-30 9:59 ` [Qemu-devel] " Gerd Hoffmann
2008-08-01 14:57 ` Anthony Liguori
2008-07-30 9:20 ` Gerd Hoffmann
2008-07-30 9:20 ` Gerd Hoffmann
2008-07-30 16:31 ` [Qemu-devel] " Markus Armbruster
2008-07-30 16:31 ` Markus Armbruster
2008-08-01 15:05 ` Anthony Liguori
2008-07-28 13:17 ` [Qemu-devel] [PATCH 5/7] xen: add block device " Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:25 ` [Qemu-devel] " Anthony Liguori
2008-07-28 13:17 ` [Qemu-devel] [PATCH 6/7] xen: add net " Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
2008-07-28 14:27 ` [Qemu-devel] " Anthony Liguori
2008-07-28 15:45 ` Gerd Hoffmann
2008-07-28 13:17 ` [Qemu-devel] [PATCH 7/7] xen: blk & nic configuration via cmd line Gerd Hoffmann
2008-07-28 13:17 ` Gerd Hoffmann
-- strict thread matches above, loose matches on Subject: below --
2008-08-04 15:50 [Qemu-devel] [PATCH 0/7] merge some xen bits into qemu Gerd Hoffmann
2008-08-04 15:50 ` [Qemu-devel] [PATCH 1/7] xen: groundwork for xen support Gerd Hoffmann
2008-08-04 16:34 ` Blue Swirl
2008-08-04 18:01 ` Gerd Hoffmann
2008-08-04 17:35 ` Anthony Liguori
2008-08-04 18:04 ` Gerd Hoffmann
2008-10-28 12:23 [Qemu-devel] [PATCH 0/7] merge some xen bits into qemu Gerd Hoffmann
2008-10-28 12:23 ` [Qemu-devel] [PATCH 1/7] xen: groundwork for xen support Gerd Hoffmann
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=488DDD2C.10308@redhat.com \
--to=kraxel@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--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.