summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-27 18:44:04 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-27 18:44:04 -0700
commite13dcf133d73cda45c3e56d776664d2e62e915f9 (patch)
tree3d77854fd4a451be6b5cebc7ac5a9aab41460cc2 /net
parent4e523287a04836b483d1d858ae94078c95ae1038 (diff)
downloadillumos-kvm-cmd-e13dcf133d73cda45c3e56d776664d2e62e915f9.tar.gz
HVM-430 Regression in kvm-cmd-14 with KVM_NET_QUEUE ioctl
Diffstat (limited to 'net')
-rw-r--r--net/vnic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/vnic.c b/net/vnic.c
index c6a7e8f..aca3106 100644
--- a/net/vnic.c
+++ b/net/vnic.c
@@ -40,7 +40,6 @@
#include "net/vnic.h"
-#include "config-host.h"
#include "qemu-common.h"
#include "qemu-error.h"
#include "qemu-option.h"
@@ -218,6 +217,7 @@ static NetClientInfo net_vnic_info = {
.cleanup = vnic_cleanup
};
+#ifdef CONFIG_SUNOS_VNIC_KVM
static int
net_init_kvm(int vfd)
{
@@ -239,6 +239,7 @@ net_init_kvm(int vfd)
return (0);
}
+#endif
int
net_init_vnic(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)
@@ -304,8 +305,7 @@ net_init_vnic(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)
snprintf(vsp->vns_nc.info_str, sizeof (vsp->vns_nc.info_str), "ifname=%s",
qemu_opt_get(opts, "ifname"));
- /* XXX This should be ifdef'd around whether or not KVM is present */
-#ifdef CONFIG_KVM
+#ifdef CONFIG_SUNOS_VNIC_KVM
net_init_kvm(fd);
#endif