[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v6 03/20] virtio: feature bit manipulation h
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH RFC v6 03/20] virtio: feature bit manipulation helpers |
Date: |
Thu, 11 Dec 2014 15:29:29 +0100 |
On Thu, 11 Dec 2014 14:25:05 +0100
Cornelia Huck <address@hidden> wrote:
> Add virtio_{add,clear}_feature helper functions for manipulating a
> feature bits variable. This has some benefits over open coding:
> - add check that the bit is in a sane range
> - make it obvious at a glance what is going on
> - have a central point to change when we want to extend feature bits
>
> Convert existing code manipulating features to use the new helpers.
>
> Signed-off-by: Cornelia Huck <address@hidden>
> ---
> hw/9pfs/virtio-9p-device.c | 2 +-
> hw/block/virtio-blk.c | 16 ++++++++--------
> hw/char/virtio-serial-bus.c | 2 +-
> hw/net/virtio-net.c | 34 +++++++++++++++++-----------------
> hw/s390x/virtio-ccw.c | 4 ++--
> hw/virtio/virtio-mmio.c | 2 +-
> hw/virtio/virtio-pci.c | 4 ++--
> include/hw/virtio/virtio.h | 12 ++++++++++++
> 8 files changed, 44 insertions(+), 32 deletions(-)
Patch looks fine to me.
Reviewed-by: Thomas Huth <address@hidden>
- [Qemu-devel] [PATCH RFC v6 00/20] qemu: towards virtio-1 host support, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 02/20] virtio: cull virtio_bus_set_vdev_features, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 03/20] virtio: feature bit manipulation helpers, Cornelia Huck, 2014/12/11
- Re: [Qemu-devel] [PATCH RFC v6 03/20] virtio: feature bit manipulation helpers,
Thomas Huth <=
- [Qemu-devel] [PATCH RFC v6 06/20] virtio: endianness checks for virtio 1.0 devices, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 05/20] virtio: support more feature bits, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 08/20] dataplane: allow virtio-1 devices, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 10/20] s390x/virtio-ccw: add virtio set-revision call, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 09/20] s390x/css: Add a callback for when subchannel gets disabled, Cornelia Huck, 2014/12/11
- [Qemu-devel] [PATCH RFC v6 12/20] virtio: disallow late feature changes for virtio-1, Cornelia Huck, 2014/12/11