[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/7] vl: New qemu_get_machine_opts()
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 3/7] vl: New qemu_get_machine_opts() |
Date: |
Thu, 4 Jul 2013 16:11:08 +0100 |
On 4 July 2013 16:03, Markus Armbruster <address@hidden> wrote:
> Peter Maydell <address@hidden> writes:
>> This looks a bit odd -- why are we creating new
>> options in a function that claims to only be querying
>> them?
>
> So we never return null. If it bothers you, I can initialize the
> options to empty somewhere else, and assert they exist here.
The other option would be to modify qemu_opt_get and
friends to accept a NULL QemuOpts* as meaning "return
the default". That seems cleaner to me than having
"machine" opts be a special case.
-- PMM
[Qemu-devel] [PATCH 2/7] qemu-option: Fix qemu_opts_set_defaults() for corner cases, Markus Armbruster, 2013/07/04
[Qemu-devel] [PATCH 1/7] qemu-option: Fix qemu_opts_find() for null id arguments, Markus Armbruster, 2013/07/04
[Qemu-devel] [PATCH 5/7] microblaze: Fix latent bug with default DTB lookup, Markus Armbruster, 2013/07/04