Statistics
| Branch: | Revision:

root @ 58cd9864

# Date Author Comment
58cd9864 06/07/2013 03:55 pm Andreas Färber

kvm/i8254: QOM'ify some more

Introduce type constant and cast macro to obsolete DO_UPCAST().

Prepares for PIT realizefn.

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

3afe7e14 06/07/2013 03:55 pm Andreas Färber

i8254: QOM'ify some more

Introduce type constant and avoid DO_UPCAST().

Prepares for PIT realizefn.

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

db895a1e 06/07/2013 01:14 pm Andreas Färber

isa: Use realizefn for ISADevice

Drop ISADeviceClass::init and the resulting no-op initfn and let
children implement their own realizefn. Adapt error handling.
Split off an instance_init where sensible.

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

a3dcca56 06/06/2013 06:09 pm Andreas Färber

cs4231a: QOM'ify some more

Introduce type constant and cast macro.
Replace reset hook with DeviceClass::reset callback.

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

11c7549d 06/06/2013 05:20 pm Andreas Färber

gus: QOM'ify some more

Add type constant and cast macro.

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

8819c10b 06/04/2013 10:58 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen_fixes_20130603' into staging

  • sstabellini/xen_fixes_20130603:
    xen: use pc_init_pci instead of pc_init_pci_no_kvmclock
    xen: remove xen_vcpu_init
    xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)...
a3416197 06/04/2013 05:26 pm Anthony Liguori

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

  1. By Stefan Hajnoczi (6) and others
  2. Via Kevin Wolf
    • kwolf/for-anthony:
      block: dump snapshot and image info to specified output
      block: move qmp and info dump related code to block/qapi.c...
e47dccc6 06/04/2013 05:26 pm Anthony Liguori

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

pci: misc cleanups

This includes some pci-related cleanups,
and fw cfg cleanups which will be useful for on-going
pci related work.

Signed-off-by: Michael S. Tsirkin <>

  1. gpg: Signature made Sun 02 Jun 2013 02:46:52 PM CDT using RSA key ID D28D5469...
de08c606 06/04/2013 02:56 pm Wenchao Xia

block: move snapshot code in block.c to block/snapshot.c

All snapshot related code, except bdrv_snapshot_dump() and
bdrv_is_snapshot(), is moved to block/snapshot.c. bdrv_snapshot_dump()
will be moved to another file later. bdrv_is_snapshot() is not related...

f364ec65 06/04/2013 02:56 pm Wenchao Xia

block: move qmp and info dump related code to block/qapi.c

This patch is a pure code move patch, except following modification:
1 get_human_readable_size() is changed to static function.
2 dump_human_image_info() is renamed to bdrv_image_info_dump().
3 in qmp_query_block() and qmp_query_blockstats, use bdrv_next(bs)...

5b917044 06/04/2013 02:56 pm Wenchao Xia

block: dump snapshot and image info to specified output

bdrv_snapshot_dump() and bdrv_image_info_dump() do not dump to a buffer now,
some internal buffers are still used for format control, which have no
chance to be truncated. As a result, these two functions have no more issue...

29d78271 06/04/2013 02:56 pm Stefan Hajnoczi

block: drop bs_snapshots global variable

The bs_snapshots global variable points to the BlockDriverState which
will be used to save vmstate. This is really a savevm.c concept but was
moved into block.c:bdrv_snapshots() when it became clear that hotplug
could result in a dangling pointer....

b64ec4e4 06/04/2013 01:11 pm Fam Zheng

block: add block driver read only whitelist

We may want to include a driver in the whitelist for read only tasks
such as diagnosing or exporting guest data (with libguestfs as a good
example). This patch introduces a readonly whitelist option, and for
backward compatibility, the old configure option --block-drv-whitelist...

ecc1c88e 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make assert_no_active_block_jobs() common

Tests 030 and 041 both use query-block-jobs to check whether any block
jobs are active. Make this code common so that 'drive-backup' and other
new feature tests will be able to reuse it.

Suggested-by: Kevin Wolf <>...

2575fe16 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make cancel_and_wait() common

