Statistics
| Branch: | Revision:

root / tests @ 0d09e41a

# Date Author Comment
0d09e41a 04/08/2013 07:13 pm Paolo Bonzini

hw: move headers to include/

Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches....

2bd01ac1 04/05/2013 03:38 pm Stefan Berger

test-visitor-serialization: Fix some memory leaks

This patch fixes some of the memory leaks in test-visitor-serialization but not all of them.

Signed-off-by: Stefan Berger <>
Signed-off-by: Stefan Hajnoczi <>

ecdd5333 03/28/2013 12:52 pm Kevin Wolf

qcow2: Gather clusters in a looping loop

Instead of just checking once in exactly this order if there are
dependendies, non-COW clusters and new allocation, this starts looping
around these. This way we can, for example, gather non-COW clusters after
new allocations as long as the host cluster offsets stay contiguous....

d9d74f41 03/28/2013 12:52 pm Kevin Wolf

qcow2: Improve check for overlapping allocations

The old code detected an overlapping allocation even when the
allocations didn't actually overlap, but were only adjacent.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...

6f749281 03/28/2013 12:52 pm Kevin Wolf

qemu-iotests: More concurrent allocation scenarios

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

c349ca4b 03/28/2013 12:52 pm Kevin Wolf

qcow2: Fix "total clusters" number in bdrv_check

This should be based on the virtual disk size, not on the size of the
image.

Interesting observation: With some VM state stored in the image file,
percentages higher than 100% are possible, even though snapshots...

f7c61bf8 03/23/2013 04:23 pm Blue Swirl

Merge branch 'for-upstream' of git://github.com/mwalle/qemu

  • 'for-upstream' of git://github.com/mwalle/qemu:
    configure: rename OpenGL feature to GLX
    configure: proper OpenGL/GLX probe
    target-lm32: use HELPER macro
    target-lm32: flush tlb after clearing env...
f95e26dd 03/19/2013 12:48 pm Stefan Hajnoczi

qemu-iotests: add 052 BDRV_O_SNAPSHOT test

Check that writes to an image opened with BDRV_O_SNAPSHOT do not modify
the underlying image file.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

6036e9d8 03/18/2013 08:40 pm Michael Walle

tests: tcg: lm32: add more test cases

Esp. for testing zero/sign extend in compare operations.

Signed-off-by: Michael Walle <>

8b758d05 03/17/2013 02:06 am Petar Jovanovic

target-mips: fix rndrashift_short_acc and code for EXTR_ instructions

Fix for rndrashift_short_acc to set correct value to higher 64 bits.
This change also corrects conditions when bit 23 of the DSPControl register
is set.

The existing test files have been extended with several examples that...

c4d9d196 03/15/2013 05:07 pm Stefan Hajnoczi

threadpool: drop global thread pool

Now that each AioContext has a ThreadPool and the main loop AioContext
can be fetched with bdrv_get_aio_context(), we can eliminate the concept
of a global thread pool from thread-pool.c.

The submit functions must take a ThreadPool* argument....

acbf30ec 03/15/2013 05:07 pm Paolo Bonzini

qemu-iotests: add tests for rebasing zero clusters

If zero clusters are erroneously treated as unallocated, "qemu-img rebase"
will copy the backing file's contents onto the cluster.

The bug existed also in image streaming, but since the root cause was in...

804dd417 03/15/2013 05:07 pm Stefan Hajnoczi

qemu-iotests: use -nographic in test case 007

A comment explains that -nographic hangs test case 007. This is no
longer the case so add -nographic. This makes the test suite faster and
more pleasant to run since no windows pop up.

I am not sure exactly when -nographic starting working for this case but...

eeb29fb9 03/08/2013 11:16 am Cole Robinson

rtc-test: Fix test failures with recent glib

As of glib 2.35.4, glib changed its logic for ordering test cases:

https://bugzilla.gnome.org/show_bug.cgi?id=694487

This was causing failures in rtc-test. Group the reordered test
cases into their own suite, which maintains the original ordering....

20c334a7 03/04/2013 07:15 pm Petar Jovanovic

target-mips: fix DSP overflow macro and affected routines

The previous implementation incorrectly used same macro to detect overflow
for addition and subtraction. This patch makes distinction between these
two, and creates separate macros. The affected routines are changed...

