Statistics
| Branch: | Revision:

root @ 1246b259

# Date Author Comment
1246b259 12/02/2013 07:03 pm Stefan Weil

misc: Replace 'struct QEMUTimer' by 'QEMUTimer'

Most code already used QEMUTimer without the redundant 'struct' keyword.

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

b2e2395f 12/02/2013 07:02 pm Fam Zheng

.gitignore: Ignore config.status

Signed-off-by: Fam Zheng <>
Reviewed-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

867d898c 12/02/2013 07:02 pm Stefan Weil

acpi-build: Fix compiler warning (missing gnu_printf format attribute)

gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

CC    m68k-softmmu/hw/m68k/mcf5206.o
hw/i386/acpi-build.c: In function ‘build_append_nameseg’:
hw/i386/acpi-build.c:294:5: error:...
47908a0f 12/02/2013 07:02 pm Stefan Weil

qobject: Fix compiler warning (missing gnu_printf format attribute)

gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

CC    qobject/qerror.o
qobject/qerror.c: In function ‘qerror_from_info’:
qobject/qerror.c:53:5: error:
function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]...
ac86048b 12/02/2013 07:02 pm Stefan Weil

trace: Remove trace.h from console.h (less dependencies)

This reduces the dependencies on trace.h.
Only two source files which need console.h also need trace.h.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

12269616 12/02/2013 07:02 pm Stefan Weil

trace: Remove trace.h from hw/usb/hcd-ehci.h (less dependencies)

This reduces the dependencies on trace.h.
Only one source file which needs hcd-ehci.h also needs trace.h.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

5d28b0e9 12/02/2013 07:02 pm Stefan Weil

console: Replace conditional debug messages by trace methods

Signed-off-by: Stefan Weil <>
Reviewed-by: Gerd Hoffmann <>
Signed-off-by: Michael Tokarev <>

ef0dd982 12/02/2013 07:02 pm Stefan Weil

gtk: Replace conditional debug messages by trace methods

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

7dc65c02 11/28/2013 12:02 am Anthony Liguori

Open 2.0 development tree

Signed-off-by: Anthony Liguori <>

0e7b9f06 11/27/2013 09:30 pm Anthony Liguori

Update version for 1.7.0 release

Signed-off-by: Anthony Liguori <>

117e0c82 11/27/2013 05:53 pm Max Reitz

block/drive-mirror: Reuse backing HD for sync=none

For "none" sync mode in "absolute-paths" mode, the current image should
be used as the backing file for the newly created image.

The current behavior is:
a) If the image to be mirrored has a backing file, use that (which is...

171d6431 11/27/2013 05:53 pm Max Reitz

qemu-iotests: Fix test 041

Performing multiple drive-mirror blockjobs on the same qemu instance
results in the image file used for the block device being replaced by
the newly mirrored file, which is not what we want.

Fix this by performing one dedicated test per sync mode....

7457fe95 11/26/2013 06:37 am Anthony Liguori

Update version for v1.7.0-rc2 release

032ac6f8 11/26/2013 06:36 am Gerd Hoffmann

curses: fixup SIGWINCH handler mess

Don't run code in the signal handler, only set a flag.
Use sigaction(2) to avoid non-portable signal(2) semantics.
Make #ifdefs less messy.

Signed-off-by: Gerd Hoffmann <>
Reviewed-by: Laszlo Ersek <>...

16f4e8fa 11/26/2013 06:35 am Stefan Weil

qga: Fix two format strings for MinGW

Both code locations cause a compiler warning. Using "%s" instead of "%lu"
would result in a program crash if the wrong code were executed.

Signed-off-by: Stefan Weil <>
Message-id: ...

84dc96e1 11/26/2013 06:35 am Alexander Graf

PPC: BookE: Make FIT/WDT timers at best millisecond grained

The default granularity for the FIT timer on 440 is on every 0x1000th
transition of TB from 0 to 1. Translated that means 48828 times a second.

Since interrupts are quite expensive for 440 and we don't really care...

455df3f3 11/26/2013 06:35 am Alexander Graf

PPC: Make BookE FIT/WDT timers more lazy

Today we fire FIT and WDT timer events every time the respective bit
position in TB flips from 0 -> 1.

However, there is no need to do this if the end result would be that
we're changing a TSR bit that is set to 1 to 1 again. No guest visible...

134d42d6 11/26/2013 06:35 am Michael S. Tsirkin

acpi-build: fix support for glib < 2.22

glib < 2.22 does not have g_array_get_element_size,
limit it's use (to check all elements are 1 byte
in size) to newer glib.

