Re: source for virt io backend driver
On Tue, Apr 10, 2012 at 4:47 AM, Steven wangwangk...@gmail.com wrote: I found this post http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/89334 So the current block driver seems completely emulated by the qemu driver. That's right: qemu/hw/virtio-blk.c Stefan -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: source for virt io backend driver
On Sun, Apr 08, 2012, Steven wrote about Re: source for virt io backend driver: vhost-net. This you can find in drivers/vhost/net.c (and drivers/vhost/vhost.c for the generic vhost infrastructure for virtio drivers in the host kernel). Yes, I am looking for the backend code in the kernel. I found the file for net backend drivers/vhost/net.c. However, the backend code for blk is not there. Could you point out this? Thanks. Indeed, vhost-block is not (yet) part of the mainline kernel. Maybe someone else more experienced in vhost-block can recommend where to get the latest version. Nadav. -- Nadav Har'El| Monday, Apr 9 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Diplomat: A man who always remembers a http://nadav.harel.org.il |woman's birthday but never her age. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: source for virt io backend driver
Hi, I found this post http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/89334 So the current block driver seems completely emulated by the qemu driver. - ha On Mon, Apr 9, 2012 at 2:15 AM, Nadav Har'El n...@math.technion.ac.il wrote: On Sun, Apr 08, 2012, Steven wrote about Re: source for virt io backend driver: vhost-net. This you can find in drivers/vhost/net.c (and drivers/vhost/vhost.c for the generic vhost infrastructure for virtio drivers in the host kernel). Yes, I am looking for the backend code in the kernel. I found the file for net backend drivers/vhost/net.c. However, the backend code for blk is not there. Could you point out this? Thanks. Indeed, vhost-block is not (yet) part of the mainline kernel. Maybe someone else more experienced in vhost-block can recommend where to get the latest version. Nadav. -- Nadav Har'El | Monday, Apr 9 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Diplomat: A man who always remembers a http://nadav.harel.org.il |woman's birthday but never her age. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: source for virt io backend driver
On Sat, Apr 07, 2012, Steven wrote about source for virt io backend driver: Hi, I would like to know where I can find the source for backend driver of virtio device. For example, I know that the front-end net driver is ... Can anyone help to point out where the source of net virtio backend in the host kernel? If you use normal virtio, the backend is in qemu, i.e., host user space, *not* in the host kernel. So you need to look for it in qemu, not kvm. If you want the backend to be in the kernel, then you probably mean vhost-net. This you can find in drivers/vhost/net.c (and drivers/vhost/vhost.c for the generic vhost infrastructure for virtio drivers in the host kernel). Of course, also with vhost-net, qemu is involved in setting up this device. But qemu doesn't need to get involved in the data path (data, interrupts, etc.) which is done completely in the kernel, and therefore much more efficiently. -- Nadav Har'El| Sunday, Apr 8 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Lottery: You need a dollar and a dream. http://nadav.harel.org.il |We'll take the dollar, you keep the dream. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: source for virt io backend driver
On Sun, Apr 8, 2012 at 4:13 AM, Nadav Har'El n...@math.technion.ac.il wrote: On Sat, Apr 07, 2012, Steven wrote about source for virt io backend driver: Hi, I would like to know where I can find the source for backend driver of virtio device. For example, I know that the front-end net driver is ... Can anyone help to point out where the source of net virtio backend in the host kernel? If you use normal virtio, the backend is in qemu, i.e., host user space, *not* in the host kernel. So you need to look for it in qemu, not kvm. If you want the backend to be in the kernel, then you probably mean vhost-net. This you can find in drivers/vhost/net.c (and drivers/vhost/vhost.c for the generic vhost infrastructure for virtio drivers in the host kernel). Yes, I am looking for the backend code in the kernel. I found the file for net backend drivers/vhost/net.c. However, the backend code for blk is not there. Could you point out this? Thanks. By the way, I found the front-end blk code in drivers/block/virtio_blk.c Of course, also with vhost-net, qemu is involved in setting up this device. But qemu doesn't need to get involved in the data path (data, interrupts, etc.) which is done completely in the kernel, and therefore much more efficiently. -- Nadav Har'El | Sunday, Apr 8 2012, n...@math.technion.ac.il |- Phone +972-523-790466, ICQ 13349191 |Lottery: You need a dollar and a dream. http://nadav.harel.org.il |We'll take the dollar, you keep the dream. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
source for virt io backend driver
Hi, I would like to know where I can find the source for backend driver of virtio device. For example, I know that the front-end net driver is drivers/net/virtio_net.c and the hardware emulation code is in qemu-kvm/hw/virtio-net.c. Can anyone help to point out where the source of net virtio backend in the host kernel? Even in the Mark McLoughlin' note, he seems ignore this transition. Thanks. http://markmc.fedorapeople.org/virtio-code-review/virtio-talk.txt Ha -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html