The cancel_and_wait() function has been duplicated in 030 and 041. Move
it into iotests.py and let it return the event so tests can perform
additional asserts.

Note that 041's cancel_and_wait(wait_ready=True) is replaced by...

3a3918c3 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make compare_images() common

The iotests.compare_images() function returns True if two image files
have the identical data. Previously this was implemented by converting
images to raw and then comparing their contents using Python. Since
"qemu-img compare" is now available and is more efficient, switch to it....

2499a096 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: make create_image() common

Both 030 and 041 use create_image(). Move it to iotests.py.

Also drop ImageStreamingTestCase since the class now has no methods.

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

8ddd08c5 06/04/2013 01:11 pm Stefan Hajnoczi

qemu-iotests: fix 054 cluster size help output

Commit f3f4d2c09b9cf46903ba38425ec46c44185162bd added a hint to increase
the cluster size when a large image cannot be created. Test 054 now has
outdated output and fails because the golden output does not match....

17139240 06/04/2013 12:14 am Anthony Liguori

gtk: don't use g_object_unref on GdkCursor

It's not a GObject.

Cc: Gerd Hoffman <>
Reported-by: Michael Tokarev <>
Signed-off-by: Anthony Liguori <>
---
v1 -> v2
- Fix summary to agree with code (Peter)

41686a96 06/03/2013 11:36 pm Anthony Liguori

gtk: don't resize window when enabling scaling

Signed-off-by: Anthony Liguori <>

651eb0f4 06/03/2013 11:21 pm Xiao Guangrong

fix double free the memslot in kvm_set_phys_mem

Luiz Capitulino reported that guest refused to boot and qemu
complained with:
kvm_set_phys_mem: error unregistering overlapping slot: Invalid argument

It is caused by commit 235e8982ad that did double free for the memslot...

6e92f823 06/03/2013 09:24 pm Peter Maydell

configure: Autogenerate default target list

Autogenerate the default target list based on what files exist
in default-configs; this allows us to remove one of the places
that has to be kept up to date with a complete list of every
target we support.

Signed-off-by: Peter Maydell <>...

25b48338 06/03/2013 09:24 pm Peter Maydell

configure: Report unknown target names more helpfully

