Re: Virtio Devices Patch

[email protected] Fri, 19 Apr 2013 08:42:03 +0200 (CEST)
Newsgroups gmane.comp.security.ipcop.devel
Message-ID <764717778.54184243.1366353723558.JavaMail.root@zimbra33-e6.priv.proxad.net>

----- 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

------------------------------------------------------------------------------
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