> From: Lucas Meneghel Rodrigues <l...@redhat.com> > > 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=0xf4,iosize=0x04 \ > -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 <pbonz...@redhat.com> > Signed-off-by: Alexander Graf <ag...@suse.de> > Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com> > Signed-off-by: Lucas Meneghel Rodrigues <l...@redhat.com> > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > 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 test_flush_page: /qemu/hw/i386/../pc-testdev.c:103: warning: implicit declaration of function mprotect ... Should hw/pc-testdev.c be only compiled when CONFIG_KVM is defined? Regards, Stefan