[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/5] libqos: Change use of pointers to uint64
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/5] libqos: Change use of pointers to uint64_t in virtio |
Date: |
Mon, 17 Nov 2014 15:16:21 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Nov 01, 2014 at 06:02:26PM +0100, Marc Marí wrote:
> Convert use of pointers in functions of virtio to uint64_t in order to make it
> platform-independent.
>
> Add casting from pointers (in PCI functions) to uint64_t and vice versa
> through
> uintptr_t.
>
> Signed-off-by: Marc Marí <address@hidden>
> ---
> tests/libqos/virtio-pci.c | 20 +++++++++++---------
> tests/libqos/virtio.c | 8 ++++----
> tests/libqos/virtio.h | 16 ++++++++--------
> tests/virtio-blk-test.c | 21 ++++++++++++++-------
> 4 files changed, 37 insertions(+), 28 deletions(-)
This makes sense. To fully abolish pointers the PCI code also needs to
be converted. Do plan plan to do that?
Stefan
pgpBAsZ3Mf3ac.pgp
Description: PGP signature
[Qemu-devel] [PATCH v2 4/5] libqos: Add malloc generic, Marc Marí, 2014/11/01
[Qemu-devel] [PATCH v2 2/5] tests: Prepare virtio-blk-test for multi-arch implementation, Marc Marí, 2014/11/01
[Qemu-devel] [PATCH v2 3/5] libqos: Remove PCI assumptions in constants of virtio driver, Marc Marí, 2014/11/01
[Qemu-devel] [PATCH v2 5/5] libqos: Add virtio MMIO support, Marc Marí, 2014/11/01