864a556e 02/26/2013 03:44 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  1. By Paolo Bonzini (7) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony: (22 commits)
      pc: add compatibility machine types for 1.4
      blockdev: enable discard by default
      qemu-nbd: add --discard option...
b1c07f06 02/26/2013 03:44 pm Anthony Liguori

Merge remote-tracking branch 'luiz/queue/qmp' into staging

  1. By Markus Armbruster
  2. Via Luiz Capitulino
    • luiz/queue/qmp:
      check-qjson: More thorough testing of UTF-8 in strings
a345481b 02/23/2013 11:20 pm Petar Jovanovic

target-mips: fix for sign-issue in MULQ_W helper

Correct sign-propagation before multiplication in MULQ_W helper.
The change also fixes previously incorrect expected values in the
tests for MULQ_RS.W and MULQ_S.W.

Signed-off-by: Petar Jovanovic <>...

9c19eb1e 02/23/2013 11:20 pm Petar Jovanovic

target-mips: fix for incorrect multiplication with MULQ_S.PH

The change corrects sign-related issue with MULQ_S.PH. It also includes
extension to the already existing test which will trigger the issue.

Signed-off-by: Petar Jovanovic <>
Signed-off-by: Aurelien Jarno <>

f708e736 02/23/2013 07:21 pm Blue Swirl

Merge branch 'eflags3' of git://github.com/rth7680/qemu

  • 'eflags3' of git://github.com/rth7680/qemu: (61 commits)
    target-i386: Use movcond to implement shiftd.
    target-i386: Discard CC_OP computation in set_cc_op also
    target-i386: Use movcond to implement rotate flags....
e930d201 02/22/2013 10:21 pm Miroslav Rezanina

qemu-iotests: Add qemu-img compare test

Simple test for qemu-img compare to check it's working correctly.

Signed-off-by: Miroslav Rezanina <>
Reviewed-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

4dc9f9d6 02/22/2013 10:21 pm Kevin Wolf

qemu-iotests: Test qcow2 image creation options

Just create lots of images and try out each of the creation options that
qcow2 provides (except backing_file/fmt for now)

I'm not totally happy with the behaviour of qemu-img in each of the
cases, but let's be explicit and update the test when we do change...

02700315 02/22/2013 10:21 pm Paolo Bonzini

coroutine: trim down nesting level in perf_nesting test

20000 nested coroutines require 20 GB of virtual address space.
Only nest 1000 of them so that the test (only enabled with
"-m perf" on the command line) runs on 32-bit machines too.

Cc: ...

e6439d78 02/22/2013 10:21 pm Stefan Hajnoczi

qemu-img: add compressed clusters to BlockFragInfo

Show how many clusters are compressed. This can be used to monitor how
many compressed clusters remain and whether to recompress the image.

Suggested-by: Cole Robinson <>
Signed-off-by: Stefan Hajnoczi <>

c6bb9ad1 02/22/2013 10:21 pm Federico Simoncelli

qemu-img: find the image end offset during check

This patch adds the support for reporting the image end offset (in
bytes). This is particularly useful after a conversion (or a rebase)
where the destination is a block device in order to find the first
unused byte at the end of the image....

3960c41f 02/21/2013 08:17 pm Markus Armbruster

check-qjson: More thorough testing of UTF-8 in strings

Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and
stress test at
http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt

Unfortunately, both JSON parser and formatter misbehave right now....

