Skip to contentSkip to conversation

xen drivers to use virtio?

DISCUSSION Jun Koi 3 participants 6 messages Feb 25, 2009 – Feb 27, 2009

lore
Share & tools
lore

Jun Koi

author
#0 lore raw

Hello,

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

Thanks,
Jun

#1 lore raw
Quoted 3 lines · Jun Koi

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

There are no plans to do so.

J

#2 lore raw
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 3 lines · Jun Koi

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

There are no plans to do so.

Actually, they're already there to some degree now that qemu-dm is tracking the upstream QEMU tree. virtio support has been in the QEMU tree for some time now. If it's not enabled in qemu-dm by default, it should be trivial to enable. From Xend's perspective, virtio devices shouldn't be different from either rtl8139, e1000, etc. It's just another PCI device.

This model makes less sense in the context of stub domains, but if you're running qemu-dm in dom0, you may actually get reasonable performance out of the virtio drivers.

In fact, comparing an HVM domain using virtio with qemu-dm in dom0 verses netfront ala PV-on-HVM would make for a very interesting comparison.

And assuming PV-on-HVM isn't in upstream Linux yet (that appears to be the case) and virtio is, it may even be a practical thing to do.

Regards,

Anthony Liguori

Quoted 1 line

J

#3 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 3 lines · Jun Koi

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

There are no plans to do so.

Actually, they're already there to some degree now that qemu-dm is tracking the upstream QEMU tree. virtio support has been in the QEMU tree for some time now. If it's not enabled in qemu-dm by default, it should be trivial to enable.

Apparently qemu-dm is still on an older SVN version of QEMU that doesn't have virtio. I think Ian is still trying to work out the merge conflicts from Stefano's DisplayState refactoring.

In the mean time, it should be easy enough to port the virtio code into Ian's tree or just wait for him to rebase to a newer QEMU version.

Regards,

Anthony Liguori

Quoted 14 lines

From Xend's perspective, virtio devices shouldn't be different from either rtl8139, e1000, etc. It's just another PCI device.

This model makes less sense in the context of stub domains, but if you're running qemu-dm in dom0, you may actually get reasonable performance out of the virtio drivers.

In fact, comparing an HVM domain using virtio with qemu-dm in dom0 verses netfront ala PV-on-HVM would make for a very interesting comparison.

And assuming PV-on-HVM isn't in upstream Linux yet (that appears to be the case) and virtio is, it may even be a practical thing to do.

Regards,

Anthony Liguori

Quoted 1 line

J

author
#4 lore raw
In reply to Anthony Liguori
Quoted 20 lines · Anthony Liguori
Quoted 8 lines · Jeremy Fitzhardinge
Quoted 4 lines · Jun Koi

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

There are no plans to do so.

Actually, they're already there to some degree now that qemu-dm is tracking the upstream QEMU tree.  virtio support has been in the QEMU tree for some time now.  If it's not enabled in qemu-dm by default, it should be trivial to enable.  From Xend's perspective, virtio devices shouldn't be different from either rtl8139, e1000, etc.  It's just another PCI device.

This model makes less sense in the context of stub domains, but if you're running qemu-dm in dom0, you may actually get reasonable performance out of the virtio drivers.

Quoted 6 lines

In fact, comparing an HVM domain using virtio with qemu-dm in dom0 verses netfront ala PV-on-HVM would make for a very interesting comparison.

And assuming PV-on-HVM isn't in upstream Linux yet (that appears to be the case) and virtio is, it may even be a practical thing to do.

OK, the current picture is getting more clear to me now. Thanks! Jun

#5 lore raw
In reply to Anthony Liguori
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 3 lines · Jun Koi

If I understand correctly, we are going to rewrite some xen drivers in Linux kernel to use virtio once virtio is stable. Is that true?

There are no plans to do so.

Quoted 7 lines

Actually, they're already there to some degree now that qemu-dm is tracking the upstream QEMU tree. virtio support has been in the QEMU tree for some time now. If it's not enabled in qemu-dm by default, it should be trivial to enable. From Xend's perspective, virtio devices shouldn't be different from either rtl8139, e1000, etc. It's just another PCI device.

This model makes less sense in the context of stub domains, but if you're running qemu-dm in dom0, you may actually get reasonable performance out of the virtio drivers.

In fact, comparing an HVM domain using virtio with qemu-dm in dom0 verses netfront ala PV-on-HVM would make for a very interesting comparison.

And assuming PV-on-HVM isn't in upstream Linux yet (that appears to be the case) and virtio is, it may even be a practical thing to do.

I have some pvhvm changes sitting here waiting for some testing. They're fairly trivial as they completely reuse the existing frontend drivers, so its just some stuff to probe for the Xen magic pci device and route from the pci interrupt back to event channels. So I don't think there's a lot of code saving either way.

That said, it would be interesting to compare guests using direct pv drivers, vs virtio-via-qemu.

J