Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtNOC-0005Z3-4X for qemu-devel@nongnu.org; Fri, 24 Oct 2008 10:11:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtNOB-0005Yp-M9 for qemu-devel@nongnu.org; Fri, 24 Oct 2008 10:11:43 -0400 Received: from [199.232.76.173] (port=56496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtNOB-0005Yi-Ij for qemu-devel@nongnu.org; Fri, 24 Oct 2008 10:11:43 -0400 Received: from savannah.gnu.org ([199.232.41.3]:60837 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtNOB-0007iA-KI for qemu-devel@nongnu.org; Fri, 24 Oct 2008 10:11:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KtNOA-0007AR-Ms for qemu-devel@nongnu.org; Fri, 24 Oct 2008 14:11:42 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KtNOA-0007AN-7Z for qemu-devel@nongnu.org; Fri, 24 Oct 2008 14:11:42 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 24 Oct 2008 14:11:42 +0000 Subject: [Qemu-devel] [5524] Fix windows build after migration changes Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5524 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5524 Author: aliguori Date: 2008-10-24 14:11:41 +0000 (Fri, 24 Oct 2008) Log Message: ----------- Fix windows build after migration changes The live migration code broke the windows build. As part of this change, I've switched the BIOS path to C:\Program Files\Qemu instead of /c/Program Files/Qemu. The later is only valid when launching from MSYS but the former is always valid. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/configure trunk/migration-tcp.c trunk/vl.c Modified: trunk/configure =================================================================== --- trunk/configure 2008-10-24 13:12:52 UTC (rev 5523) +++ trunk/configure 2008-10-24 14:11:41 UTC (rev 5524) @@ -953,7 +953,7 @@ if test "$mingw32" = "yes" ; then if test -z "$prefix" ; then - prefix="/c/Program Files/Qemu" + prefix="c:\\\\Program Files\\\\Qemu" fi mansuffix="" datasuffix="" Modified: trunk/migration-tcp.c =================================================================== --- trunk/migration-tcp.c 2008-10-24 13:12:52 UTC (rev 5523) +++ trunk/migration-tcp.c 2008-10-24 14:11:41 UTC (rev 5524) @@ -84,7 +84,7 @@ ssize_t ret; do { - ret = write(s->fd, data, size); + ret = send(s->fd, data, size, 0); } while (ret == -1 && errno == EINTR); if (ret == -1) @@ -262,7 +262,7 @@ return NULL; } - fcntl(s->fd, F_SETFL, O_NONBLOCK); + socket_set_nonblock(s->fd); if (s->detach == 1) { dprintf("detaching from monitor\n"); Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-24 13:12:52 UTC (rev 5523) +++ trunk/vl.c 2008-10-24 14:11:41 UTC (rev 5524) @@ -6224,9 +6224,8 @@ len = announce_self_create(buf, nd_table[i].macaddr); vlan = nd_table[i].vlan; for(vc = vlan->first_client; vc != NULL; vc = vc->next) { - if (vc->fd_read == tap_receive) /* send only if tap */ - for (j=0; j < SELF_ANNOUNCE_ROUNDS; j++) - vc->fd_read(vc->opaque, buf, len); + for (j=0; j < SELF_ANNOUNCE_ROUNDS; j++) + vc->fd_read(vc->opaque, buf, len); } } }