From: Janne Huttunen <janne.huttunen@nokia.com>
To: qemu-devel@nongnu.org
Cc: janne.huttunen@nokia.com
Subject: [Qemu-devel] [RFC][PATCH 0/6] "bootonceindex" property
Date: Tue, 14 Mar 2017 14:50:07 +0200 [thread overview]
Message-ID: <cover.1489494746.git.janne.huttunen@nokia.com> (raw)
This series implements a "bootonceindex" property for setting the boot
source priorities for the next boot only. In principle it is supposed
to do the same thing as the '-boot once=' argument but in a compatible
way with the 'bootindex' mechanism.
The basic idea is to have a second list that is sorted by the values
of the "bootonceindex" properties. When the boot order is requested,
the new list is returned if it is not empty and the list is cleared.
The normal bootindex list is only used when there are no devices on
the "once" list.
So far I have only added the support for a couple of devices and
lightly tested it on x86_64 system emulation.
Some questions:
- Is there already some (reasonable) way to accomplish the same
effect in QEMU?
- Does this approach make sense? Any better ideas?
- Any suggestions for better function / property names?
- Should the series be split or squashed differently? I tried to
make it easy to review, but...
- Are the object life times (no dangling pointers left behind)
and (lack of) locking correct? As far as I can see, they should
be, but someone with more experience with this codebase may see
something I don't...
- If this approach is going to be merged, any volunteers for
converting the rest of the devices? Or can the conversion be
left to be done one by one at some later date? I can try to
convert more of them, but testing them all is likely not going
to be possible.
- Any other suggestions/ideas/comments?
Janne Huttunen (6):
Re-factor bootdevice list handling, pt1.
Re-factor bootdevice list handling, pt2.
Add support for "bootonceindex" property.
Clear the boot once list after it has been used.
Support "bootonceindex" property for virtio-net interfaces.
Support "bootonceindex" property for SCSI disks.
bootdevice.c | 112 ++++++++++++++++++++++++++++++++++++-----------
hw/net/virtio-net.c | 3 ++
hw/nvram/fw_cfg.c | 2 +
hw/ppc/spapr.c | 2 +
hw/s390x/ipl.c | 2 +
hw/scsi/scsi-bus.c | 3 ++
hw/virtio/virtio-pci.c | 2 +
include/hw/block/block.h | 1 +
include/net/net.h | 1 +
include/sysemu/sysemu.h | 4 ++
10 files changed, 106 insertions(+), 26 deletions(-)
--
2.7.4
next reply other threads:[~2017-03-14 15:26 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 12:50 Janne Huttunen [this message]
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 1/6] Re-factor bootdevice list handling, pt1 Janne Huttunen
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 2/6] Re-factor bootdevice list handling, pt2 Janne Huttunen
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 3/6] Add support for "bootonceindex" property Janne Huttunen
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 4/6] Clear the boot once list after it has been used Janne Huttunen
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 5/6] Support "bootonceindex" property for virtio-net interfaces Janne Huttunen
2017-03-14 12:50 ` [Qemu-devel] [RFC][PATCH 6/6] Support "bootonceindex" property for SCSI disks Janne Huttunen
2017-03-14 16:57 ` [Qemu-devel] [RFC][PATCH 0/6] "bootonceindex" property Gerd Hoffmann
2017-03-15 6:58 ` Janne Huttunen
2017-03-15 7:24 ` Gerd Hoffmann
2017-03-16 9:46 ` Janne Huttunen
2017-03-16 9:59 ` Gerd Hoffmann
2017-03-21 17:48 ` Eric Blake
2017-03-22 5:42 ` Markus Armbruster
2017-03-21 17:55 ` Paolo Bonzini
2017-03-22 6:36 ` Janne Huttunen
2017-03-22 8:43 ` Paolo Bonzini
2017-03-22 9:00 ` Huttunen, Janne (Nokia - FI/Espoo)
2017-03-22 10:51 ` Laszlo Ersek
2017-03-22 13:58 ` Janne Huttunen
2017-03-22 14:36 ` Laszlo Ersek
2017-03-22 15:19 ` Janne Huttunen
2017-03-22 15:29 ` Laszlo Ersek
2017-03-23 6:53 ` Janne Huttunen
2017-03-23 9:13 ` Laszlo Ersek
[not found] ` <CACaajQsrkuZeC6WYXdEBJY=FEkTQ9iY_i8E-d5j7JqK5DDUuOw@mail.gmail.com>
2017-03-15 7:21 ` Vasiliy Tolstov
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=cover.1489494746.git.janne.huttunen@nokia.com \
--to=janne.huttunen@nokia.com \
--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 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.