This fixes build on RHEL 5.3.

Reported-by: Richard Henderson <>
Reported-by: Erik Rull <>...

c0caec17 11/25/2013 07:49 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pc very last minute fixes for 1.7

This has a fix for a crasher bug with pci bridges,
boot failure fix for s390 on 32 bit hosts,
and fixes build for hosts with old glib.

There's also a fix for --iasl configure flag - it can be used...

d916adaa 11/25/2013 07:41 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/tags/for-anthony' into staging

Here are a bunch of 1.7-tagged patches that I was afraid
were getting forgotten or that did not have a clear maintainer responsible
for making a pull request.

  1. gpg: Signature made Thu 21 Nov 2013 08:40:59 AM PST using RSA key ID 9B4D86F2...
833637d4 11/25/2013 07:37 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-2013-11-22' into staging

  1. By Tomoki Sekiyama
  2. Via Michael Roth
    • mdroth/qga-pull-2013-11-22:
      qemu-ga: vss-win32: Install VSS provider COM+ application service

Message-id: ...

0ff1e1da 11/25/2013 07:37 pm Anthony Liguori

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

  1. By Vlad Yasevich
  2. Via Stefan Hajnoczi
    • stefanha/net:
      qdev-properties-system.c: Allow vlan or netdev for -device, not both

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

e007dbec 11/24/2013 03:43 pm Michael S. Tsirkin

configure: make --iasl option actually work

--iasl option was added to CC option parsing section by mistake,
it's not effective there and attempts to use cause
an 'unknown option' error.

Fix this up.

Tested-by: Marcel Apfelbaum <>
Signed-off-by: Michael S. Tsirkin <>

bca4bf10 11/22/2013 11:14 pm Tomoki Sekiyama

qemu-ga: vss-win32: Install VSS provider COM+ application service

Currently, qemu-ga for Windows fails to execute guset-fsfreeze-freeze when
no user is logging in to Windows, with an error message: {"error":{"class":"GenericError",
"desc":"failed to add C:\\ to snapshotset: (error: 8004230f)"}}...

30c367ed 11/22/2013 10:47 am Vlad Yasevich

qdev-properties-system.c: Allow vlan or netdev for -device, not both

It is currently possible to specify things like:
-device e1000,netdev=foo,vlan=1
With this usage, whichever argument was specified last (vlan or netdev)
overwrites what was previousely set and results in a non-working...

d607a523 11/21/2013 06:39 pm Stefan Weil

qga: Fix compiler warnings (missing format attribute, wrong format strings)

gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

CC    qga/commands.o
qga/commands.c: In function ‘slog’:
qga/commands.c:28:5: error:
function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]...
b6a06e72 11/21/2013 06:39 pm Hervé Poussineau

mips jazz: do not raise data bus exception when accessing invalid addresses

MIPS Jazz chipset doesn't seem to raise data bus exceptions on invalid accesses.
However, there is no easy way to prevent them. Creating a big memory region
for the whole address space doesn't prevent memory core to directly call...

b5fc314b 11/21/2013 06:39 pm Paolo Bonzini

target-i386: yield to another VCPU on PAUSE

After commit b1bbfe7 (aio / timers: On timer modification, qemu_notify
or aio_notify, 2013-08-21) FreeBSD guests report a huge slowdown.

The problem shows up as soon as FreeBSD turns out its periodic (~1 ms)
tick, but the timers are only the trigger for a pre-existing problem....

fbdcec5c 11/21/2013 06:39 pm Amos Kong

rng-egd: offset the point when repeatedly read from the buffer

The buffer content might be read out more than once, currently
we just repeatedly read the first data block, buffer offset is
missing.

Cc:
Signed-off-by: Amos Kong <>...

60aad298 11/21/2013 06:39 pm Amos Kong

rng-egd: remove redundant free

We didn't set default chr_name, the free is redundant.

Signed-off-by: Amos Kong <>
Signed-off-by: Paolo Bonzini <>

