qemu-devel
[Top][All Lists]
Advanced

[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>




reply via email to

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