If the user specifies a target list themselves, check each entry
to make sure it's a target we recognise. This allows us to print
a helpful error message, rather than falling through (where we
would probably eventually end up hitting the uninformative...

0ded1fe5 06/03/2013 09:24 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/arm-devs.next' into staging

  1. By Peter Crosthwaite (20) and others
  2. Via Peter Maydell
    • pmaydell/arm-devs.next: (24 commits)
      i.MX: Improve EPIT timer code.
      exynos4210.c: register rom_mem for memory migration
      hw/arm/exynos4210.c: convert chipid_and_omr to an mmio region...
11a5e482 06/03/2013 07:17 pm Igor Mitsyanko

hw/arm/exynos4210.c: convert chipid_and_omr to an mmio region

Exynos SoC was misusing memory_region_init_ram_ptr(): this interface can safely
be used only for memory regions which size is a multiple of target page size.
Change chipid_and_omr memory to an mmio region to fix this....

6539ed21 06/03/2013 07:17 pm Igor Mitsyanko

exynos4210.c: register rom_mem for memory migration

Even if we do not register newly created RAM MemoryRegion for migration with
vmstate_register_ram_global() function, ram_save_setup() still saves this region
to snapshot file with empty idstr=="". Consequently this results in error during...

95669e69 06/03/2013 07:17 pm Jean-Christophe DUBOIS

i.MX: Improve EPIT timer code.

  • Unify function and type naming
  • use dynamic cast whenever possible
  • simplify Debug printf.
  • use new style device intialization.

Signed-off-by: Jean-Christophe DUBOIS <>
Reviewed-by: Peter Chubb <>...

677ff2ae 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci.c: Fix bdata_read DPRINT message

This message was printing out the data in decimal only, which is not
very friendly to the debugging developer. Add hex variant in
parenthesis to make it consistent with other similar messages in this
module.

Signed-off-by: Peter Crosthwaite <>...

1d32c26f 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci:ADMA: fix interrupt

The end of transfer check was occurring and potentially returning before
the interrupt flag was checked. This means the interrupt will be missed
if it occurs on the last packet. Fix by checking for the interrupt
before checking for the end of transfer....

37ab4a56 06/03/2013 07:17 pm Peter Crosthwaite

sd/sd.c: Fix "inquiry" ACMD41

QEMU models two (of the three) ACMD41 has two modes, "inquiry" and
"first". The selection logic for which of the two is incorrect - it
compares != 0 for the entire argument value rather than only bits 23:0
as per the spec. Fix....

a50c0d6f 06/03/2013 07:17 pm Jean-Christophe DUBOIS

i.MX: split GPT and EPIT timer implementation

There is no common code between these 2 timer implementation.
So it is better to split them.

Signed-off-by: Jean-Christophe DUBOIS <>
Message-id: ...

a66418f6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Push more data to tx-fifo

Do 16 words per fifo flush. Increases performance and decreases
debug verbosity. This data depth has no real hardware analogue,
so just go with something that has reasonable performance.

Signed-off-by: Peter Crosthwaite <>...

b0b7ae62 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Fix byte/misaligned access

The LQSPI bus attachment supports byte/halfword and misaligned
accesses. Fixed. Refactored the LQSPI cache to be byte-wise
instead of word wise accordingly.

Signed-off-by: Peter Crosthwaite <>...

656f416c 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci.c: Only reset data_count on new commands

The data_count variable was being reset on every transfer, including
DMA transfer resumptions. This is incorrect, it should only be set
on a new command.

Manifests as a bug when using ADMA and there is a timer delay between...

dcdb4cd8 06/03/2013 07:17 pm Peter Crosthwaite

sd/sdhci: Fix Buffer Write Ready interrupt

This interrupt is not risen after the last block is written to sd. It
is mutually exclusive with the end of transfer conditions. Fix.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Igor Mitsyanko <>...

15408b42 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Dont touch config register

The LQSPI mode is supposed to work via the automatic CS mode feature
rather than manipulate CS lines itself. Now that auto CS is implemented
remove LQSPIs CS mode override logic. There is still a need to
manipulate the U_PAGE bit in LQSPI config register to implement...

2133a5f6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix CTRL register RW bits

The CTRL register was RAZ/WI on some of the RW bits. Even though the
function behind these bits is invalid in QEMU, they should still be
guest accessible. Fix.

Signed-off-by: Peter Crosthwaite <>...

9151da25 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix striping behaviour

The QSPI controller was using byte-wide stripes when striping across
the two flashes in dual parallel mode. The real hardware however uses
individual bit striping. QEMU misbehaves in the (corner) case where
data is written/read in dual-parallel mode and read/written back in...

c37fc509 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Debug msgs for Snoop state

This is worth keeping track of when debugging the device model.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

4a5b6fa8 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Multiple debug verbosity levels

The debug printfs on every SPI operation is extremely verbose. Add
a second level of debug for this.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

10e60b35 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix QSPI FIFO size

QSPI has a bigger FIFO than the regular SPI controller. Differentiate
between the two with correct FIFO sizes for each.

This is the first piece of class data for SPIPS, so this patch sees
the creation of the XilinxSPIPSClass definition and assoicated QOM...

b5cd9143 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Trash LQ page cache on mode change

Invalidate the LQSPI cached page when transitioning into LQSPI mode.
Otherwise there is a possibility that the controller will return stale
data to the guest when transitioning back to LQ_MODE after a page...

e100f3be 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Add automatic start support

SPI has a mode where it automatically starts based on tx fifo
occupancy. Implemented.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

c4f08ffe 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Implement automatic CS

Implement the automatic CS control feature. If the MANUAL_CS bit is
cleared then the chip select stay de-asserted as long as the tx FIFO
is empty.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

6b91f015 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: seperate SPI and QSPI as two classes

Make SPI and QSPI different classes. QSPIPS is setup as a child of SPIPS.
Only QSPI has the LQSPI functionality, so move all that to the child class.

Signed-off-by: Peter Crosthwaite <>...

87920b44 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Make interrupts clear on read

By default these interrupts are clear on read.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

3ea728d0 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Inhibit interrupts in LQSPI mode

The real hardware does not produce interrupts in LQSPI mode. Inhibit
generation of interrupts when the LQ_MODE bit is set.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

abef5fa6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Add verbose LQSPI debug output

You really need this is you want to track a guest banging on LQSPI.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

9f24a803 06/03/2013 06:41 pm Stefano Stabellini

xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)