2140cfa5 11/21/2013 06:39 pm Peter Maydell

target-i386: Fix build by providing stub kvm_arch_get_supported_cpuid()

Fix build failures with clang when KVM is not enabled by
providing a stub version of kvm_arch_get_supported_cpuid().
We retain the compile time check that this function isn't
called when CONFIG_KVM is not set by guarding the stub with...

8d07d6c4 11/21/2013 06:39 pm Alex Williamson

vfio-pci: Fix multifunction=on

When an assigned device is initialized it copies the device config
space into the emulated config space. Unfortunately multifunction is
setup prior to the device initfn and gets clobbered. We need to
restore it just like pci-assign does....

392a4d5b 11/21/2013 06:38 pm Peter Maydell

atomic.h: Fix build with clang

clang defines ATOMIC_SEQ_CST but its implementation of the
_atomic_exchange() builtin differs from that of gcc. Move the
_clang
branch of the ifdef ladder to the top and fix its
implementation (there is no such builtin as __sync_exchange),...

7839ff59 11/21/2013 06:38 pm Paolo Bonzini

pc: get rid of builtin pvpanic for "-M pc-1.5"

This causes two slight backwards-incompatibilities between "-M pc-1.5"
and 1.5's "-M pc":

(1) a fw_cfg file is removed with this patch. This is only a problem
if migration stops the virtual machine exactly during fw_cfg enumeration....

da87dd7b 11/21/2013 06:38 pm Mark Cave-Ayland

sun4m: Add FCode ROM for TCX framebuffer

Upstream OpenBIOS now implements SBus probing in order to determine the
contents of a physical bus slot, which is required to allow OpenBIOS to
identify the framebuffer without help from the fw_cfg interface.

SBus probing works by detecting the presence of an FCode program...

45d285ab 11/21/2013 06:38 pm Peter Maydell

configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0

Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
explicitly specifying everything and not relying on any default
variables or rules. However we were accidentally relying on the...

607bb022 11/21/2013 06:11 pm Anthony Liguori

Update version for 1.7.0-rc1 release

Signed-off-by: Anthony Liguori <>

187d6232 11/21/2013 06:01 pm Alex Williamson

vfio-pci: Fix multifunction=on

When an assigned device is initialized it copies the device config
space into the emulated config space. Unfortunately multifunction is
setup prior to the device initfn and gets clobbered. We need to
restore it just like pci-assign does....

7865eec4 11/21/2013 06:01 pm Richard Henderson

target-i386: Fix addr32 prefix in gen_lea_modrm

Fix the following run-test-x86_64 testsuite failures:

-lea (%eax) = 0000000000000001
-lea (
%ebx) = 0000000000000002
-lea (%ecx) = 0000000000000004
-lea (
%edx) = 0000000000000008
-lea (%%esi) = 0000000000000010...

33effd3a 11/21/2013 06:01 pm Peter Maydell

atomic.h: Fix build with clang

clang defines ATOMIC_SEQ_CST but its implementation of the
_atomic_exchange() builtin differs from that of gcc. Move the
_clang
branch of the ifdef ladder to the top and fix its
implementation (there is no such builtin as __sync_exchange),...

76c2975a 11/21/2013 05:56 pm Paolo Bonzini

target-i386: do not override nr_cores for -cpu host

Commit 787aaf5 (target-i386: forward CPUID cache leaves when -cpu host is
used, 2013-09-02) brings bits 31..26 of CPUID leaf 04h out of sync with
the APIC IDs that QEMU reserves for each package. This number must come...

54e75558 11/21/2013 05:55 pm Hervé Poussineau

mips jazz: do not raise data bus exception when accessing invalid addresses

MIPS Jazz chipset doesn't seem to raise data bus exceptions on invalid accesses.
However, there is no easy way to prevent them. Creating a big memory region
for the whole address space doesn't prevent memory core to directly call...

81f3053b 11/21/2013 05:55 pm Paolo Bonzini

target-i386: yield to another VCPU on PAUSE

After commit b1bbfe7 (aio / timers: On timer modification, qemu_notify
or aio_notify, 2013-08-21) FreeBSD guests report a huge slowdown.

The problem shows up as soon as FreeBSD turns out its periodic (~1 ms)
tick, but the timers are only the trigger for a pre-existing problem....

