[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers |
Date: |
Tue, 26 Apr 2016 10:58:08 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Mon, Apr 25, 2016 at 03:09:14PM -0400, John Snow wrote:
> On 04/25/2016 08:46 AM, Stefan Hajnoczi wrote:
> > This patch series eliminates code duplication in libqos virtio.
> > include/standard-headers/ contains the Linux virtio header files so we don't
> > need to define our own version of the structs and constants.
> >
>
> Is that a good idea? I had thought some of the intentional purpose of
> duplicating the headers was to test the other versions.
There is already a way to verify that the Linux virtio structs and
constants are correct: compare against the virtio specification.
The duplication adds extra work for anyone writing virtio device tests.
We need more tests, which won't happen if it's a pain to write tests.
Most likely the constants will just be copy-pasted from Linux anyway, so
I don't see any benefit in duplication.
Stefan
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 2/8] libqos: drop duplicated PCI vendor ID definition, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 3/8] libqos: drop duplicated virtio_config.h definitions, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 1/8] libqos: use virtio_ids.h for device ID definitions, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 7/8] libqos: drop duplicated virtio_scsi.h definitions, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 5/8] libqos: drop duplicated virtio_vring.h structs, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 4/8] libqos: drop duplicated virtio_ring.h bit definitions, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 6/8] libqos: drop duplicated virtio_blk.h definitions, Stefan Hajnoczi, 2016/04/25
- [Qemu-devel] [PATCH for-2.7 8/8] libqos: drop duplicated virtio_pci.h definitions, Stefan Hajnoczi, 2016/04/25
- Re: [Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers, John Snow, 2016/04/25
- Re: [Qemu-devel] [PATCH for-2.7 0/8] libqos: use standard virtio headers,
Stefan Hajnoczi <=