From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTwOQ-0007Z6-Az for qemu-devel@nongnu.org; Sun, 10 Jan 2010 06:55:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTwOL-0007Wx-Bh for qemu-devel@nongnu.org; Sun, 10 Jan 2010 06:55:37 -0500 Received: from [199.232.76.173] (port=39536 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTwOL-0007Wr-8p for qemu-devel@nongnu.org; Sun, 10 Jan 2010 06:55:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28385) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTwOK-00041s-EJ for qemu-devel@nongnu.org; Sun, 10 Jan 2010 06:55:33 -0500 Date: Sun, 10 Jan 2010 13:52:34 +0200 From: "Michael S. Tsirkin" Message-ID: <20100110115234.GA27013@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv7 0/3] qemu: properties for feature compatibility List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Anthony Liguori , kraxel@redhat.com 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 v6: - fix arm-softmmu build Changes since v5: - added patch to rename features->guest_features 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 Acked-by: Gerd Hoffmann Michael S. Tsirkin (3): qdev: add bit property type virtio: rename features -> guest_features virtio: add features as qdev properties hw/qdev-properties.c | 62 ++++++++++++++++++++++++++++++++++++++++++++----- hw/qdev.h | 11 +++++++++ hw/s390-virtio-bus.c | 14 ++++++++--- hw/s390-virtio-bus.h | 1 + hw/syborg_virtio.c | 17 ++++++++----- hw/virtio-balloon.c | 4 +- hw/virtio-blk.c | 6 +---- hw/virtio-blk.h | 8 ++++++ hw/virtio-console.c | 4 +- hw/virtio-net.c | 49 +++++++++++++++++---------------------- hw/virtio-net.h | 20 ++++++++++++++++ hw/virtio-pci.c | 29 +++++++++++++++-------- hw/virtio.c | 10 ++++---- hw/virtio.h | 9 +++++- 14 files changed, 172 insertions(+), 72 deletions(-)