5e490b6a 11/21/2013 05:55 pm Amos Kong

rng-egd: remove redundant free

We didn't set default chr_name, the free is redundant.

Signed-off-by: Amos Kong <>
Message-id:
Signed-off-by: Anthony Liguori <>

1eb1bd9e 11/21/2013 05:55 pm Amos Kong

rng-egd: offset the point when repeatedly read from the buffer

The buffer content might be read out more than once, currently
we just repeatedly read the first data block, buffer offset is
missing.

Cc:
Signed-off-by: Amos Kong <>...

d44bb860 11/21/2013 05:55 pm Amos Kong

virtio-rng: add check of period

If period is assigned to 0, limit timer will expire immediately.
It causes a qemu warning:

"main-loop: WARNING: I/O thread spun for 1000 iterations"

This limit is meaningless. This patch forbids to assign 0 to period.

Reviewed-by: Amit Shah <>...

376827d4 11/21/2013 05:55 pm Michael S. Tsirkin

s390x: fix flat file load on 32 bit systems

pc-bios/s390-zipl.rom is a flat image so it's expected that
loading it as elf will fail.
It should fall back on loading a flat file, but doesn't
on 32 bit systems, instead it fails printing:
qemu: hardware error: could not load bootloader 's390-zipl.rom'...

542da88f 11/21/2013 05:54 pm Michael S. Tsirkin

acpi-build: fix build on glib < 2.22

g_string_vprintf was only introduced in 2.24 so switch to vsnprintf
instead. A bit uglier but name size is fixed at 4 bytes here so it's
easy.

Reported-by: Richard Henderson <>
Signed-off-by: Michael S. Tsirkin <>...

b15654c2 11/21/2013 05:54 pm Michael S. Tsirkin

acpi-build: fix build on glib < 2.14

g_array_get_element_size was only added in glib 2.14.
Fortunately we don't use it for any arrays where
element size is > 1, so just add an assert.

Reported-by: Richard Henderson <>
Signed-off-by: Michael S. Tsirkin <>...

0a3c7385 11/21/2013 05:09 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  1. By Jan Kiszka (1) and others
  2. Via Gleb Natapov
    • qemu-kvm/uq/master:
      kvm: Fix uninitialized cpuid_data
      pci-assign: Remove dead code for direct I/O region access from userspace
      KVM: x86: fix typo in KVM_GET_XCRS...
ffb62da7 11/21/2013 05:08 pm Anthony Liguori

Merge remote-tracking branch 'jliu/or32' into staging

  1. By Sebastian Macke
  2. Via Jia Liu
    • jliu/or32:
      target-openrisc: Correct carry flag check of l.addc and l.addic test cases
      target-openrisc: Correct memory bounds checking for the tlb buffers
      openrisc-timer: Reduce overhead, Separate clock update functions...
425ff510 11/21/2013 05:08 pm Anthony Liguori

Merge remote-tracking branch 'quintela/migration.next' into staging

  1. By Wangting (Kathy)
  2. Via Juan Quintela
    • quintela/migration.next:
      The calculation of bytes_xfer in qemu_put_buffer() is wrong

Message-id: ...

fd8f5e37 11/21/2013 04:28 pm Michael S. Tsirkin

acpi-build: fix build on glib < 2.14

g_array_get_element_size was only added in glib 2.14,
there's no way to find element size in with an older glib.

Fortunately we only use a single table (linker) where element size > 1.
Switch element size to 1 everywhere, then we can just look at len field...

90d131fb 11/21/2013 04:28 pm Michael S. Tsirkin

Revert "e1000/rtl8139: update HMP NIC when every bit is written"

This reverts commit cd5be5829c1ce87aa6b3a7806524fac07ac9a757.
Digging into hardware specs shows this does not
actually make QEMU behave more like hardware:

There are valid arguments backed by the spec to indicate why the version...

8b9c3b89 11/21/2013 04:28 pm Michael S. Tsirkin

acpi-build: fix build on glib < 2.22

g_string_vprintf was only introduced in 2.24 so switch to vsnprintf
instead. A bit uglier but name size is fixed at 4 bytes here so it's
easy.

Reviewed-by: Paolo Bonzini <>
Reported-by: Richard Henderson <>...

5c397242 11/21/2013 04:25 pm Bandan Das

