qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Amos Kong <akong@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: aliguori@us.ibm.com, dallan@redhat.com, gleb@redhat.com,
	"libvir-list@redhat.com" <libvir-list@redhat.com>,
	seabios@seabios.org, qemu-devel@nongnu.org, kevin@koconnor.net
Subject: Re: [Qemu-devel] [Qemu PATCH v2] add a boot option to do strict boot
Date: Wed, 9 Jan 2013 23:52:26 +0800	[thread overview]
Message-ID: <20130109155226.GB3426@t430s.redhat.com> (raw)
In-Reply-To: <50ED893F.50905@redhat.com>

On Wed, Jan 09, 2013 at 08:14:07AM -0700, Eric Blake wrote:
> On 01/09/2013 01:39 AM, Amos Kong wrote:
> > Current seabios will try to boot from selected devices first,
> > if they are all failed, seabios will also try to boot from
> > un-selected devices.
> > 
> > We need to make it configurable. I already posted a seabios
> > patch to add a new device type to halt booting. Qemu can add
> > "HALT" at the end of bootindex string, then seabios will halt
> > booting after trying to boot from selected devices.
> > 
> > This option only effects when boot priority is changed by
> > bootindex options, the old style(-boot order=..) will still
> > try to boot from un-selected devices.
> > 
> > v2: add HALT entry in get_boot_devices_list()
> >     define boot_strict to bool
> > 
> > Signed-off-by: Amos Kong <akong@redhat.com>
> > ---
> 
> Libvirt will need to expose an attribute that lets the user control
> whether to use this new option; how do we probe via QMP whether the new
> -boot strict=on command-line option is available?


Old style to adjust boot priority by order parameter:
-boot order=n,strict=on (BAD, unselected devices will be tried)

New style to adjust boot priority by bootindex:
-device virtio-net-pci,...,bootindex=1 -boot strict=on (OK)

We only want strict option to support new style.

(those two styles are implemented in two different way insider
seabios, the latest simple patch only changed the bootindex way)
 
> > +++ b/qemu-options.hx
> > @@ -376,14 +376,14 @@ ETEXI
> >  
> >  DEF("boot", HAS_ARG, QEMU_OPTION_boot,
> >      "-boot [order=drives][,once=drives][,menu=on|off]\n"
> > -    "      [,splash=sp_name][,splash-time=sp_time][,reboot-timeout=rb_time]\n"
> > +    "      [,splash=sp_name][,splash-time=sp_time][,reboot-timeout=rb_time][,strict=on|off]\n"
> >      "                'drives': floppy (a), hard disk (c), CD-ROM (d), network (n)\n"
> >      "                'sp_name': the file's name that would be passed to bios as logo picture, if menu=on\n"
> >      "                'sp_time': the period that splash picture last if menu=on, unit is ms\n"
> >      "                'rb_timeout': the timeout before guest reboot when boot failed, unit is ms\n",
> 
> So if I understand correctly, -boot order=... is incompatible with -boot
> strict=on; even though you have listed both options under a single -boot
> entry in the -help. We've already declared that -help output is no
> longer guaranteed stable, so this doesn't really impact libvirt, but
> would it make any more sense to list this as two orthogonal entries, to
> make it clear that they don't mix?
> 
> -boot order=drivers[,once=drives]...
> -boot strict=on|off[,menu=on|off]...
> 
> But this is all bikeshedding, so it's not worth a v3 if you disagree.
> 
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 

  parent reply	other threads:[~2013-01-09 15:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09  7:34 [Qemu-devel] [Qemu PATCH] add a boot option to do strict boot Amos Kong
2013-01-09  7:54 ` Gleb Natapov
2013-01-09  8:39 ` [Qemu-devel] [Qemu PATCH v2] " Amos Kong
2013-01-09  9:56   ` Gleb Natapov
2013-01-09 15:14   ` Eric Blake
2013-01-09 15:22     ` [Qemu-devel] [libvirt] " Daniel P. Berrange
2013-01-09 17:28       ` Laine Stump
2013-01-09 17:46         ` Gleb Natapov
2013-01-09 15:52     ` Amos Kong [this message]
     [not found]     ` <1974277572.9315720.1358868212597.JavaMail.root@redhat.com>
     [not found]       ` <20130122155229.GA9465@t430s.nay.redhat.com>
     [not found]         ` <50FEB79E.1040206@redhat.com>
     [not found]           ` <878v7ldqh0.fsf@codemonkey.ws>
     [not found]             ` <20130123104144.GA2419@t430s.nay.redhat.com>
     [not found]               ` <20130128031934.GA3986@t430s.nay.redhat.com>
2013-03-04 10:20                 ` [Qemu-devel] [RFC] introduce a general query-config cmd Amos Kong

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=20130109155226.GB3426@t430s.redhat.com \
    --to=akong@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=dallan@redhat.com \
    --cc=eblake@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kevin@koconnor.net \
    --cc=libvir-list@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.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).