Displaying 12 results from an estimated 12 matches for "nb_nics".
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...const char *name, const char *up_or_down);
/* NIC info */
#define MAX_NICS 8
+enum {
+ NIC_NVECTORS_UNSPECIFIED = -1
+};
struct NICInfo {
uint8_t macaddr[6];
@@ -91,6 +94,7 @@ struct NICInfo {
VLANState *vlan;
void *private;
int used;
+ int nvectors;
};
extern int nb_nics;
diff --git a/qemu-options.hx b/qemu-options.hx
index 9d5e05a..a8a1db4 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -733,7 +733,7 @@ STEXI
ETEXI
DEF("net", HAS_ARG, QEMU_OPTION_net,
- "-net nic[,vlan=n][,macaddr=addr][,model=type][,name=str]\n"
+ "-net ni...
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...const char *name, const char *up_or_down);
/* NIC info */
#define MAX_NICS 8
+enum {
+ NIC_NVECTORS_UNSPECIFIED = -1
+};
struct NICInfo {
uint8_t macaddr[6];
@@ -91,6 +94,7 @@ struct NICInfo {
VLANState *vlan;
void *private;
int used;
+ int nvectors;
};
extern int nb_nics;
diff --git a/qemu-options.hx b/qemu-options.hx
index 9d5e05a..a8a1db4 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -733,7 +733,7 @@ STEXI
ETEXI
DEF("net", HAS_ARG, QEMU_OPTION_net,
- "-net nic[,vlan=n][,macaddr=addr][,model=type][,name=str]\n"
+ "-net ni...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++ b/net.h
@@ -110,6 +110,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 6476e6f..2b6e0b6 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -1215,6 +1215,15 @@ int kvm_ioctl(KVMState *s, int type, ...);
int kvm_vm_ioctl(KVMState *s, int type, ...);
int kvm_check_extension(KVMState *s, unsigned int ext);
+struct slot_info {
+ uns...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++ b/net.h
@@ -110,6 +110,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 6476e6f..2b6e0b6 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -1215,6 +1215,15 @@ int kvm_ioctl(KVMState *s, int type, ...);
int kvm_vm_ioctl(KVMState *s, int type, ...);
int kvm_check_extension(KVMState *s, unsigned int ext);
+struct slot_info {
+ uns...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++ b/net.h
@@ -110,6 +110,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index b59e403..0bd0b50 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -136,14 +136,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- un...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index b172691..dd58e2b 100644
--- a/net.h
+++ b/net.h
@@ -110,6 +110,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index b59e403..0bd0b50 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -136,14 +136,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- un...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index fc5fc17..c9c1316 100644
--- a/net.h
+++ b/net.h
@@ -109,6 +109,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 32dce4a..b057046 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -136,14 +136,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- unsigned long...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...of(buf), "model", p)) {
nd->model = strdup(buf);
}
diff --git a/net.h b/net.h
index fc5fc17..c9c1316 100644
--- a/net.h
+++ b/net.h
@@ -109,6 +109,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ char *vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 32dce4a..b057046 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -136,14 +136,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- unsigned long...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
..._ctx *ctx,
@@ -1900,87 +2032,94 @@ void libxl_free_nics_list(libxl_nicinfo
libxl_nicinfo *libxl_list_nics(libxl_ctx *ctx, uint32_t domid, unsigned int *nb)
{
+ libxl_gc gc = LIBXL_INIT_GC(ctx);
char *dompath, *nic_path_fe;
char **l, **list;
char *val, *tok;
unsigned int nb_nics, i;
libxl_nicinfo *res, *nics;
- dompath = libxl_xs_get_dompath(ctx, domid);
- if (!dompath) {
- return NULL;
- }
- list = l = libxl_xs_directory(ctx, XBT_NULL,
- libxl_sprintf(ctx, "%s/device/vif", dompath), &nb_nics);
- if (!l)...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...ble vhost backend",
},
{ /* end of list */ }
},
diff --git a/net.h b/net.h
index 932b50d..adcd5c6 100644
--- a/net.h
+++ b/net.h
@@ -115,6 +115,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ int vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 62ca050..a547975 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -150,14 +150,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- un...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...ble vhost backend",
},
{ /* end of list */ }
},
diff --git a/net.h b/net.h
index 932b50d..adcd5c6 100644
--- a/net.h
+++ b/net.h
@@ -115,6 +115,7 @@ struct NICInfo {
int used;
int bootable;
int nvectors;
+ int vhost_device;
};
extern int nb_nics;
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 62ca050..a547975 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -150,14 +150,6 @@ static inline void clear_gsi(kvm_context_t kvm, unsigned int gsi)
DPRINTF("Invalid GSI %d\n");
}
-struct slot_info {
- unsigned long phys_addr;
- un...
2010 Aug 12
59
[PATCH 00/15] RFC xen device model support
Hi all,
this is the long awaited patch series to add xen device model support in
qemu; the main author is Anthony Perard.
Developing this series we tried to come up with the cleanest possible
solution from the qemu point of view, limiting the amount of changes to
common code as much as possible. The end result still requires a couple
of hooks in piix_pci but overall the impact should be very