lkml.org 
[lkml]   [2007]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [kvm-devel] [PATCH 3/3] virtio PCI device
Anthony Liguori wrote:
> Avi Kivity wrote:
>> Anthony Liguori wrote:
>>
>>> This is a PCI device that implements a transport for virtio. It
>>> allows virtio
>>> devices to be used by QEMU based VMMs like KVM or Xen.
>>>
>>>
>>
>> Didn't see support for dma.
>
> Not sure what you're expecting there. Using dma_ops in virtio_ring?
>

If a pci device is capable of dma (or issuing interrupts), it will be
useless with pv pci.


>> I think that with Amit's pvdma patches you
>> can support dma-capable devices as well without too much fuss.
>>
>
> What is the use case you're thinking of? A semi-paravirt driver that
> does dma directly to a device?

No, an unmodified driver that, by using clever tricks with dma_ops, can
do dma directly to guest memory. See Amit's patches.

In fact, why do a virtio transport at all? It can be done either with
trap'n'emulate, or by directly mapping the device mmio space into the guest.


(what use case are you considering? devices without interrupts and dma?
pci door stoppers?)

--
error compiling committee.c: too many arguments to function

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-11-08 15:41    [W:0.097 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site