qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv5 0/2] qemu: properties for feature compatibility
@ 2010-01-04 15:36 Michael S. Tsirkin
  2010-01-04 15:56 ` [Qemu-devel] " Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2010-01-04 15:36 UTC (permalink / raw)
  To: qemu-devel, Anthony Liguori, kraxel

Here's what I came up with for solving the problem of differences in
features in virtio between 0.12 and 0.11.  This also enables migration
between different backends, e.g.  between host where tap supports virtio
net header and where it does not: management just needs to set features
appropriately.
Compat bits are yet to be set, will be done when this patch is applied.

Changes since v4:
- Save bit offset in a separate field, offset is in bytes

Changes since RFC v2:
- we already have a flag to control write cache feature,
  let's not add another one

Changes since RFC:
- add symbolic names for properties
- only optional features can be changed
Comments? Gerd, what do you think?



Michael S. Tsirkin (2):
  qdev: add bit property type
  virtio: add features as qdev properties

 hw/qdev-properties.c |   62 ++++++++++++++++++++++++++++++++++++++++++++-----
 hw/qdev.h            |   11 +++++++++
 hw/s390-virtio-bus.c |   12 +++++++--
 hw/s390-virtio-bus.h |    1 +
 hw/syborg_virtio.c   |   12 +++++----
 hw/virtio-balloon.c  |    4 +-
 hw/virtio-blk.c      |    6 +----
 hw/virtio-blk.h      |    8 ++++++
 hw/virtio-console.c  |    4 +-
 hw/virtio-net.c      |   39 +++++++++++++------------------
 hw/virtio-net.h      |   20 ++++++++++++++++
 hw/virtio-pci.c      |   25 +++++++++++++------
 hw/virtio.c          |    2 +-
 hw/virtio.h          |    7 +++++-
 14 files changed, 156 insertions(+), 57 deletions(-)

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

* [Qemu-devel] Re: [PATCHv5 0/2] qemu: properties for feature compatibility
  2010-01-04 15:36 [Qemu-devel] [PATCHv5 0/2] qemu: properties for feature compatibility Michael S. Tsirkin
@ 2010-01-04 15:56 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2010-01-04 15:56 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: qemu-devel

On 01/04/10 16:36, Michael S. Tsirkin wrote:
> Here's what I came up with for solving the problem of differences in
> features in virtio between 0.12 and 0.11.  This also enables migration
> between different backends, e.g.  between host where tap supports virtio
> net header and where it does not: management just needs to set features
> appropriately.

Looks good to me now.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

cheers,
   Gerd

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

end of thread, other threads:[~2010-01-04 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-04 15:36 [Qemu-devel] [PATCHv5 0/2] qemu: properties for feature compatibility Michael S. Tsirkin
2010-01-04 15:56 ` [Qemu-devel] " Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).