259dc0c1 02/21/2013 05:38 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  1. By Alin Tomescu (1) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      .gitignore: Ignore optionrom/*.asm
      ppc: fix bamboo >256MB RAM initialization in hw/ppc4xx_devs.c
      Add some missing qtest binaries to .gitignore...
499a6165 02/21/2013 11:33 am David Gibson

Add some missing qtest binaries to .gitignore

These binaries are generated during make check on at least some
configurations, so att them to .gitignore.

Signed-off-by: David Gibson <>
Signed-off-by: Stefan Hajnoczi <>

1b99f83e 02/19/2013 01:03 am Paolo Bonzini

test-i386: make it compile with a recent gcc

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Richard Henderson <>

40475087 02/19/2013 01:03 am Paolo Bonzini

test-i386: QEMU_PACKED is not defined here

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Richard Henderson <>

f9b3ed40 02/18/2013 06:20 pm Paolo Bonzini

rtc-test: always set register B in its entirety

Eliminate dependencies between one test and the others.

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Anthony Liguori <>

cc2832a5 02/18/2013 06:20 pm Paolo Bonzini

rtc-test: add testcases for alarms in 12hour mode

Trying (unsuccessfully) to break the device model as mentioned in
https://bugs.launchpad.net/qemu/+bug/1090558.

At least if someone tries to fix that, it won't break what works...

Signed-off-by: Paolo Bonzini <>...

872536bf 02/18/2013 04:39 pm Andreas Färber

qtest: Add MMIO support

Introduce [qtest_]{read,write}[bwlq]() libqtest functions and
corresponding QTest protocol commands to replace local versions in
libi2c-omap.c.

Also convert m48t59-test's cmos_{read,write}_mmio() to {read,write}b().

Signed-off-by: Andreas Färber <>...

6acf801d 02/18/2013 04:39 pm Andreas Färber

libqtest: Convert macros to functions and clean up documentation

libqtest.h provides a number of shortcut macros to avoid tests feeding
it the QTestState they operate on. Most of these can easily be turned
into static inline functions, so let's do that for clarity....

b73cf9e9 02/18/2013 04:39 pm Andreas Färber

libqtest: Introduce qtest_qmpv() and convert remaining macro

In order to convert qmp() macro to an inline function, expose a
qtest_qmpv() function, reused by qtest_qmp().

We can't apply GCC_FMT_ATTR() since fdc-test is using zero-length format
strings, which would result in warnings treated as errors....

f4c0f986 02/17/2013 04:28 pm Richard Henderson

tests: Add unit tests for mulu64 and muls64

Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

d0bce760 02/11/2013 09:22 pm Andreas Färber

libi2c-omap: Fix endianness dependency

The libqos driver for omap_i2c currently does not work on Big Endian.
Introduce helpers for reading from and writing to 16-bit armel registers.

This fixes tmp105-test failures on ppc.

To prepare for a QTest-level endianness solution, poison mem{read,write}...

84eac317 02/11/2013 09:22 pm Andreas Färber

libqtest: Fix documentation copy&paste errors

The [qtest_]in[bwl]() functions/macros don't have a value argument.

Signed-off-by: Andreas Färber <>
Message-id:
Signed-off-by: Anthony Liguori <>

01845438 02/07/2013 05:22 pm Peter Maydell

tests/test-string-input-visitor: Handle errors provoked by fuzz test

It's OK and expected for visitors to return errors when presented with
the fuzz test's random data. Since the fuzzer doesn't care about
errors, we pass in NULL rather than an Error**. This fixes a bug in...

e3f9fe2d 02/04/2013 10:38 pm Eduardo Habkost

cutils: unsigned int parsing functions

There are lots of duplicate parsing code using strto*() in QEMU, and
most of that code is broken in one way or another. Even the visitors
code have duplicate integer parsing code1. This introduces functions
to help parsing unsigned int values: parse_uint() and parse_uint_full()....

baeddded 02/01/2013 10:45 pm Anthony Liguori

sparc: disable qtest in make check

We've seen this repeatedly in buildbot but I can now reliably
reproduce it myself too. With a few hundred runs of 'make check',
qemu-system-sparc will hang consuming 100% CPU. I've attached GDB
to the hung process and unfortunately, I can't get anything useful...

77a5f4f2 02/01/2013 10:40 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/block' into staging

  1. By Kevin Wolf (7) and others
  2. Via Stefan Hajnoczi
    • stefanha/block:
      block/raw-posix: Build fix for O_ASYNC
      vmdk: Allow space in file name
      parallels: Fix bdrv_open() error handling
      dmg: Use g_free instead of free...
6bf00766 02/01/2013 06:43 pm Eduardo Habkost

libqtest: Wait for the right child PID after killing QEMU

When running "make check" with gcov enabled, we get the following
message:

hw/tmp105.gcda:cannot open data file, assuming not executed

The problem happens because:

  • tmp105-test exits before QEMU exits, because waitpid() at...
b93d6d24 02/01/2013 03:58 pm Kevin Wolf

qemu-iotests: Add regression test for b7ab0fea

It turned out that the change in b7ab0fea was actually a real qcow2
corruption fix. This is a reproducer for the bug.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

a04eca10 02/01/2013 03:58 pm Vishvananda Ishaya

block: Adds mirroring tests for resized images

This test verifies two mirroring issues are fixed with resized images:

  • sync='top' creates an image that is the proper size
  • sync='full' doesn't cause an assertion failure and crash qemu
    Reviewed-by: Paolo Bonzini <>...
21e3cd29 02/01/2013 09:32 am Orit Wasserman

Add XBZRLE testing

Signed-off-by: Orit Wasserman <>
Reviewed-by: Paolo Bonzini <>

Signed-off-by: Juan Quintela <>
Reviewed-by: Eric Blake <>

e62a214c 02/01/2013 12:42 am Petar Jovanovic

target-mips: fix incorrect test for MTHLIP

The pos field in the DSPControl register is not correctly initialized.
Per documentation, the result of MTHLIP is unpredictable if the value of the
pos field before the execution is greater than 32.

Signed-off-by: Petar Jovanovic <>...

a05ddd92 01/30/2013 12:18 pm Andreas Färber

tests: Fix {rtc, m48t59}-test build on illumos

Struct tm does not have tm_gmtoff field on illumos.
Fix the build by not zero-initializing these fields on Solaris.

Cc:
Signed-off-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

ec9466ff 01/28/2013 10:48 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/qom-cpu' into staging

  • afaerber/qom-cpu: (37 commits)
    kvm: Pass CPUState to kvm_on_sigbus_vcpu()
    cpu: Unconditionalize CPUState fields
    target-m68k: Use type_register() instead of type_register_static()
    target-unicore32: Use type_register() instead of type_register_static()...
503cb22e 01/28/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  1. By Paolo Bonzini (14) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony: (24 commits)
      ide: Add fall through annotations
      block: Create proper size file for disk mirror
      ahci: Add migration support...
247c9de1 01/27/2013 03:34 pm Eduardo Habkost

target-i386: Topology & APIC ID utility functions

This introduces utility functions for the APIC ID calculation, based on:
Intel® 64 Architecture Processor Topology Enumeration
http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/...

c5cd02ba 01/26/2013 03:52 pm Andreas Färber

tests: Add gcov support for x86_64 qtest

Since x86_64 is a superset of i386 and reuses all its test cases, adopt
all the i386 gcov source files as well, substituting their paths
appropriately.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

cba040c2 01/26/2013 03:52 pm Andreas Färber

tests: Add gcov support for sparc64 qtest

m48t59-test is individually being executed for sparc and sparc64, so add
the gcov source file for sparc64 as well.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

6a694495 01/26/2013 03:52 pm Andreas Färber

tests: Fix gcov typo for tmp105-test

Commit 6e9989034b176a8e4cfdccd85892abfa73977ba7 introduced a new qtest
test case but misspelled gcov, leading to no coverage analysis. Fix it.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

3f0f31a0 01/26/2013 03:32 pm Blue Swirl

tests: add fuzzing to visitor tests

Perform input tests on random data.

Improvement to code coverage for qapi/string-input-visitor.c
is about 3 percentage points.

Signed-off-by: Blue Swirl <>

5f7a74a1 01/26/2013 03:10 pm Paolo Bonzini

tests: adjust gcov variables for directory movement

I had missed the introduction of the gcov-files-* variables.

Cc: Blue Swirl <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

1b095244 01/25/2013 07:18 pm Paolo Bonzini

hbitmap: add assertion on hbitmap_iter_init

hbitmap_iter_init causes an out-of-bounds access when the "first"
argument is or greater than or equal to the size of the bitmap.
Forbid this with an assertion, and remove the failing testcase.

Reported-by: Kevin Wolf <>...

08e4ed6c 01/25/2013 07:18 pm Paolo Bonzini

mirror: add buf-size argument to drive-mirror

This makes sense when the next commit starts using the extra buffer space
to perform many I/O operations asynchronously.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

b812f671 01/25/2013 07:18 pm Paolo Bonzini

mirror: perform COW if the cluster size is bigger than the granularity

When mirroring runs, the backing files for the target may not yet be
ready. However, this means that a copy-on-write operation on the target
would fill the missing sectors with zeros. Copy-on-write only happens...

e7c033c3 01/25/2013 07:18 pm Paolo Bonzini

add hierarchical bitmap data type and test cases

HBitmaps provides an array of bits. The bits are stored as usual in an
array of unsigned longs, but HBitmap is also optimized to provide fast
iteration over set bits; going from one bit to the next is O(logB n)...

2ea9b58f 01/17/2013 11:51 am Kevin Wolf

aio: Fix return value of aio_poll()

aio_poll() must return true if any work is still pending, even if it
didn't make progress, so that bdrv_drain_all() doesn't stop waiting too
early. The possibility of stopping early occasionally lead to a failed
assertion in bdrv_drain_all(), when some in-flight request was missed...

2bf7b457 01/16/2013 08:14 pm Andreas Färber

libqtest: Prepare I2C libqos

This adds a simple I2C API and a driver implementation for omap_i2c.

Signed-off-by: Andreas Färber <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Anthony Liguori <>

6e998903 01/16/2013 08:14 pm Andreas Färber

tests: Add tmp105 qtest test case

Exercise all four commands of the TMP105, testing for an issue in the
I2C TX path.

The test case uses the N800's OMAP I2C and is the first for ARM.

Signed-off-by: Andreas Färber <>
Signed-off-by: Anthony Liguori <>

59cacde8 01/12/2013 07:42 pm Paolo Bonzini

build: move QAPI definitions for QEMU out of qapi-obj-y

There is no reason why for example qemu-ga should include all the
definitions for the QEMU monitor. However, there are a few
that are needed (qapi_free_SocketAddress, qapi_free_InetSocketAddress,
ErrorClass_lookup). These should be moved to a separate "core"...

576d5506 01/12/2013 07:42 pm Paolo Bonzini

build: move base QAPI files to libqemuutil.a

Signed-off-by: Paolo Bonzini <>

ff667e2e 01/12/2013 07:42 pm Paolo Bonzini

build: fold trace-obj-y into libqemuutil.a

Signed-off-by: Paolo Bonzini <>

e4b42e6e 01/12/2013 07:42 pm Paolo Bonzini

build: rename oslib-obj-y to util-obj-y

This prepares the creation of libqemuutil.a in the next patch.

Signed-off-by: Paolo Bonzini <>

8a090705 01/12/2013 07:42 pm Paolo Bonzini

build: move util-obj-y to libqemuutil.a

Use a static library to eliminate repetition in the linking rules.

Signed-off-by: Paolo Bonzini <>

f157ebba 01/12/2013 07:42 pm Paolo Bonzini

build: move files away from tools-obj-y, common-obj-y, user-obj-y

Split them between libqemuutil.a and, for those used by qemu-img/io/nbd,
block-obj-y.

Static libraries ensure that binaries such as qemu-ga do not include
unused modules.

Signed-off-by: Paolo Bonzini <>

a372823a 01/12/2013 07:42 pm Paolo Bonzini

build: move qobject files to qobject/ and libqemuutil.a

Signed-off-by: Paolo Bonzini <>

5708fc66 01/12/2013 06:19 pm Paolo Bonzini

stubs: fully replace qemu-tool.c and qemu-user.c

Signed-off-by: Paolo Bonzini <>

4e45deed 01/10/2013 04:23 pm Gerd Hoffmann

rtc-test: skip year-2038 overflow check in case time_t is 32bit only

Signed-off-by: Gerd Hoffmann <>

067f0691 01/10/2013 04:23 pm Gerd Hoffmann

m48t59-test: don't touch watchdog

Signed-off-by: Gerd Hoffmann <>

da1a4cef 01/08/2013 12:58 pm Petar Jovanovic

target-mips: Fix helper and tests for dot/cross-dot product instructions

Helper function for dpa_w_ph, dpax_w_ph, dps_w_ph and dpsx_w_ph incorrectly
defines halfword vector elements as unsigned values. This results in wrong
output which is not triggered in the tests as they also follow this logic....

1d728c39 01/06/2013 10:15 am Blue Swirl

tests: add gcov support

Add support for compiling for GCOV test coverage, enabled
with '--enable-gcov' during configure.

Test coverage will be reported after each test.

Signed-off-by: Blue Swirl <>

8962e44f 01/02/2013 04:58 pm Stefan Hajnoczi

test-iov: add iov_discard_front/back() testcases

Signed-off-by: Stefan Hajnoczi <>

b8abbbe8 01/01/2013 12:11 pm Petar Jovanovic

target-mips: Fix for helpers for EXTR_* instructions

The change removes some unnecessary and incorrect code for EXTR_S.H.
Further, it corrects the mask for shift value in the EXTR_ instructions. It also
extends the existing tests so they trigger the issues corrected with the change....

eec8972a 01/01/2013 12:10 pm Petar Jovanovic

target-mips: Fix incorrect reads and writes to DSPControl register

Upper 4 bits of ccond (bits 31..28 ) of DSPControl register are not used in
the MIPS32 architecture. They are used in the MIPS64 architecture. For MIPS32
these bits must be written as zero, and return zero on read....

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

cb9c377f 12/19/2012 09:31 am Paolo Bonzini

janitor: add guards to headers

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

79ee7df8 12/19/2012 09:31 am Paolo Bonzini

qapi: move inclusions of qemu-common.h from headers to .c files

Signed-off-by: Paolo Bonzini <>

91d4093d 12/12/2012 01:33 pm Kevin Wolf

qemu-iotests: Test concurrent cluster allocations

This adds some first tests for qcow2's dependency handling when two
parallel write requests access the same cluster.

Signed-off-by: Kevin Wolf <>

23e956bf 12/11/2012 12:05 pm Corey Bryant

tests: Add tests for fdsets

Signed-off-by: Corey Bryant <>
Reviewed-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

9fe3781f 12/11/2012 12:04 pm Stefan Hajnoczi

tests: use aio_poll() instead of aio_flush() in test-aio.c

There has been confusion between various aio wait and flush functions.
It's time to get rid of qemu_aio_flush() but in the aio test cases we
really do want this low-level functionality.

Therefore declare a local wait_for_aio() helper for the test cases....

8a805c22 12/11/2012 12:04 pm Stefan Hajnoczi

tests: avoid qemu_aio_flush() in test-thread-pool.c

We need to eliminate calls to qemu_aio_flush() since the function is
being removed. Most callers will use bdrv_drain_all() instead but
test-thread-pool.c is lower level.

Since the test uses the global AioContext we can loop on qemu_aio_wait()...

7c12fd9b 12/10/2012 04:34 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path
    qemu-options: Fix space at EOL
    Fix spelling in comments and documentation
    Clean up pci_drive_hot_add()'s use of BlockInterfaceType...
efdfac94 12/08/2012 08:48 pm Max Filippov

target-xtensa: add SR accessibility unit tests

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

5dacd229 12/08/2012 08:48 pm Max Filippov

target-xtensa: add s32c1i unit tests

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

993d46ce 12/07/2012 01:34 pm Stefan Weil

Fix spelling in comments and documentation

These spelling bugs were found by codespell:

supressing -> suppressing
transfered -> transferred

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

19e6c50d 12/06/2012 09:12 am Petar Jovanovic

target-mips: Fix incorrect shift for SHILO and SHILOV

helper_shilo has not been shifting an accumulator value correctly for negative
values in 'shift' field. Minor optimization for shift=0 case.
This change also adds tests that will trigger issue and check for regressions....

34f5606e 12/06/2012 09:10 am Petar Jovanovic

target-mips: Fix incorrect code and test for INSV

Content of register rs should be shifted for pos before applying a mask.
This change contains both fix for the instruction and to the existing test.

Signed-off-by: Petar Jovanovic <>
Reviewed-by: Eric Johnson <>...

02c6ccc6 11/27/2012 07:04 pm Alex Horn

rtc: Only call rtc_set_cmos when Register B SET flag is disabled.

This bug occurs when the SET flag of Register B is enabled. When an RTC
data register (i.e. any of the ten time/calender CMOS bytes) is set, the
data is (as expected) correctly stored in the cmos_data array. However,...

d60478c5 11/27/2012 04:50 pm Paolo Bonzini

tests: make threadpool cancellation test looser

The cancellation test is failing on the buildbots. While the failure
merits a little more investigation to understand what is going on,
the logs show that the failure is not impacting the coverage
provided by the test. Hence, loosen a bit the assertions in a...

b2ea25d7 11/26/2012 05:37 pm Paolo Bonzini

tests: add AioContext unit tests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

74c856e9 11/26/2012 05:37 pm Paolo Bonzini

tests: add thread pool unit tests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

2954525b 11/19/2012 05:27 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/build-urgent' into staging

  • bonzini/build-urgent:
    Makefile: Add missing dependency (fix parallel builds)
    tests: link in stubs
    libcacard: link in stubs
    libcacard: make unnesting rules available to Makefile.objs...
2b84c2be 11/19/2012 11:48 am Paolo Bonzini

tests: link in stubs

Signed-off-by: Paolo Bonzini <>

6f442fe8 11/14/2012 07:19 pm Hervé Poussineau

fdc-tests: add tests for VERIFY command

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Kevin Wolf <>