[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] make qemu_announce_self handle non contiguous net t
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH] make qemu_announce_self handle non contiguous net tables |
Date: |
Wed, 11 Mar 2009 15:25:03 -0300 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
With hotplug nd_table might contain holes.
Noticed by Eduardo Habkost.
Signed-off-by: Marcelo Tosatti <address@hidden>
Index: savevm.c
===================================================================
--- savevm.c (revision 6811)
+++ savevm.c (working copy)
@@ -122,7 +122,9 @@
VLANClientState *vc;
uint8_t buf[256];
- for (i = 0; i < nb_nics; i++) {
+ for (i = 0; i < MAX_NICS; i++) {
+ if (!nd_table[i].used)
+ continue;
len = announce_self_create(buf, nd_table[i].macaddr);
vlan = nd_table[i].vlan;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
- [Qemu-devel] [PATCH] make qemu_announce_self handle non contiguous net tables,
Marcelo Tosatti <=