pci: unregister vmstate_pcibus on unplug

PCIBus registers a vmstate during init. Unregister it upon
removal/unplug.

Signed-off-by: Bandan Das <>
Cc:
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael S. Tsirkin <>

decbc880 11/21/2013 04:25 pm Michael S. Tsirkin

s390x: fix flat file load on 32 bit systems

pc-bios/s390-zipl.rom is a flat image so it's expected that
loading it as elf will fail.
It should fall back on loading a flat file, but doesn't
on 32 bit systems, instead it fails printing:
qemu: hardware error: could not load bootloader 's390-zipl.rom'...

14a650ec 11/20/2013 03:47 pm Sebastian Macke

target-openrisc: Correct carry flag check of l.addc and l.addic test cases

The test cases did not correctly test for the carry flag.

Signed-off-by: Sebastian Macke <>
Reviewed-by: Jia Liu <>
Signed-off-by: Jia Liu <>

93147a18 11/20/2013 03:47 pm Sebastian Macke

target-openrisc: Correct memory bounds checking for the tlb buffers

The mtspr and mfspr routines didn't check for the correct memory boundaries.
This fixes a segmentation fault while booting Linux.

Signed-off-by: Sebastian Macke <>
Reviewed-by: Jia Liu <>...

d5155217 11/20/2013 03:46 pm Sebastian Macke

openrisc-timer: Reduce overhead, Separate clock update functions

The clock value is only evaluated when really necessary reducing
the overhead of the timer handling.

This also solves a problem in the way the Linux kernel
handles the timer and the expected accuracy....

ae52bd96 11/20/2013 03:45 pm Sebastian Macke

target-openrisc: Correct wrong epcr register in interrupt handler

This patch corrects several misbehaviors during an interrupt process.
Most of the time the pc is already correct and therefore no special treatment
of the exceptions is necessary.

Tested by checking crashing programs which otherwise work in or1ksim....

04359e6b 11/20/2013 03:44 pm Sebastian Macke

target-openrisc: Remove executable flag for every page

Pages should be flagged executable only if the tlb executable flag is
set or the mmu is off.

Signed-off-by: Sebastian Macke <>
Reviewed-by: Jia Liu <>
Signed-off-by: Jia Liu <>

da1d7759 11/20/2013 03:43 pm Sebastian Macke

target-openrisc: Remove unnecessary code generated by jump instructions

The sr_f variable is only used for the l.bf and l.bnf instructions.
For clarity the code is also rewritten using a switch statement instead
of if chaining.

Signed-off-by: Sebastian Macke <>...

352367e8 11/20/2013 03:40 pm Sebastian Macke

target-openrisc: Speed up move instruction

The OpenRISC architecture does not have its own move register
instruction. Instead it uses either "l.addi rd, r0, x" or
"l.ori rd, rs, 0" or "l.or rd, rx, r0"

The l.ori instruction is automatically optimized but not the l.addi instruction....

8e86729a 11/20/2013 01:16 pm Wangting (Kathy)

The calculation of bytes_xfer in qemu_put_buffer() is wrong

In qemu_put_buffer(), bytes_xfer += size is wrong, it will be more
than expected, and should be bytes_xfer += l.

Signed-off-by: zhangmin <>
Signed-off-by: Juan Quintela <>

394cfa39 11/19/2013 11:03 pm Anthony Liguori

Merge remote-tracking branch 'quintela/migration.next' into staging

  1. By Peter Lieven
  2. Via Juan Quintela
    • quintela/migration.next:
      migration: drop MADVISE_DONT_NEED for incoming zero pages

Message-id: ...

4ed34791 11/19/2013 11:00 pm Anthony Liguori

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

  1. By Andreas Färber
  2. Via Stefan Hajnoczi
    • stefanha/block:
      qtest: Use -display none by default
1c46e594 11/19/2013 11:00 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging

QOM infrastructure fixes for 1.7

  • QOM memory leak fix
  1. gpg: Signature made Tue 19 Nov 2013 01:58:58 AM PST using RSA key ID 3E7E013F
  2. gpg: Can't check signature: public key not found...
dc6dc0a9 11/19/2013 11:00 pm Anthony Liguori