We are currently setting the PCI hole to start at HVM_BELOW_4G_RAM_END,
that is 0xf0000000.
Start the PCI hole at 0xe0000000 instead, that is the same value used by
pc_init1 and qemu-xen-traditional....

95222d09 06/03/2013 06:41 pm Stefano Stabellini

xen: remove xen_vcpu_init

No need for xen_vcpu_init anymore:

- the RTC emulator doesn't have any periodic timers continuously running
even in absence of guest interactions anymore;

- qemu_dummy_start_vcpu takes care of disabling TCG for us, so we don't...

9cdf79d0 06/03/2013 06:41 pm Stefano Stabellini

xen: use pc_init_pci instead of pc_init_pci_no_kvmclock

Call kvmclock_create only if kvmclock_enabled.
Use pc_init_pci on Xen rather than pc_init_pci_no_kvmclock.

Signed-off-by: Stefano Stabellini <>

49fa9881 06/03/2013 06:41 pm Stefano Stabellini

xen: simplify xen_enabled

No need for preprocessor conditionals in xen_enabled: xen_allowed is
always defined.

Signed-off-by: Stefano Stabellini <>
CC:

a7d4207d 06/03/2013 06:41 pm Stefano Stabellini

main_loop: do not set nonblocking if xen_enabled()

Signed-off-by: Stefano Stabellini <>
CC:

58ee9b0a 06/03/2013 06:41 pm Stefano Stabellini

xen_machine_pv: do not create a dummy CPU in machine->init

This fixes a regression introduced by:

commit 62fc403f11523169eb4264de31279745f48e3ecc
Author: Igor Mammedov <>
Date: Mon Apr 29 18:54:13 2013 +0200

target-i386: Attach ICC bus to CPU on its creation...
8b779b36 06/03/2013 04:39 pm Ákos Kovács

po/hu.po: Hungarian translation for the GTK+ interface

Cc: Laszlo Ersek <>
Signed-off-by: Ákos Kovács <>
Reviewed-by: Laszlo Ersek <>
Message-id:
Signed-off-by: Anthony Liguori <>

40459a03 06/03/2013 04:37 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.83' into staging

  1. By Gerd Hoffmann (5) and others
  2. Via Gerd Hoffmann
    • kraxel/usb.83:
      xhci: add live migration support
      xhci: add xhci_init_epctx
      xhci: add xhci_alloc_epctx
      xhci: add XHCISlot->addressed
      pci: add VMSTATE_MSIX...
7087d3df 06/03/2013 04:37 pm Anthony Liguori

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

  1. By Ed Maste (3) and others
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      do not check pointers after dereferencing them
      m25p80: Add Micron n25q032a
      qemu: fix out of tree cross compile...
37352df3 06/03/2013 12:38 pm Gerd Hoffmann

xhci: add live migration support

With all preparing pieces in place we can finally drop in
the vmstate structs and the postload function.

Signed-off-by: Gerd Hoffmann <>

4034e693 06/03/2013 12:37 pm Gerd Hoffmann

xhci: add XHCISlot->addressed

Preparing for live-migration support, post_load will need that.

Signed-off-by: Gerd Hoffmann <>

492b21f6 06/03/2013 12:37 pm Gerd Hoffmann

xhci: add xhci_alloc_epctx

Factor out endpoint context allocation to a separate function.
xhci live migration will need that too, in post_load.

Signed-off-by: Gerd Hoffmann <>

003e15a1 06/03/2013 12:37 pm Gerd Hoffmann

