Skip to contentSkip to conversation

link new devices

Qemu-devel Vasile Catalin-B50542 2 participants 3 messages Feb 13, 2015 – Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

How does the vhost API links with vhost devices?
I don't see any "*-net" or "*_net" or even "*net" references in vhost API files, nor do I see any registering macros inside vhost-net device code.

#1 lore raw
Quoted 4 lines · On Fri, Feb 13, 2015 at 05:33:25PM +0200, Vasile Catalin-B50542 wrote:

How does the vhost API links with vhost devices?
I don't see any "*-net" or "*_net" or even "*net" references in vhost API files,
nor do I see any registering macros inside vhost-net device code.

What do you mean by "link"?

The vhost kernel modules have an ioctl(2) interface. See hw/virtio/vhost-backend.c:vhost_kernel_call() callers.

Stefan

#2 lore raw
In reply to Vasile Catalin-B50542

I'm not yet very accustomed to qemu sources and I usually associate source code modules integration with type_init().
Related to vhost-net, I later found out that it is an API like source code, it is used/called by virtio-net.

Quoted 4 lines · On Fri, Feb 13, 2015 at 05:33:25PM +0200, Vasile Catalin-B50542 wrote:

How does the vhost API links with vhost devices?
I don't see any "*-net" or "*_net" or even "*net" references in vhost API files,
nor do I see any registering macros inside vhost-net device code.

What do you mean by "link"?

The vhost kernel modules have an ioctl(2) interface. See hw/virtio/vhost-backend.c:vhost_kernel_call() callers.

Stefan