Merge remote-tracking branch 'rth/tcg-ia64-17' into staging

  1. By Richard Henderson
  2. Via Richard Henderson
    • rth/tcg-ia64-17:
      tcg-ia64: Introduce tcg_opc_bswap64_i
      tcg-ia64: Introduce tcg_opc_ext_i
      tcg-ia64: Introduce tcg_opc_movi_a
      tcg-ia64: Introduce tcg_opc_mov_a...
4be6693a 11/19/2013 10:59 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pc last minute fixes for 1.8

This has a patch that drops an unused FW CFG entry.
I think it's best to include it before 1.7 to avoid
the need to maintain it in compat machine types.

There's also a doc bugfix by Amos: I'm guessing...

38dc7490 11/19/2013 10:59 pm Anthony Liguori

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

  1. By Jan Krupa (4) and others
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      hw/i386/Makefile.obj: use $(PYTHON) to run .py scripts consistently
      configure: Use -B switch only for Python versions which support it...
7af31519 11/19/2013 10:59 pm Anthony Liguori

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

Block fixes for 1.7.0

  1. gpg: Signature made Fri 15 Nov 2013 09:51:25 AM PST using RSA key ID C88F2FD6
  2. gpg: Can't check signature: public key not found
  1. By Max Reitz (3) and others
  2. Via Kevin Wolf...
88a47b9d 11/19/2013 10:58 pm Anthony Liguori

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

  1. By Amos Kong (1) and Sebastian Huber (1)
  2. Via Stefan Hajnoczi
    • stefanha/net:
      virtio-net: fix the memory leak in rxfilter_notify()
      smc91c111: Fix receive starvation

Message-id: ...

8c630d51 11/19/2013 10:57 pm Anthony Liguori

Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream-1.7' into staging

Patch queue for ppc - 2013-11-08

These are two patches that will hopefully make it into 1.7. The SLOF update
fixes -append kernel command line argument passing into the guest kernel. The...

fc1c4a5d 11/19/2013 06:23 pm Peter Lieven

migration: drop MADVISE_DONT_NEED for incoming zero pages

The madvise for zeroed out pages was introduced when every transferred
zero page was memset to zero and thus allocated. Since commit
211ea740 we check for zeroness of a target page before we memset...

2d3aa28c 11/19/2013 11:58 am Vlad Yasevich

qom: Fix memory leak in object_property_set_link()

Save the result of the call to object_get_canonical_path()
so we can free it.

Cc:
Signed-off-by: Vlad Yasevich <>
Reviewed-by: Amos Kong <>
Reviewed-by: Stefan Hajnoczi <>...

2ad645d2 11/19/2013 11:28 am Andreas Färber

qtest: Use -display none by default

This avoids each test needing to add it to suppress windows popping up.

