qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RESEND PATCH 1/2] balloon: call qdev_alias_all_propert


From: Denis V. Lunev
Subject: Re: [Qemu-devel] [RESEND PATCH 1/2] balloon: call qdev_alias_all_properties for proxy dev in balloon class init
Date: Thu, 26 Feb 2015 20:01:08 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 19/02/15 14:26, Cornelia Huck wrote:
On Thu, 19 Feb 2015 11:29:27 +0100
"Michael S. Tsirkin" <address@hidden> wrote:

On Thu, Feb 19, 2015 at 01:23:03PM +0300, Denis V. Lunev wrote:
The problem is code duplication: all transports need to know
about these balloon-specific property.
Why isn't it handled by virtio_instance_init_common?

why it should?

virtio_instance_init_common is common for all virtio devices
including VirtIO net, VirtIO block, VirtIO SCSI. Thus the patch
move initialization of all common stuff into the common
code.
The problem seems common enough, virtio_instance_init_common
already works for all properties, why not for these ones?
It only works for the properties that are common amongst transports and
all devices.

Adding a virtio_balloon_init_common() that adds the guest_stats (or a
virtio_rng_init_common() that adds rng) is probably not a bad idea, but
I'd prefer it as patches on top of these.

ping. Michael, what is the decision?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]