Received: from eggs.gnu.org ([208.118.235.92]:57747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrF3e-0004jB-HH for qemu-devel@nongnu.org; Fri, 04 Jan 2013 16:44:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrF3d-00008G-Fn for qemu-devel@nongnu.org; Fri, 04 Jan 2013 16:44:06 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:44729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrF3d-000081-8N for qemu-devel@nongnu.org; Fri, 04 Jan 2013 16:44:05 -0500 Message-ID: In-Reply-To: <1357287364-24921-4-git-send-email-kraxel@redhat.com> References: <1357287364-24921-1-git-send-email-kraxel@redhat.com> <1357287364-24921-4-git-send-email-kraxel@redhat.com> Date: Fri, 4 Jan 2013 22:44:02 +0100 From: "Stefan Weil" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/4] hw: Add test device for unittests execution List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Lucas Meneghel Rodrigues , Marcelo Tosatti , qemu-devel@nongnu.org, Alexander Graf , Paolo Bonzini > From: Lucas Meneghel Rodrigues > > Add a test device which supports the kvmctl ioports, > so one can run the KVM unittest suite. > > Intended Usage: > > qemu-system-x86_64 -nographic \ > -device pc-testdev \ > -device isa-debug-exit,iobase=3D0xf4,iosize=3D0x04 \ > -kernel /path/to/kvm/unittests/msr.flat > > Where msr.flat is one of the KVM unittests, present on a > separate repo, > > git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git > > [ kraxel: more memory api + qom fixes ] > > CC: Paolo Bonzini > Signed-off-by: Alexander Graf > Signed-off-by: Marcelo Tosatti > Signed-off-by: Lucas Meneghel Rodrigues > Signed-off-by: Gerd Hoffmann > --- > hw/i386/Makefile.objs | 1 + > hw/pc-testdev.c | 182 > +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 183 insertions(+), 0 deletions(-) > create mode 100644 hw/pc-testdev.c This patch breaks QEMU git master for MinGW. CC i386-softmmu/hw/i386/../pc-testdev.o /qemu/hw/i386/../pc-testdev.c:38:22: warning: sys/mman.h: Datei oder Verzeichnis nicht gefunden /qemu/hw/i386/../pc-testdev.c: In function =91test_flush_page=92: /qemu/hw/i386/../pc-testdev.c:103: warning: implicit declaration of function =91mprotect=92 ... Should hw/pc-testdev.c be only compiled when CONFIG_KVM is defined? Regards, Stefan