Received: from eggs.gnu.org ([2001:4830:134:3::10]:43307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnpR5-0007xn-22 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:27:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnpQz-0003AQ-D9 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:27:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnpQz-0003A3-43 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 10:27:25 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3UERO5x028101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 30 Apr 2015 10:27:24 -0400 Date: Thu, 30 Apr 2015 16:27:21 +0200 From: Kevin Wolf Message-ID: <20150430142721.GD25594@noname.redhat.com> References: <1430277871-26761-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430277871-26761-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 0/7] aio: Support epoll by introducing qemu_poll abstraction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Paolo Bonzini , qemu-devel@nongnu.org, Stefan Hajnoczi Am 29.04.2015 um 05:24 hat Fam Zheng geschrieben: > v4: Rebase to 2.3 and rerun tests. timerfd+epoll shows clear improvement over > current master when the virtio-console device attaches more fds to the main > loop: > > syscall high # of fd low # of fd > ------------------------------------------------- > qemu.git(ppoll) 24 83 > ppoll+epoll 49 82 > timerfd+epoll 49 91 > glib 20 82 > > (In high # of fd case, 3 activated but idle virtio-console devices are > attached, which will add us hundereds of fds to poll) > > Although a new epoll_pwait1 syscall is still being worked on [1], the QEMU > part to make use of that (if any) will base on this, so let's merge it > first. > > [1]: http://www.spinics.net/lists/linux-api/msg08216.html Doesn't even build with mingw: /mnt/qemu/main-loop.c: In function 'os_host_main_loop_wait': /mnt/qemu/main-loop.c:463:5: error: expected ';' before 'nevents' nevents = qemu_poll(qpoll, poll_timeout_ns); ^ /mnt/qemu/main-loop.c:467:9: error: 'r' undeclared (first use in this function) r = qemu_poll_get_events(qpoll, poll_events, nevents); ^ /mnt/qemu/main-loop.c:467:9: note: each undeclared identifier is reported only once for each function it appears in /mnt/qemu/main-loop.c:411:20: warning: unused variable 'events' [-Wunused-variable] QEMUPollEvent *events; ^ make: *** [main-loop.o] Fehler 1 Before you fix that and resend another version as "it compiles, let's ship it": My expectation for patches that touch platform specific code isn't only a build test, but that your actually ran it. Kevin