xhci: add xhci_init_epctx

Factor out endpoint context initialization to a separate function.
xhci live migration will need that too, in post_load.

Signed-off-by: Gerd Hoffmann <>

340b50c7 06/03/2013 12:37 pm Gerd Hoffmann

pci: add VMSTATE_MSIX

Using a trick cut+pasted from vmstate_scsi_device
to wind up msix_save and msix_load.

Signed-off-by: Gerd Hoffmann <>
Acked-by: Michael S. Tsirkin <>

75633529 06/03/2013 08:17 am Michael Marineau

Fix usage of USB_DEV_FLAG_IS_HOST flag.

USB_DEV_FLAG_IS_HOST is the bit number, not value. Booting with a
"Fitbit Base Station" USB dongle was triggering this assert.

Signed-off-by: Michael Marineau <>
Cc:
Signed-off-by: Gerd Hoffmann <>

45ec2671 06/03/2013 08:17 am Ed Maste

host-libusb: Correct test for USB packet state

USB_RET_ASYNC is -6, so inflight was always false.

Signed-off-by: Ed Maste <>
Cc:
Signed-off-by: Gerd Hoffmann <>

f10acc8b 06/02/2013 07:45 pm Mark Cave-Ayland

tcx: Fix 24-bit display mode

Commit d08151bf (conversion of tcx to the memory API) broke the 24-bit mode of
the tcx display adapter by accidentally passing in the final address of the
dirty region to memory_region_reset_dirty() instead of its size.

Signed-off-by: Mark Cave-Ayland <>...

c3c4fe35 06/02/2013 06:14 pm Michael S. Tsirkin

pvpanic: use FWCfgState explicitly

Use the type-safe FWCfgState structure instead
of the unsafe void *.

Signed-off-by: Michael S. Tsirkin <>

45936c8b 06/02/2013 06:14 pm Michael S. Tsirkin

fw_cfg: move typedef to qemu/typedefs.h

Less header dependencies this way.

Signed-off-by: Michael S. Tsirkin <>

600c60b7 06/02/2013 06:14 pm Michael S. Tsirkin

fw_cfg: add API to find FW cfg object

Remove some code duplication by adding a
function to look up the fw cfg file.
This way, we don't need to duplicate same strings everywhere.
Use by both fw cfg and pvpanic device.

Signed-off-by: Michael S. Tsirkin <>

cac12210 06/02/2013 06:14 pm Michael S. Tsirkin

fw_cfg: fw_cfg is a singleton

Make sure we only have a single instance ever:
because if it isn't we can't find it so it's
useless anyway.

Signed-off-by: Michael S. Tsirkin <>

edf9735e 06/02/2013 06:14 pm Michael S. Tsirkin

apic: rename apic specific bitopts

apic has its own version of bitops, with the
difference that it works on u32 and not long.
Add apic_ prefix to avoid namespace clashes.

We should look into reusing standard bitops long-term,
but that's not entirely trivial....

a88b362c 06/02/2013 06:14 pm Laszlo Ersek

refer to FWCfgState explicitly

Currently some places use pointer-to-void even though they mean
pointer-to-FWCfgState. Clean them up.

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Michael S. Tsirkin <>

ec0503b4 06/02/2013 06:13 pm Michael S. Tsirkin

firmware_abi: move to include/hw/nvram/

firmware_abi.h with structs for OpenBIOS landed in hw/sparc/ by mistake
- move it to hw/nvram/ alongside fw_cfg.h. In addition to sparc it's
included from ppc mac_nvram.c and will need to include it from prep.c in...

cbef02f8 06/02/2013 06:13 pm Michael S. Tsirkin

dec.c - move to pci-bridge

Looks like dec.c is in pci-host by mistake.
Moving it over to pci-bridge.

Acked-by: Andreas Färber <>
Signed-off-by: Michael S. Tsirkin <>

a9c34e44 06/01/2013 01:25 pm Michael Tokarev

slirp: cleanup leftovers from misc.h

There are quite a few leftover declarations in slirp/misc.h.
Remove them.

