[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 03/12] dataplane: add host memory mapping cod
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v7 03/12] dataplane: add host memory mapping code |
Date: |
Mon, 17 Dec 2012 10:10:06 +0100 |
On Fri, Dec 14, 2012 at 9:34 PM, Blue Swirl <address@hidden> wrote:
> On Fri, Dec 14, 2012 at 6:00 PM, Stefan Hajnoczi <address@hidden> wrote:
>> +typedef struct {
>> + void *host_addr;
>> + hwaddr guest_addr;
>> + uint64_t size;
>> + bool readonly;
>> +} HostmemRegion;
>
> This should be HostMemRegion.
>
>> +
>> +typedef struct {
>> + /* The listener is invoked when regions change and a new list of
>> regions is
>> + * built up completely before they are installed.
>> + */
>> + MemoryListener listener;
>> + HostmemRegion *new_regions;
>> + size_t num_new_regions;
>> +
>> + /* Current regions are accessed from multiple threads either to lookup
>> + * addresses or to install a new list of regions. The lock protects the
>> + * pointer and the regions.
>> + */
>> + QemuMutex current_regions_lock;
>> + HostmemRegion *current_regions;
>> + size_t num_current_regions;
>> +} Hostmem;
>
> And this HostMem.
Okay, will fix both.
Stefan
- [Qemu-devel] [PATCH v7 00/12] virtio: virtio-blk data plane, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 02/12] configure: add CONFIG_VIRTIO_BLK_DATA_PLANE, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 01/12] raw-posix: add raw_get_aio_fd() for virtio-blk-data-plane, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 03/12] dataplane: add host memory mapping code, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 04/12] dataplane: add virtqueue vring code, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 06/12] dataplane: add Linux AIO request queue, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 05/12] dataplane: add event loop, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 08/12] test-iov: add iov_discard_front/back() testcases, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 09/12] iov: add qemu_iovec_concat_iov(), Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 10/12] virtio-blk: restore VirtIOBlkConf->config_wce flag, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 07/12] iov: add iov_discard_front/back() to remove data, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 12/12] virtio-blk: add x-data-plane=on|off performance feature, Stefan Hajnoczi, 2012/12/14
- [Qemu-devel] [PATCH v7 11/12] dataplane: add virtio-blk data plane code, Stefan Hajnoczi, 2012/12/14