qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] make qemu_announce_self handle non contiguous n


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] make qemu_announce_self handle non contiguous net tables
Date: Fri, 13 Mar 2009 11:19:45 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Marcelo Tosatti wrote:
With hotplug nd_table might contain holes.

Noticed by Eduardo Habkost.

Signed-off-by: Marcelo Tosatti <address@hidden>

Applied to both trunk and stable.  Thanks.

Regards,

Anthony Liguori

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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]