[Commit 7ceeedd016facf8d58e14a0d1417fa7225d71072 ("blockdev-test: add
test case for drive_add duplicate IDs") and commit
43cd209803d6cffb1e1a028c9ff2fd0ff4fce954 ("qdev-monitor-test: add...

96e35046 11/19/2013 11:26 am Amos Kong

virtio-net: fix the memory leak in rxfilter_notify()

object_get_canonical_path() returns a gchar*, it should be freed by the
caller.

Signed-off-by: Amos Kong <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Vlad Yasevich <>...

420508fb 11/18/2013 01:45 pm Amos Kong

doc: fix hardcoded helper path

The install directory of qemu-bridge-helper is configurable,
but we use a fixed path in the documentation.

DEFAULT_BRIDGE_HELPER macro isn't available in texi mode,
we should always use "/path/to/" prefix for dynamic paths...

463230d8 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Introduce tcg_opc_bswap64_i

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

db008a8d 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Introduce tcg_opc_ext_i

Being able to "extend" from 64-bits (with a mov) simplifies
a few places where the conditional breaks the train of thought.

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

fa0cdb6c 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Introduce tcg_opc_movi_a

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

3b9ccdcc 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Introduce tcg_opc_mov_a

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

25c9c73b 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Use A3 form of logical operations

We can and/or/xor/andcm small constants, saving one cycle.

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

f940fb08 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Use SUB_A3 and ADDS_A4 for subtraction

We can subtract from more small constants that just 0 with one insn,
and we can add the negative for most small constants.

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

8642088a 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Use ADDS for small addition

Avoids a wasted cycle loading up small constants.

Simplify the code assuming the tcg optimizer is going to work
and don't expect the first operand of the add to be constant.

Acked-by: Aurelien Jarno <>...

3c289cba 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Avoid unnecessary stop bit in tcg_out_alu

When performing an operation with two input registers, we'd leave
the stop bit (and thus an extra cycle) that's only needed when one
or the other input is a constant.

Acked-by: Aurelien Jarno <>...

d15de15c 11/18/2013 07:57 am Richard Henderson

tcg-ia64: Move AREG0 to R32

Since the move away from the global areg0, we're no longer globally
reserving areg0. Which means our use of R7 clobbers a call-saved
register. Shift areg0 into the windowed registers. Indeed, choose
the incoming parameter register that it comes to us by....

6d264b38 11/18/2013 07:56 am Richard Henderson

tcg-ia64: Simplify brcond

There was a misconception that a stop bit is required between a compare
and the branch that uses the predicate set by the compare. This lead to
the usage of an extra bundle in which to perform the compare. The extra
bundle left room for constants to be loaded for use with the compare insn....

6f65c780 11/18/2013 07:56 am Richard Henderson

tcg-ia64: Handle constant calls

Using only indirect calls results in 3 bundles (one to load the
descriptor address), and 4 stop bits. By looking through the
descriptor to the constants, we can perform the call with 2
bundles and only 1 stop bit.

Acked-by: Aurelien Jarno <>...

5f7b1687 11/18/2013 07:56 am Richard Henderson

tcg-ia64: Use shortcuts for nop insns

There's no need to go through the full opcode-to-insn function call
to generate nops. This makes the source a bit more readable.

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

e3afa1c4 11/18/2013 07:56 am Richard Henderson

tcg-ia64: Use TCGMemOp within qemu_ldst routines

Acked-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

0478f37c 11/16/2013 10:30 pm Michael Tokarev

hw/i386/Makefile.obj: use $(PYTHON) to run .py scripts consistently

$(PYTHON) is a Make variable which is set by configure.
In all other places over the tree, .py files are run from
Makefiles using this variable, except of a single leftover
in hw/i386/Makefile.obj (and a nearby place in there uses...

52510f8b 11/16/2013 10:29 pm Stefan Weil

configure: Use -B switch only for Python versions which support it

Commit 1d984a67a95d88f3e708b077dab8adeb47c38c93 added the -B switch
unconditionally. This breaks Python versions before 2.6 which don't
support that switch.

Now configure adds -B only if it is accepted by the Python interpreter....

485e741c 11/16/2013 12:04 pm whitearchey

qga: Fix shutdown command of guest agent to work with SysV

For now guest agent uses following command to shutdown system:
shutdown -P +0 "blabla"
but this syntax works only with shutdown command from systemd or upstart,
because SysV shutdown requires -h switch....

36452f12 11/15/2013 02:37 pm Fam Zheng

qemu-img: Fix overwriting 'ret' before using

This patch moves ret assignment after reporting original error.

We were lucky to pass qemu-iotests 048 (qemu-img compare case) but when
I tried to run with TEST_DIR=/tmp (tmpfs), it fails with a "wrong"
mismatch offset. This fixes two bugs....

f05b328c 11/15/2013 02:37 pm Stefan Hajnoczi

MAINTAINERS: add block driver sub-maintainers

There are a number of contributors who maintain block drivers (image
formats and protocols). They should be listed in the MAINTAINERS file
so that get_maintainer.pl lists them.

Note that commits are still merged through Kevin or Stefan's block tree...

06d22aa3 11/15/2013 02:37 pm Kevin Wolf

block: Fail if requested driver is not available

If an explicit driver option is present, but doesn't specify a valid
driver, then bdrv_open() should fail instead of probing the format.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Jeff Cody <>...

a1144c0d 11/15/2013 02:37 pm Kevin Wolf

qemu-iotests: Test qcow2 count_contiguous_clusters()

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

8b7acc79 11/15/2013 02:25 pm Sebastian Huber

smc91c111: Fix receive starvation

In case the smc91c111 interface signals that it cannot receive more
packets the packets are queued and further reception will be disabled.
In case the interface is again ready to receive packets notify the upper
layer.

Signed-off-by: Sebastian Huber <>...