Statistics
| Branch: | Revision:

root @ 5f8ae8e2

# Date Author Comment
1f507913 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: split test_media_change() test, so insert part can be reused

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

44212dcc 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: insert media before fuzzing registers

A media will be required for future fdc tests.

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

5f8ae8e2 11/14/2012 07:19 pm Hervé Poussineau

fdc-test: add tests for non-DMA READ command

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

8809e289 11/14/2012 07:19 pm Bharata B Rao

qemu: Document GlusterFS block driver usage

Signed-off-by: Bharata B Rao <>
Signed-off-by: Kevin Wolf <>

a3548077 11/14/2012 07:19 pm Kevin Wolf

qcow2: Fix refcount table size calculation

A missing factor for the refcount table entry size in the calculation
could mean that too little memory was allocated for the in-memory
representation of the table, resulting in a buffer overflow.

Signed-off-by: Kevin Wolf <>...

d2ef210c 11/14/2012 07:19 pm Kevin Wolf

qemu-iotests: qcow2: Test growing large refcount table

Actually writing all the content with 512 byte sector size would take
forever, therefore build the image file with a Python script and use
qemu-io for the last write that actually triggers the refcount table...

54d01a00 11/14/2012 07:19 pm Stefan Hajnoczi

MAINTAINERS: add Stefan Hajnoczi as block and virtio-blk co-maintainer

Kevin has requested co-maintainership to give him more time to write
code. We will alternate patch review duties on a weekly basis.

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

cee40d2d 11/14/2012 07:19 pm Stefan Weil

block: Workaround for older versions of MinGW gcc

Versions before gcc-4.6 don't support unnamed fields in initializers
(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676).

Offset and OffsetHigh belong to an unnamed struct which is part of an
unnamed union. Therefore the original code does not work with older...

a9660664 11/14/2012 07:19 pm Nick Thomas

tests: allow qemu-iotests to be run against nbd backend

To do this, we start a qemu-nbd process at _make_test_img and kill
it in _cleanup_test_img. $TEST_IMG is changed to point at the TCP
server. We also remove the checks for existence of binaries from
common.config - they're duplicated in common, and we can make the...

8c82e9a4 11/14/2012 07:19 pm Stefan Hajnoczi

aio: switch aiocb_size type int -> size_t

Using appropriate types for variables is a good thing :). All users
simply do sizeof(MyType) and the value is passed to a memory allocator,
it should be size_t.

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

d37c975f 11/14/2012 07:19 pm Stefan Hajnoczi

aio: use g_slice_alloc() for AIOCB pooling

AIO control blocks are frequently acquired and released because each aio
request involves at least one AIOCB. Therefore, we pool them to avoid
heap allocation overhead.

The problem with the freelist approach in AIOPool is thread-safety. If...

d7331bed 11/14/2012 07:19 pm Stefan Hajnoczi

aio: rename AIOPool to AIOCBInfo

Now that AIOPool no longer keeps a freelist, it isn't really a "pool"
anymore. Rename it to AIOCBInfo and make it const since it no longer
needs to be modified.

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

34abf9a7 11/14/2012 07:19 pm Kevin Wolf

fdc: Remove status0 parameter from fdctrl_set_fifo()

It decided whether an interrupt is triggered. Only one caller made use
of this functionality, so move the code there.

In this one caller, the interrupt must actually be triggered
unconditionally, like it was before commit 2fee0088. For example, a...

ce34cf72 11/14/2012 04:53 pm Anthony Liguori

Merge remote-tracking branch 'awilliam/tags/vfio-pci-for-qemu-1.3.0-rc0' into staging

vfio-pci: KVM INTx accel & common msi_get_message

  • awilliam/tags/vfio-pci-for-qemu-1.3.0-rc0:
    vfio-pci: Use common msi_get_message
    vfio-pci: Add KVM INTx acceleration...
662d263f 11/14/2012 04:53 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/pixman.v5' into staging

  • kraxel/pixman.v5:
    pixman: cleanup properly on make distclean
    pixman: add licensing info
    pixman: build internal version early
    pixman: pass cflags, add -fPIC
    pixman: disable gtk
    pixman: set --host for cross builds...
de148eb7 11/14/2012 04:51 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/nbd-next' into staging

  • bonzini/nbd-next:
    nbd: fixes to read-only handling
    hmp: add NBD server commands
    nbd: disallow nbd-server-add before nbd-server-start
    nbd: force read-only export for read-only devices
    nbd: fix nbd_server_stop crash when no server was running...