Signed-off-by: Michael Tokarev <>

a585140d 06/01/2013 01:25 pm Alexey Kardashevskiy

qemu: fix out of tree cross compile

The symlink to "asm" platform linux headers is made in the build tree by
the configure script but gcc is not told to look for them there.

The patch fixes this.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Michael Tokarev <>

cd2e64ce 06/01/2013 01:25 pm Ed Maste

m25p80: Add Micron n25q032a

Based on the datasheet at
http://www.micron.com/~/media/Documents/Products/Data%20Sheet/NOR%20Flash/Serial%20NOR/N25Q/n25q_32mb_1_8v_65nm.pdf

Signed-off-by: Ed Maste <>
Signed-off-by: Michael Tokarev <>

a4cc73d6 06/01/2013 01:25 pm Paolo Bonzini

do not check pointers after dereferencing them

Two instances, both spotted by Coverity. In one, two blocks were
swapped. In the other, the check is not needed anymore.

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

a3605bf6 06/01/2013 01:25 pm Michael Tokarev

don't run pkg-config for features explicitly disabled

We test pkg-config for curses and curl even if those are explicitly
disabled. Move these tests inside `if "$feature" != "no"' sections.

Signed-off-by: Michael Tokarev <>

6681fca3 06/01/2013 01:25 pm Stefan Weil

Remove unnecessary break statements

Fix these warnings from cppcheck:

hw/display/cirrus_vga.c:2603:
hw/sd/sd.c:348:
hw/timer/exynos4210_mct.c:1033:
target-arm/translate.c:9886:
target-s390x/mem_helper.c:518:
target-unicore32/translate.c:1936:
style: Consecutive return, break, continue, goto or throw statements are unnecessary....

8c1f72da 06/01/2013 01:25 pm liguang

debugcon: fix always print "addr=0x0, val=0x0" bug when use DEBUG_DEBUGCON

when use DEBUG_DEBUGCON, screen spits:
debugcon: write addr=0x0000 val=0x00
Rdebugcon: write addr=0x0000 val=0x00
udebugcon: write addr=0x0000 val=0x00
ndebugcon: write addr=0x0000 val=0x00...

e6ee2846 06/01/2013 01:25 pm liguang

debugcon: make debug message more readable

before change:
Bdebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x74
tdebugcon: write addr=0x0000 val=0x69
idebugcon: write addr=0x0000 val=0x6e
ndebugcon: write addr=0x0000 val=0x67...

668fca91 06/01/2013 01:25 pm liguang

debugcon: fix compiler warning when open DEBUG_DEBUGCON

compiler warnings:
CC hw/char/debugcon.o
hw/char/debugcon.c: In function ‘debugcon_ioport_write’:
hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’...

cbc8d595 06/01/2013 01:25 pm Ed Maste

configure: remove confusing file manipulation

The configure script had some code to manipulate config-host.ld~ (i.e.,
a common backup filename), comparing it with the newly-generated file.
I believe the sense of the comparison was backwards.

Since it seemed to serve little purpose anyway, remove it to avoid any...

d2d6b857 06/01/2013 01:25 pm Lei Li

linux-user: Fix typo in comment

Signed-off-by: Lei Li <>
Reviewed-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

d720e983 06/01/2013 01:25 pm Hu Tao

rtc: remove rtc_set_date

Since it's not defined and used anywhere.

Cc:
Signed-off-by: Hu Tao <>
Signed-off-by: Michael Tokarev <>

cfeda5f4 06/01/2013 01:25 pm Ed Maste

configure: try pkg-config ncurses first

When probing for ncurses, try pkg-config first rather than after
explicit -lncurses and -lcurses. This fixes static linking in the case
that ncurses has additional dependencies, such as -ltinfo (as on FreeBSD).

Signed-off-by: Ed Maste <>...

7465dfec 06/01/2013 01:25 pm Lei Li

docs: Fix typo and update file in migration

This patch fix some typo and update the file that already
moved.

Signed-off-by: Lei Li <>
Signed-off-by: Michael Tokarev <>

12cd30e9 06/01/2013 01:25 pm Lei Li

migration: Remove duplicate bandwidth_limit set

bandwidth_limit is double set in migrate_init(), remove one.

Signed-off-by: Lei Li <>
Signed-off-by: Michael Tokarev <>

dec3fc96 05/31/2013 08:51 pm Richard Henderson

target-i386: Fix aflag logic for CODE64 and the 0x67 prefix

The code reorganization in commit 4a6fd938 broke handling of PREFIX_ADR.
While fixing this, tidy and comment the code so that it's more obvious
what's going on in setting both aflag and dflag.

The TARGET_X86_64 ifdef can be eliminated because CODE64 expands to the...

39c93c67 05/31/2013 08:50 pm Christian Borntraeger

s390/ipl: Fix spurious errors in virtio

With the ccw ipl code sometimes an error message like
"virtio: trying to map MMIO memory" or
"Guest moved used index from %u to %u" appeared. Turns out
that the ccw bios did not zero out the vring, which might
cause stale values in avail->idx and friends, especially...

0a1f348c 05/31/2013 07:33 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-2013-05-30' into staging

  1. By Laszlo Ersek
  2. Via Michael Roth
    • mdroth/qga-pull-2013-05-30:
      Makefile: create ".../var/run" when installing the POSIX guest agent
      qga: save state directory in ga_install_service()...
6c8df7a3 05/31/2013 07:32 pm Anthony Liguori

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

  1. By Luiz Capitulino (1) and others
  2. Via Luiz Capitulino
    • luiz/queue/qmp:
      target-i386: Fix mask of pte index in memory mapping
      target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addresses
      qapi: pad GenericList value fields to 64 bits...
cdf79b64 05/31/2013 07:32 pm Anthony Liguori

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

  1. By Paolo Bonzini
  2. Via Paolo Bonzini
    • bonzini/iommu-for-anthony: (22 commits)
      memory: add return value to address_space_rw/read/write
      memory: propagate errors on I/O dispatch
      exec: just use io_mem_read/io_mem_write for 8-byte I/O accesses...
bff63471 05/31/2013 04:02 pm Qiao Nuohan

target-i386: Fix mask of pte index in memory mapping

Function walk_pte() needs pte index to calculate virtual address.
However, pte index of PAE paging or IA-32e paging is 9 bit, so the mask
should be 0x1ff.

Signed-off-by: Qiao Nuohan <>...

fbc2ed95 05/31/2013 04:02 pm Luiz Capitulino

target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addresses

The code used to walk IA-32e page-tables, and possibly PAE page-tables,
uses the bit mask ~0xfff to get the next PML4E/PDPTE/PDE/PTE address.

However, as we use a uint64_t to store the resulting address, that mask...

fd21faad 05/30/2013 07:46 pm Paul Moore

seccomp: add the asynchronous I/O syscalls to the whitelist

In order to enable the asynchronous I/O functionality when using the
seccomp sandbox we need to add the associated syscalls to the
whitelist.

Signed-off-by: Paul Moore <>
Reviewed-by: Corey Bryant <>...

87f25c12 05/30/2013 07:45 pm Paolo Bonzini

gdbstub: do not restart crashed guest

If a guest has crashed with an internal error or similar, detaching
gdb (or any other debugger action) should not restart it.

Cc: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>...

bbfa18fc 05/30/2013 07:44 pm Amos Kong

qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path

Recent virtio refactoring in QEMU made virtio-bus become the parent bus
of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation,
typename will be added to fw_dev_path by default, the new fw_dev_path...

a839ee77 05/30/2013 07:37 pm Laszlo Ersek

qga: save state directory in ga_install_service()

If the user selects a non-default state directory at service installation
time, we should remember it in the registered service.

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Michael Roth <>

f2e3978b 05/30/2013 07:37 pm Laszlo Ersek

Makefile: create ".../var/run" when installing the POSIX guest agent

Otherwise the default local state directory of POSIX qga won't exist after
installation with a non-standard ${prefix} or DESTDIR.

For now qga is the only user of ".../var" (= $qemu_localstatedir) too, so...