[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/7] hw/block/virtio-blk: use virtio wrappers to
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 5/7] hw/block/virtio-blk: use virtio wrappers to access headers. |
Date: |
Thu, 8 Aug 2013 10:57:22 +0100 |
On 8 August 2013 06:15, Rusty Russell <address@hidden> wrote:
> Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p.
This is the right thing, incidentally. The _raw() functions are
supposed to take a guest physical address (as an integer), where
the _p() ones take a host void*. However the implementation means
you can get away with misusing the _raw() function where you meant
the _p() function provided your code is only built for system
emulation, because the macro's casts mean the compiler won't
call you it. (We should probably try to clean up some of the
misuses.)
-- PMM
- [Qemu-devel] [PATCH 7/7] hw/char/virtio-serial-bus: use virtio wrappers to access headers., (continued)
- [Qemu-devel] [PATCH 7/7] hw/char/virtio-serial-bus: use virtio wrappers to access headers., Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 2/7] target-ppc: ppc64 targets can be either endian., Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 4/7] hw/net/virtio-balloon: use virtio wrappers to access page frame numbers., Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 6/7] hw/scsi/virtio-scsi: use virtio wrappers to access headers., Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 1/7] virtio: allow byte swapping for vring and config access, Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 5/7] hw/block/virtio-blk: use virtio wrappers to access headers., Rusty Russell, 2013/08/08
- [Qemu-devel] [PATCH 7/7] patch virtio-serial-biendian.patch, Rusty Russell, 2013/08/08