Re: Virtio Devices Patch
Eric Shubert <[email protected]> Sat, 20 Apr 2013 13:56:03 -0700
| Newsgroups | gmane.comp.security.ipcop.devel |
|---|---|
| Organization | Eric Shubert & Associates |
| Message-ID | <[email protected]> |
On 04/18/2013 11:42 PM, [email protected] wrote: > > > ----- Mail original ----- >> De: "Eric Shubert" <[email protected]> >> À: [email protected] >> Envoyé: Jeudi 18 Avril 2013 22:29:03 >> Objet: [IPCop-devel] Virtio Devices Patch >> >> A fellow developer (Justin H) and I have successfully built the >> latest >> (7001) IPCop with support for Virtio (paravirtualized KVM) disk and >> network devices. These drivers are part of the kernel, and provide >> significant performance improvements for IPCop virtual hosts running >> under Linux KVM. >> >> The svn diff patch file is attached. It's fairly simple. The code is >> replicated and tailored from existing IPCop code, and existing code >> is pretty much untouched. >> > Thank for the patch. > I will care to integrate. > > Index: src/installer/partition.c > =================================================================== > --- src/installer/partition.c (revision 7001) > +++ src/installer/partition.c (working copy) > @@ -622,6 +622,8 @@ > /* TODO be more specific which modules to include */ > fprintf(handle, "ext3\njbd\n"); > fprintf(handle, "ehci-hcd\nohci-hcd\nuhci-hcd\nhid\nusbhid\n"); > + // include virtio so se can boot from a virtio disk. > + fprintf(handle, "virtio\nvirtio_pci\nvirtio_blk\n"); > > Appart of the typo, maybe we could detect boot from KVM? > > http://www.dmo.ca/blog/detecting-virtualization-on-linux/ > say 'dmesg | grep -i virtual' detect for all virtualized cases. > > To be specific for KVM, I suppose this should do the trick. > dmesg | grep -i 'paravirtualized kernel on KVM' > > Could you confirm? > > Gilles > > ------------------------------------------------------------------------------ Thanks Gilles. I'll incorporate said change, and see about doing the same when detecting the nic so the subsystem_deviceid can be stored so that the routine in networking.c will find it. I'll post another patch when I get it done. Hopefully this weekend. Thanks again. -- -Eric 'shubes' ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ IPCop-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ipcop-devel