5f580e94 11/14/2012 04:50 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  • bonzini/scsi-next:
    virtio-scsi: use dma_context_memory
    dma: Define dma_context_memory and use in sysbus-ohci
    megasas: Correct target/lun mapping
    scsi-disk: flush cache after disabling it...
ce5e5b52 11/14/2012 04:50 pm Anthony Liguori

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

  • kraxel/usb.70:
    ehci: fix migration
    xhci: Fix some DMA host endian bugs
    usb/combined-packet: Move freeing of combined to usb_combined_packet_remove()
    xhci: Add support for packets with both data and an error status...
bf0dfb69 11/14/2012 04:49 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v63' into staging

  • spice/spice.v63:
    spice: fix initialization order
    pflib: unused, remove it.
    spice: switch to pixman
    qxl: call dpy_gfx_resize when entering vga mode
    qxl: fix cursor reset
    hw/qxl: qxl_send_events: nop if stopped...
feb33ea7 11/14/2012 02:46 pm Gerd Hoffmann

pixman: cleanup properly on make distclean

Signed-off-by: Gerd Hoffmann <>

daa8e5a0 11/14/2012 02:29 pm Gerd Hoffmann

pixman: add licensing info

Signed-off-by: Gerd Hoffmann <>

b776eca1 11/14/2012 02:29 pm Gerd Hoffmann

pixman: build internal version early

Signed-off-by: Eric Johnson <>
Signed-off-by: Gerd Hoffmann <>

c28fa5a0 11/14/2012 02:28 pm Gerd Hoffmann

pixman: pass cflags, add -fPIC

Pass on CFLAGS to the pixman configure script.
Add -fPIC to the cflags, needed to make the final link succeed.

Signed-off-by: Gerd Hoffmann <>

4d5bdd0b 11/14/2012 02:28 pm Gerd Hoffmann

pixman: disable gtk

gtk is only needed to build test cases.
Disable it to simplify the build.

Signed-off-by: Gerd Hoffmann <>

42da6041 11/14/2012 01:59 pm Gerd Hoffmann

pixman: set --host for cross builds

Set --host when calling pixman configure while doing cross builds so
pixman's autoconf picks up the cross build tools correctly.

Signed-off-by: Gerd Hoffmann <>

5ca9388a 11/14/2012 01:39 pm Gerd Hoffmann

pixman: add output dir to include path

Needed to make sure the (generated) pixman-version.h file is found.
Based on a patch from Blue Swirl.

Signed-off-by: Gerd Hoffmann <>

716b8e4d 11/13/2012 09:27 pm Alex Williamson

linux-headers: Update to 3.7-rc5

update-linux-headers.sh script run against Linux tag v3.7-rc5

Signed-off-by: Alex Williamson <>

e1d1e586 11/13/2012 09:27 pm Alex Williamson

vfio-pci: Add KVM INTx acceleration

