Re: [Xen-devel] [PATCH v5 00/10] virtio DMA API, yet again

From: Wei Liu
Date: Mon Feb 01 2016 - 16:24:53 EST


On Mon, Feb 01, 2016 at 10:04:07AM -0800, Andy Lutomirski wrote:
> On Mon, Feb 1, 2016 at 3:00 AM, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
> > Nice work, Andy.
> >
> > On Thu, Jan 28, 2016 at 06:31:13PM -0800, Andy Lutomirski wrote:
> >> This switches virtio to use the DMA API on Xen and if requested by
> >> module option.
> >>
> >> This fixes virtio on Xen, and it should break anything because it's
> >> off by default on everything except Xen PV on x86.
> >>
> >
> > What is your setup? My understanding is that virtio doesn't work on PV
> > guest as of now because a suitable transport is missing.
>
> I cheated and ran Xen under KVM with the virtio-pci device provided by
> QEMU. If you have virtme
> (https://git.kernel.org/cgit/utils/kernel/virtme/virtme.git/), you can
> do:
>

Thanks for the clarification. This is exactly what I needed to know. In
that case virtio-pci transport is used. All virtio devices are exposed
as PCI devices.

Wei.


> virtme-run --kdir=. --pwd --xen xen-4.5.2 --qemu-opts -smp 3 -m 1024
>
> where xen-4.5.2 is the gunzipped Xen binary. (Other versions work, too.)
>
> --Andy