History | View | Annotate | Download (13.5 kB)
qtest: Don't reset on qtest chardev connect
libqtest's qtest_init() connecting to the qtest socket triggers reset.This was coded in the hope we could use the same QEMU process formultiple tests that way. Never used. Injects an extra reset evenwhen it's not used, and that can mess up tests such as the one of...
qtest: Handle addresses and values for {in, out}[bwl] as unsigned
Handle the addresses and values for {in,out}[bwl] as unsigned (iewith strtoul), as per the protocol specification comment. This fixesa test failure in test_i440fx_defaults on 32-bit hosts where the test...
sysemu: avoid proliferation of include/ subdirectories
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qtest: use synchronous I/O for char device
Peter reported that rtc-test would periodically hang. It turns outthis was due to an EAGAIN occurring on qemu_chr_fe_write.
Instead of heavily refactoring qtest, just use a synchronous versionof the write operation for qemu_chr_fe_write to address this problem....
qtest: Add MMIO support
Introduce [qtest_]{read,write}[bwlq]() libqtest functions andcorresponding QTest protocol commands to replace local versions inlibi2c-omap.c.
Also convert m48t59-test's cmos_{read,write}_mmio() to {read,write}b().
Signed-off-by: Andreas Färber <afaerber@suse.de>...
qtest: Use strtoull() for uint64_t
On 32-bit hosts, unsigned long may be uint32_t and uint64_t may beunsigned long long. Account for this by always using strtoull().We were already using strtoll() for int64_t.
accel: change {xen, kvm, tcg, qtest}_allowed from int to bool
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
softmmu: move remaining include files to include/ subdirectories
softmmu: move include files to include/sysemu/
exec: move include files to include/exec/
qtest: Fix tv_usec != long
Sparc Debian 5.0.8 does not define __suseconds_t as long,but FMT_timeval expects %ld.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Richard Henderson <rth@twiddle.net>Cc: Anthony Liguori <aliguori@us.ibm.com>...
qtest: Add missing GCC_FMT_ATTR
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qtest: use qemu_gettimeofday()
On linux, qemu_timeval will always be two long ints. On windows, we use ourown struct definition. This should fix win64.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qtest: fix 32-bit build
time_t appears to be an unsigned long so use %ld.
Reported-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qtest: add test framework
The idea behind qtest is pretty simple. Instead of executing a CPU via TCG orKVM, rely on an external process to send events to the device model that the CPUwould normally generate.
qtest presents itself as an accelerator. In addition, a new option is added to...
qtest: IRQ interception infrastructure
Since /i440fx/piix3 is being removed from the composition tree, theIO-APIC is placed under /i440fx. This is wrong and should be changedas soon as the /i440fx/piix3 path is put back.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
qtest: add clock management
This patch combines qtest and -icount together to turn the vm_clockinto a source that can be fully managed by the client. To this end newcommands clock_step and clock_set are added. Hooking them with libqtestis left as an exercise to the reader....