This makes use of the new level irqfd support enabling bypass of qemu
userspace both on INTx injection and unmask. This significantly
boosts the performance of devices making use of legacy interrupts (ex.
~60% better netperf TCP_RR scores for an e1000e assigned to a Linux...

a771c517 11/13/2012 09:27 pm Alex Williamson

vfio-pci: Use common msi_get_message

We can get rid of our local version now that a helper exists.

Signed-off-by: Alex Williamson <>

c8969ede 11/13/2012 11:34 am Paolo Bonzini

nbd: fixes to read-only handling

We do not need BLKROSET if the kernel supports setting flags.
Also, always do BLKROSET even for a read-write export, otherwise
the read-only state remains "sticky" after the invocation of
"qemu-nbd -r".

Signed-off-by: Paolo Bonzini <>

f5022a13 11/12/2012 06:02 pm Paolo Bonzini

aio: fix aio_ctx_prepare with idle bottom halves

Commit ed2aec4867f0d5f5de496bb765347b5d0cfe113d changed the return
value of aio_ctx_prepare from false to true when only idle bottom
halves are available. This broke PC old-style DMA, which uses them.
Fix this by making aio_ctx_prepare return true only when non-idle...

9e11908f 11/12/2012 05:44 pm Peter Maydell

dma: Define dma_context_memory and use in sysbus-ohci

Define a new global dma_context_memory which is a DMAContext corresponding
to the global address_space_memory AddressSpace. This can be used by
sysbus peripherals like sysbus-ohci which need to do DMA....

dd72fdd0 11/12/2012 05:44 pm Paolo Bonzini

virtio-scsi: use dma_context_memory

Until address_space_rw was introduced, NULL was accepted as a
placeholder for DMA with no IOMMU (to address_space_memory).

This does not work anymore, and dma_context_memory needs to
be specified explicitly.

Signed-off-by: Paolo Bonzini <>

4003e24f 11/12/2012 05:42 pm Hannes Reinecke

megasas: Correct target/lun mapping

The structure to reference a logical drive has an unused field,
which can be used to carry the lun ID. This enabled seabios to
establish the proper target/LUN mapping.

Cc: Paolo Bonzini <>
Cc: Gerd Hoffmann <>...

c8dcb531 11/12/2012 04:00 pm Paolo Bonzini

scsi: do not return short responses for emulated commands

The inquiry command, for the case of VPD=1, was returning short
responses; the number of returned bytes was just the number of bytes
in the request, without padding to the specified allocation length...

cd41a671 11/12/2012 04:00 pm Paolo Bonzini

virtio-scsi: factor checks for VIRTIO_SCSI_S_DRIVER_OK when reporting events

Suggested by Laszlo Ersek.

Signed-off-by: Paolo Bonzini <>

b5232e90 11/12/2012 04:00 pm Paolo Bonzini

scsi: remove superfluous call to scsi_device_set_ua

Suggested by Laszlo Ersek.

Signed-off-by: Paolo Bonzini <>

346a3017 11/12/2012 04:00 pm Paolo Bonzini

megasas: do not include block_int.h

Signed-off-by: Paolo Bonzini <>

accfeb2d 11/12/2012 04:00 pm Paolo Bonzini

scsi-disk: flush cache after disabling it

SBC says that "if an application client changes the WCE bit from one to
zero via a MODE SELECT command, then the device server shall write
any data in volatile cache to non-volatile medium before completing
the command"....

fc6467ea 11/12/2012 03:38 pm Paolo Bonzini

nbd: fix nbd_server_stop crash when no server was running

This failed on the new assertion of qemu_set_fd_handler2:

qemu-system-x86_64: /home/pbonzini/work/upstream/qemu/iohandler.c:60: qemu_set_fd_handler2: Assertion `fd >= 0' failed.

Signed-off-by: Paolo Bonzini <>

e6444734 11/12/2012 03:38 pm Paolo Bonzini

nbd: force read-only export for read-only devices

This is the desired behavior for HMP, but it is a better choice for QMP as well.

Signed-off-by: Paolo Bonzini <>

17b6be4a 11/12/2012 03:38 pm Paolo Bonzini

nbd: disallow nbd-server-add before nbd-server-start

It works nicely with the QMP commands, but it adds useless complication
with HMP. In particular, see the following:

(qemu) nbd_server_add -w scsi0-hd0
(qemu) nbd_server_start -a localhost:10809...
4057725f 11/12/2012 03:38 pm Paolo Bonzini

hmp: add NBD server commands

Signed-off-by: Paolo Bonzini <>

1d7d2a9d 11/12/2012 03:38 pm Paolo Bonzini

nbd: accept URIs

The URI syntax is consistent with the Gluster syntax. Export names
are specified in the path, preceded by one or more (otherwise unused)
slashes.

Signed-off-by: Paolo Bonzini <>

7e7f4a0e 11/12/2012 12:33 pm Paolo Bonzini

qemu-nbd: initialize main loop before block layer

qemu-nbd was broken because they initialized the block layer while
qemu_aio_context was still NULL.

Signed-off-by: Paolo Bonzini <>

d04b0bbb 11/12/2012 12:33 pm Paolo Bonzini

nbd: accept relative path to Unix socket

Adding the "is_unix" member now will simplify the parsing of NBD URIs.

Signed-off-by: Paolo Bonzini <>

3c5645fa 11/11/2012 05:06 pm Kirill Batuzov

tcg: properly check that op's output needs to be synced to memory

Fix typo introduced in b3a1be87bac3a6aaa59bb88c1410f170dc9b22d5.

Reported-by: Ruslan Savchenko <>
Signed-off-by: Kirill Batuzov <>
Signed-off-by: Aurelien Jarno <>

7c2c3ea3 11/11/2012 05:05 pm Eric Johnson

target-mips: Fix seg fault for LUI when MIPS_DEBUG_DISAS==1.

The call to gen_logic_imm for OPC_LUI passes -1 for rs. This
causes the MIPS_DEBUG statement to seg fault due to the deference
of regnames[rs]. This patch fixes that.

Signed-off-by: Eric Johnson <>...

0af10c86 11/10/2012 03:49 pm Blue Swirl

target-i386: avoid using cpu_single_env

Pass around CPUArchState instead of using global cpu_single_env.

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

4d4d9b3a 11/10/2012 03:49 pm Blue Swirl

m48t59: remove unused m48t59_set_addr

Signed-off-by: Blue Swirl <>

e62774c4 11/10/2012 03:49 pm Blue Swirl

sun4c: remove unused functions

Signed-off-by: Blue Swirl <>

036208c9 11/10/2012 03:49 pm Blue Swirl

slirp: remove unused function u_sleep

Signed-off-by: Blue Swirl <>

f4359b9f 11/10/2012 03:49 pm Blue Swirl

disas: avoid using cpu_single_env

Pass around CPUArchState instead of using global cpu_single_env.

Signed-off-by: Blue Swirl <>
Acked-by: Richard Henderson <>
Acked-by: Aurelien Jarno <>
Acked-by: Guan Xuetao <>

48405526 11/10/2012 03:49 pm Blue Swirl

kvm: avoid using cpu_single_env

Pass around CPUArchState instead of using global cpu_single_env.

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

447b3b60 11/10/2012 03:49 pm Blue Swirl

target-unicore32: avoid using cpu_single_env

Pass around CPUArchState instead of using global cpu_single_env.

Signed-off-by: Blue Swirl <>
Acked-by: Guan Xuetao <>
Reviewed-by: Andreas Färber <>

0c4fabea 11/10/2012 03:49 pm Blue Swirl

target-xtensa: avoid using cpu_single_env

Pass around CPUArchState instead of using global cpu_single_env.

Signed-off-by: Blue Swirl <>
Acked-by: Max Filippov <>
Reviewed-by: Andreas Färber <>

a9523d14 11/10/2012 03:49 pm Catalin Patulea

tests/tcg: new test for i386 FPREM and FPREM1

This is setting the stage for a cleanup of FPREM and FPREM1 helpers while being
sure that they behave same as bare metal.

The test constructs operands using combinations of corner cases for the
floating-point bitfields and prints operands, result and FPU status word for...

7ea692b2 11/10/2012 03:24 pm Jan Kiszka

memory: Don't dump disabled regions

This makes "info mtree" output readable again.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

22bde714 11/10/2012 02:30 pm Jan Kiszka

memory: Reintroduce dirty flag to optimize changes on disabled regions

Cirrus is triggering this, e.g. during Win2k boot: Changes only on
disabled regions require no topology update when transaction depth drops
to 0 again.

Signed-off-by: Jan Kiszka <>...

253ecf83 11/10/2012 02:28 pm Stefan Weil

qemu-timer: Fix compilation for non-POSIX hosts

A compiler warning is caused by the unused local function reinit_timers
on non-POSIX hosts. Include that function only for POSIX hosts.

Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

1f202568 11/10/2012 02:26 pm BALATON Zoltan

vmware_vga: Add back some info in local state partially reverting aa32b38c

Keep saving display surface parameters at init and using these cached
values instead of getting them when needed. Not sure why this is
needed (maybe due to the interaction with the vga device) but not...

5c61afec 11/10/2012 02:25 pm Jan Kiszka

kvmvapic: Fix TB invalidation after instruction patching

Since 0b57e287, cpu_memory_rw_debug already triggers a TB invalidation.
As it doesn't (and cannot) set is_cpu_write_access=1 but "consumes" the
currently executed TB, the tb_invalidate_phys_page_range call from...

9d153047 11/09/2012 10:09 am Gerd Hoffmann

ehci: fix migration

Commit 5010d4dc618b6b8e7c21129c487c06f6493f71fc reorganized vmstate to
split core + pci, but got two little details wrong. Fix them.

Signed-off-by: Gerd Hoffmann <>

616b5d53 11/09/2012 09:27 am David Gibson

xhci: Fix some DMA host endian bugs

The xhci device does correct endian switches on the results of some DMAs
but not all. In particular, there are many DMAs of what are essentially
arrays of 32-bit integers which never get byteswapped. This causes them...

e696b1da 11/08/2012 07:41 pm Hans de Goede

ehci: Add support for packets with both data and an error status

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

9b8251c5 11/08/2012 07:41 pm Hans de Goede

xhci: Add support for packets with both data and an error status

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

ffd8a97f 11/08/2012 07:41 pm Hans de Goede

usb/combined-packet: Move freeing of combined to usb_combined_packet_remove()

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

9a77a0f5 11/08/2012 07:41 pm Hans de Goede

usb: split packet result into actual_length + status

Since with the ehci and xhci controllers a single packet can be larger
then maxpacketsize, it is possible for the result of a single packet
to be both having transferred some data as well as the transfer to have...

e94ca437 11/08/2012 07:41 pm Hans de Goede

usb-redir: Allow packets to have both data and an error-status

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

01e26b0e 11/08/2012 07:41 pm Hans de Goede

ehci: Get rid of the magical PROC_ERR status

Instead make ehci_execute and ehci_fill_queue return the again value.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

b8c6a5d9 11/08/2012 06:42 pm Peter Crosthwaite

microblaze: translate.c: Fix swaph decoding

The swaph instruction was not decoding correctly. s/1e1/1e2 on the
9 LSBs on the instruction decode.

Reported-by: David Holsgrove <>
Signed-off-by: Peter Crosthwaite <>...

c878da3b 11/06/2012 02:37 am malc

tcg/ppc32: Use trampolines to trim the code size for mmu slow path accessors

mmu access looks something like:

<check tlb>
if miss goto slow_path
<fast path>
done:
...

; end of the TB
slow_path:

 mr r3, r27         ; move areg0 to r3
                    ; (r3 holds the first argument for all the PPC32 ABIs)...

2592c59a 11/06/2012 02:37 am Paolo Bonzini

tools: initialize main loop before block layer

Tools were broken because they initialized the block layer while
qemu_aio_context was still NULL.

Reported-by: malc <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: malc <>

d9a86569 11/05/2012 12:54 pm Gerd Hoffmann

spice: switch to pixman

Switch over spice-display.c to use the pixman library
instead of the home-grown pflib bits.

Signed-off-by: Gerd Hoffmann <>

365b1e9e 11/05/2012 12:54 pm Gerd Hoffmann

pflib: unused, remove it.

Replaced by pixman library.

Signed-off-by: Gerd Hoffmann <>

bdd4df33 11/05/2012 12:54 pm Gerd Hoffmann

spice: fix initialization order

Register displaychangelistener last, after spice is fully initialized,
otherwise we may hit NULL pointer dereferences when qemu starts calling
our callbacks.

Commit e250d949feb1334828f27f0d145c35f29c4b7639 triggers this bug....

511aefb0 11/05/2012 12:49 pm Alon Levy

hw/qxl: qxl_send_events: nop if stopped

Added a trace point for easy logging.

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=870972

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

958c2bce 11/05/2012 12:49 pm Gerd Hoffmann

qxl: fix cursor reset

When resetting the qxl cursor notify the qemu displaystate too.

Signed-off-by: Gerd Hoffmann <>

e32c25b5 11/05/2012 12:49 pm Gerd Hoffmann

qxl: call dpy_gfx_resize when entering vga mode

When entering vga mode the display size likely changes,
notify all displaychangelisteners about this.

Probably went unnoticed for a while as one if the first
things the guest does after leaving qxl native mode and...

48f4ba67 11/05/2012 12:49 pm Alon Levy

hw/qxl: guest bug on primary create with stride %4 != 0

Due to usage of pixman for rendering on all spice surfaces we have
pixman's requirement that the stride be word aligned. A guest not
honoring that can crash spice and qemu with it due to failure to create...

1cfd981f 11/05/2012 09:02 am Blue Swirl

target-mips: use ULL for 64 bit constants

Fix build on a 32 bit host:
CC mips-softmmu/target-mips/dsp_helper.o
/src/qemu/target-mips/dsp_helper.c: In function 'helper_dextr_rs_w':
/src/qemu/target-mips/dsp_helper.c:3556: error: integer constant is too large for 'long' type...

30ea8339 11/04/2012 11:13 pm Anthony Liguori

build: pthread_atfork() needs include of pthread.h

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

ed224a56 11/03/2012 06:17 pm malc

tcg/ppc: ld/st optimization

Signed-off-by: malc <>

b51d7b2e 11/03/2012 03:26 pm BALATON Zoltan

vmware_vga: Allow simple drivers to work without using the fifo

Postpone stopping the dirty log to the point where the command fifo is
configured to allow drivers which don't use the fifo to work too.
(Without this the picture rendered into the vram never got to the...

5b9575c8 11/03/2012 03:26 pm BALATON Zoltan

vmware_vga: Return a value for FB_SIZE before the device is enabled

According to the documentation drivers using this device should read
FB_SIZE before enabling the device to know what memory to map. This
would not work if we return 0 before enabled. The docs also mention...

aa32b38c 11/03/2012 03:26 pm BALATON Zoltan

vmware_vga: Remove duplicated info from local state

Removed info from vmsvga_state that is available from elsewhere and
thus was duplicated here unnecessarily.

Signed-off-by: BALATON Zoltan <>
Signed-off-by: Blue Swirl <>

0d793797 11/03/2012 03:26 pm BALATON Zoltan

vmware_vga: Coding style cleanup

Fix coding style as suggested by checkpatch.pl

Signed-off-by: BALATON Zoltan <>
Signed-off-by: Blue Swirl <>

ef84755e 11/03/2012 02:55 pm Blue Swirl

Merge branch 'trivial-patches' of git://github.com/stefanha/qemu

  • 'trivial-patches' of git://github.com/stefanha/qemu:
    pc: Drop redundant test for ROM memory region
    exec: make some functions static
    target-ppc: make some functions static
    ppc: add missing static...
b76f0d8c 11/03/2012 11:44 am Yeongkyoon Lee

tcg: Optimize qemu_ld/st by generating slow paths at the end of a block

Add optimized TCG qemu_ld/st generation which locates the code of TLB miss
cases at the end of a block after generating the other IRs.
Currently, this optimization supports only i386 and x86_64 hosts....

fdbb84d1 11/03/2012 11:44 am Yeongkyoon Lee

tcg: Add extended GETPC mechanism for MMU helpers with ldst optimization

Add GETPC_EXT which is used by MMU helpers to selectively calculate the code
address of accessing guest memory when called from a qemu_ld/st optimized code
or a C function. Currently, it supports only i386 and x86-64 hosts....

32761257 11/03/2012 11:44 am Yeongkyoon Lee

configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization

Enable CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization only when
a host is i386 or x86_64.

Signed-off-by: Yeongkyoon Lee <>
Signed-off-by: Blue Swirl <>

1073bfd8 11/03/2012 11:35 am Peter Maydell

target-m68k/m68k-semi.c: Log when put_user for returning values fails

Abstract out the use of put_user for returning semihosting call results,
so that we can log when a guest erroneously attempts a semihosting call
with an unwritable argument block.

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

7ba6c104 11/03/2012 11:35 am Peter Maydell

target-m68k/m68k-semi: Handle get_user failure

Handle failure of get_user accessing the semihosting
argument block, rather than simply ignoring the failures.

Signed-off-by: Peter Maydell <>
Signed-off-by: Blue Swirl <>

aed91c1b 11/03/2012 11:35 am Meador Inge

m68k: Return semihosting errno values correctly

Fixing a simple typo, s/errno/err/, that caused
the error status from GDB semihosted system calls
to be returned incorrectly.

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

49cf5728 11/02/2012 08:07 pm Paolo Bonzini

vl: delay thread initialization after daemonization

Commit ac4119c (chardev: Use timer instead of bottom-half to postpone
open event, 2012-10-12) moved the alarm timer initialization to an earlier
point but failed to consider that it depends on qemu_init_main_loop....

1f001dc7 11/02/2012 08:07 pm Paolo Bonzini

compiler: support Darwin weak references

Weakrefs only tell you if the symbol was defined elsewhere, so you
need a further check at runtime to pick the default definition
when needed.

This could be automated by the compiler, but it does not do it.

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

c166cb72 11/02/2012 08:07 pm Paolo Bonzini

semaphore: implement fallback counting semaphores with mutex+condvar

OpenBSD and Darwin do not have sem_timedwait. Implement a fallback
for them.

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

c8122c35 11/02/2012 08:07 pm Paolo Bonzini

qemu-timer: reinitialize timers after fork

Timers are not inherited by the child of a fork(2), so just use
pthread_atfork to reinstate them after daemonize.

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

f9ab4654 11/02/2012 08:07 pm Paolo Bonzini

vl: unify calls to init_timer_alarm

init_timer_alarm was being called twice. This is not needed.

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

2a0dfd00 11/02/2012 08:06 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/migr-coroutine' into staging

Signed-off-by: Anthony Liguori <>

  • bonzini/migr-coroutine:
    migration: move process_incoming_migration to a coroutine
    migration: handle EAGAIN while reading QEMUFile...