[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/7] dataplane: add virtqueue vring code
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 3/7] dataplane: add virtqueue vring code |
Date: |
Fri, 16 Nov 2012 09:13:15 +0100 |
On Fri, Nov 16, 2012 at 8:48 AM, Christian Borntraeger
<address@hidden> wrote:
> On 15/11/12 16:19, Stefan Hajnoczi wrote:
>
>> +#include "trace.h"
>> +#include "hw/dataplane/vring.h"
>> +
>> +/* Map target physical address to host address
>> + */
>> +static inline void *phys_to_host(Vring *vring, hwaddr phys)
>> +{
>> + /* Adjust for 3.6-4 GB PCI memory range */
>> + if (phys >= 0x100000000) {
>> + phys -= 0x100000000 - 0xe0000000;
>> + } else if (phys >= 0xe0000000) {
>> + fprintf(stderr, "phys_to_host bad physical address in "
>> + "PCI range %#lx\n", phys);
>> + exit(1);
>> + }
>
> I think non-pci virtio also wants to use dataplane. Any chance to move such
> pci
> specific things out of the main code?
Yes, using MemoryListener take care of this. Actually enabling
virtio-blk-mmio or virtio-blk-ccw should work as long as those
transports provide ioeventfd, irqfd, and use the vring memory layout.
Stefan
- [Qemu-devel] [PATCH 2/7] configure: add CONFIG_VIRTIO_BLK_DATA_PLANE, (continued)
- [Qemu-devel] [PATCH 3/7] dataplane: add virtqueue vring code, Stefan Hajnoczi, 2012/11/15
- [Qemu-devel] [PATCH 4/7] dataplane: add event loop, Stefan Hajnoczi, 2012/11/15
- [Qemu-devel] [PATCH 5/7] dataplane: add Linux AIO request queue, Stefan Hajnoczi, 2012/11/15
- [Qemu-devel] [PATCH 7/7] virtio-blk: add x-data-plane=on|off performance feature, Stefan Hajnoczi, 2012/11/15
- Re: [Qemu-devel] [PATCH 7/7] virtio-blk: add x-data-plane=on|off performance feature, Anthony Liguori, 2012/11/15