All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] vmbus bridge: machine property or device?
@ 2017-04-11 20:58 Roman Kagan
  2017-04-12 15:18 ` Markus Armbruster
  0 siblings, 1 reply; 11+ messages in thread
From: Roman Kagan @ 2017-04-11 20:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: Evgeny Yakovlev, Denis V. Lunev

While hammering out the VMBus / storage series, we've been struggling to
figure out the best practices solution to the following problem:

VMBus is provided by a vmbus bridge; it appears the most natural to have
it subclassed from SysBusDevice.  There can only be one VMBus in the
VM.

Now the question is how to add it to the system:

1) with a boolean machine property "vmbus" that would trigger the
   creation of the VMBus bridge; its class would have
   ->cannot_instantiate_with_device_add_yet = true


2) with a regular -device option; this would require setting
   ->has_dynamic_sysbus = true for i440fx machines (q35 already have it)


3) anything else


So far we went with 1) but since it's essentially the API the management
layer would have to use we'd like to get it right from the beginning.

Thanks,
Roman.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-14  2:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 20:58 [Qemu-devel] vmbus bridge: machine property or device? Roman Kagan
2017-04-12 15:18 ` Markus Armbruster
2017-04-12 20:07   ` Eduardo Habkost
2017-04-13 15:15     ` Roman Kagan
2017-04-13 16:44       ` Eduardo Habkost
2017-04-13 16:58         ` Peter Maydell
2017-04-13 18:15           ` Eduardo Habkost
2017-04-13 21:57             ` Peter Maydell
2017-04-13 21:10           ` Roman Kagan
2017-04-13 17:04         ` Roman Kagan
2017-04-13 14:08   ` Roman Kagan

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.