[libvirt] [Qemu-devel] Configuring pflash devices for OVMF firmware

Markus Armbruster armbru at redhat.com
Thu Jan 31 12:05:11 UTC 2019


Peter Maydell <peter.maydell at linaro.org> writes:

> On Thu, 31 Jan 2019 at 10:24, Markus Armbruster <armbru at redhat.com> wrote:
>> 1. Make the device model default to some "correct" configuration, even
>> if that setting is kind of arbitrary.  That way, any code using new
>> style gets an "incorrect" configuration only if it actively selects one.
>
> I don't think that's much better, because it will still
> probably be wrong for the board. People writing board models
> should define what their pflash device is, not plug in something
> that's not what the hardware is.

If you want to force people to select a sane configuration, set the
default to some suitable nonsense the realize() method rejects.




More information about the libvir-list mailing list