qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: "J. Mayer" <l_indien@magic.fr>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu vl.c vl.h hw/an5206.c hw/etraxfs.c hw/inte...
Date: Sat, 3 Nov 2007 01:18:21 +0000	[thread overview]
Message-ID: <20071103011821.GA10975@networkno.de> (raw)
In-Reply-To: <1194049315.16781.537.camel@rapid>

J. Mayer wrote:
[snip]
> > > It restricts the letter to the ones historically allowed by Qemu, not to
> > > anything specific to any architecture or hw platform. What I like in my
> > > implementation, compared to the strchr..., is that it exactly tells the
> > > user which given device is incorrect.
> > 
> > Well, here it makes no difference, strchr tells you exactly same as much.
> 
> Yes, you're right. Was thinking about the original strspn.
> 
> > Instead of the check, the code could also allow everything from 'a' to
> > 'z' and then just AND the produced 32bit bitmap with a machine defined
> > bitmap that would be part of QEMUMachine.
> 
> I guess we would better stop at 'n', because we can easily define a
> semantic for devices 'c' to 'm' (ie hard disk drives in a hardware
> platform specific order) but we have to define what means 'o' to 'z'.
> But I agree we would better extend it now, instead of having to rework
> it later...

To select the network device to boot from would probably become a
'n' 'o' 'p' 'q' series.

[snip]
> > > Here's a second pass cleanup, adding the machine dependant checks for
> > > the PC machine and the PowerPC ones. As one can see, the OpenHack'Ware
> > > firmware is able to boot from devices 'e' and 'f'. For the PowerPC
> > > machines, I choosed to try to boot from the first given usable device,
> > > some may not agree with this choice. It can be noticed that the
> > > available boot devices are not the same for PowerPC PreP, g3bw and mac99
> > > machines.
> > > As I don't know the features and requirements for the other
> > > architectures, I prefered not to add any check for those ones.
> > 
> > Most other machines ignore -boot and those that don't, shouldn't break
> > from the introduced change, so please commit it when you feel ok with
> > it.
> 
> I'd like to know what are the feelings around about this patch and if
> there are specific requirements and/or problems for some platforms to be
> addressed before...

I think the proposed scheme (and the implementation) is flexible enough
to accomodate all relevant platforms.


Thiemo

  reply	other threads:[~2007-11-03  1:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31  1:54 [Qemu-devel] qemu vl.c vl.h hw/an5206.c hw/etraxfs.c hw/inte Andrzej Zaborowski
2007-10-31  2:21 ` J. Mayer
2007-10-31  2:35   ` andrzej zaborowski
2007-10-31  4:42     ` J. Mayer
2007-10-31 10:01       ` andrzej zaborowski
2007-10-31 10:22         ` J. Mayer
2007-10-31 22:49           ` J. Mayer
2007-11-01  0:01             ` andrzej zaborowski
2007-11-01 19:12               ` J. Mayer
2007-11-03  0:01                 ` andrzej zaborowski
2007-11-03  0:21                   ` J. Mayer
2007-11-03  1:18                     ` Thiemo Seufer [this message]
2007-11-03 12:40                       ` J. Mayer
2007-11-05 13:04                       ` [Qemu-devel] multiple boot devices J. Mayer

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=20071103011821.GA10975@networkno.de \
    --to=ths@networkno.de \
    --cc=l_indien@magic.fr \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).