Skip to contentSkip to conversation

virtio drivers implementation details

qemu Vasile Catalin-B50542 2 participants 4 messages Dec 2, 2014 – Dec 9, 2014 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to develop a custom virtio driver for myself. Can I ask here virtio driver implementation details? I've tried the kvm and qemu irc channel, but had no luck.

#2 lore raw
In reply to Vasile Catalin-B50542

I'm trying to make a custom virtio driver that mostly interacts with memory. I've came upon a presentation which shows which files need to be edited on qemu and kvm in order to add a new virtio driver.
One of the files in qemu is include/hw/pci/pci.h,
but that was an example specific to virtio pci.
virtio-mmio is better mapped on my situation, but I can't seem to find a similar header for it. In fact I can't find anything related to virtio mmio through out the header files

#3 lore raw
Quoted 10 lines · On Tue, Dec 02, 2014 at 01:26:10PM +0200, Vasile Catalin-B50542 wrote:

I'm trying to make a custom virtio driver that mostly interacts with memory. I've came upon a presentation which shows which files need to be edited on qemu
and kvm in order to add a new virtio driver.
One of the files in qemu is include/hw/pci/pci.h,
but that was an example specific to virtio pci.
virtio-mmio is better mapped on my situation, but I can't seem to find a similar header for it.
In fact I can't find anything related to virtio mmio through out the header files

If you are adding a new device type (e.g. printer device) then the code should not depend on the transport (PCI, MMIO, CCW, etc).

Can you explain what type of device you are trying to implement?

Stefan