On Fri, Jul 27, 2012 at 05:27:34AM -0400, Jiri B wrote:
> On Thu, Jul 26, 2012 at 07:41:56AM +0200, Tobias Wigand wrote:
> > Hi,
> >
> > In case someone is interested, I have tried to run a comparison
> > between the new Virtio network driver and e1000 emulation.
> > This is more of a real life home usage example, I have used my
> > personal firewall setup for the tests. Your results may vary. I have
> > issued pfctl -Fa for the tests. The tests were done against an old
> > Dell D600 running Ubuntu.
> > I have not run any tests on the storage driver, but using it the KVM
> > guest feels much faster, especially booting or shutting down is
> > really fast for me.
>
> Little OT - most KVM has libvirt as backend, if anybody would like to
> help with an issue of libvirt on OpenBSD, check here (and thanks!):
>
> https://bugzilla.redhat.com/show_bug.cgi?id=781374
libvirt-0.9.13 compiles on amd64 -current with some simple diffs
even with all the horrible gnulib code.
Their configure tests need to be fixed to not assume struct ucred
is valid everywhere.
$ find . -name "*.a"
./src/.libs/libvirt_util.a
./src/.libs/libvirt_conf.a
./src/.libs/libvirt_cpu.a
./src/.libs/libvirt_vmx.a
./src/.libs/libvirt_driver.a
./src/.libs/libvirt_driver_test.a
./src/.libs/libvirt-net-rpc-client.a
./src/.libs/libvirt-net-rpc-server.a
./src/.libs/libvirt-net-rpc.a
./src/.libs/libvirt_driver_remote.a
./src/.libs/libvirt_driver_vmware.a
./src/.libs/libvirt_driver_vbox.a
./src/.libs/libvirt_driver_esx.a
./src/.libs/libvirt_driver_security.a
./src/.libs/libvirt.a
./src/.libs/libvirt-qemu.a
./src/.libs/libvirt_driver_network_impl.a
./src/.libs/libvirt_driver_network.a
./src/.libs/libvirt_driver_secret.a
./src/.libs/libvirt_driver_storage.a
./gnulib/lib/.libs/libgnu.a
--- src/rpc/virnetsocket.c.orig Fri Jul 27 20:07:53 2012
+++ src/rpc/virnetsocket.c Fri Jul 27 20:11:54 2012
@@ -833,7 +833,7 @@ int virNetSocketGetUNIXIdentity(virNetSocketPtr sock,
gid_t *gid,
pid_t *pid)
{
- struct ucred cr;
+ struct sockpeercred cr;
socklen_t cr_len = sizeof(cr);
virMutexLock(&sock->lock);
--- src/vbox/vbox_XPCOMCGlue.c.orig Fri Jul 27 20:13:11 2012
+++ src/vbox/vbox_XPCOMCGlue.c Fri Jul 27 20:13:45 2012
@@ -48,7 +48,7 @@
/*******************************************************************************
* Defined Constants And Macros
*
*******************************************************************************/
-#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) ||
defined(__FreeBSD__)
+#if defined(__linux__) || defined(__linux_gnu__) || defined(__sun__) ||
defined(__FreeBSD__) || defined(__OpenBSD__)
# define DYNLIB_NAME "VBoxXPCOMC.so"
#elif defined(__APPLE__)
# define DYNLIB_NAME "VBoxXPCOMC.dylib"
--- src/network/bridge_driver.c.orig Fri Jul 27 20:18:43 2012
+++ src/network/bridge_driver.c Fri Jul 27 20:19:08 2012
@@ -41,6 +41,7 @@
#include <stdio.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
#include <net/if.h>
#include "virterror_internal.h"