Statistics
| Branch: | Revision:

root @ d82287de

# Date Author Comment
d5a103cd 01/05/2013 10:00 pm Richard Henderson

target-s390: Reorg exception handling

Make the user path more like the system path. Prepare for more kinds
of runtime exceptions. Rename ILC to ILEN to make it clear that we
want to pass around a full instruction length, rather than a "code"
that happens to be stored one bit left in a larger field....

d82287de 01/05/2013 10:00 pm Richard Henderson

target-s390: Convert ADD HALFWORD

Signed-off-by: Richard Henderson <>

6ee77b16 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix gdbstub

The real gdb protocol doesn't split out pc or cc as real registers.
Those are pseudos that are extracted as needed from the PSW. Don't
modify env->cc_op during read -- that way lies heisenbugs.

Fill in the XXX for the fp registers....

063eb0f3 01/05/2013 10:00 pm Richard Henderson

target-s390: Add missing temp_free in gen_op_calc_cc

Signed-off-by: Richard Henderson <>

431253c2 01/05/2013 10:00 pm Richard Henderson

target-s390: Use TCG registers for FPR

At the same time, tidy other usages of tcg_gen_deposit_i64.
In some cases we can "type cast" rather than extend, and in
others we can allow tcg_gen_deposit_i64 itself to optimize
the HOST_LONG_BITS==32 case.

Signed-off-by: Richard Henderson <>

7e68da2a 01/05/2013 10:00 pm Richard Henderson

target-s390: Register helpers

Which highlights a lot of cc helpers that no longer exist.

Signed-off-by: Richard Henderson <>

afd43fec 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix SACF exit

DISAS_EXCP is exit via exception; we wanted DISAS_JUMP.
This matters when we start cleaning up the TB exit paths.

Signed-off-by: Richard Henderson <>

9d126faf 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix BCR

There were are two exit paths for which we forgot to
copy s->cc_op back to the tcg register.

Signed-off-by: Richard Henderson <>

2f22e2ec 01/05/2013 10:00 pm Richard Henderson

target-s390: Tidy unconditional BRCL

Yes, we're about to rewrite all of this, but having this unconditional
jump recompute cc_op is a large source of "false diff errors" when
trying to examine before and after dumps.

Signed-off-by: Richard Henderson <>

51855ecf 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix PSW_MASK handling

We were treating psw.mask as the 32-bit quantity it is in ESA mode.
In particular, the CC field was at the wrong place.

Signed-off-by: Richard Henderson <>

ad044d09 01/05/2013 10:00 pm Richard Henderson

target-s390: Add format based disassassmbly infrastructure

Signed-off-by: Richard Henderson <>

3fde06f5 01/05/2013 10:00 pm Richard Henderson

target-s390: Split out disas_jcc

Lots of duplicated code replaced with a couple of tables. We no longer
attempt to manually invert the logic operation: the comments now match
the code. In the fully general test, constant propagate (1 << (3 - cc))
into (8 >> cc)....

0fd81617 01/05/2013 10:00 pm Richard Henderson

target-s390: Disassemble more z10 and z196 opcodes

Also fix disassembly for COMPARE AND BRANCH. The table must be
sorted by primary opcode, and several were out of place.

Signed-off-by: Richard Henderson <>

79be7c7b 01/05/2013 10:00 pm Richard Henderson

target-s390: Fix disassembly of cpsdr

Signed-off-by: Richard Henderson <>

549db5c3 01/05/2013 12:14 pm Stefan Weil

hw/i386: Fix broken build for non POSIX hosts

pc-testdev.c cannot be compiled with MinGW (and other non POSIX hosts):

CC    i386-softmmu/hw/i386/../pc-testdev.o
qemu/hw/i386/../pc-testdev.c:38:22: warning: sys/mman.h: file not found
qemu/hw/i386/../pc-testdev.c: In function ‘test_flush_page’:...
1e397ead 01/05/2013 12:12 pm Richard Henderson

softfloat: Implement uint64_to_float128

Reviewed-by: Peter Maydell <>
Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

17ed2293 01/05/2013 12:12 pm Richard Henderson

softfloat: Fix uint64_to_float64

The interface to normalizeRoundAndPackFloat64 requires that the
high bit be clear. Perform one shift-right-and-jam if needed.

Reviewed-by: Peter Maydell <>
Signed-off-by: Richard Henderson <>...

a4c7ecd8 01/04/2013 09:25 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    spice: drop incorrect vm_change_state_handler() opaque
    linux-user/syscall.c: remove forward declarations
    hw/mcf5206: Reduce size of lookup table
    Remove --sparc_cpu option from the configure list...
346c1f8b 01/04/2013 09:25 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/testdev.1' into staging

  • kraxel/testdev.1:
    pc: remove bochs bios debug ports
    hw: Add test device for unittests execution
    add isa-debug-exit device.
    switch debugcon to memory api

Signed-off-by: Anthony Liguori <>

72e5b276 01/04/2013 09:24 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/acpi.2' into staging

  • kraxel/acpi.2:
    apci: assign memory regions to ich9 lpc device
    apci: assign memory regions to piix4 acpi device
    acpi: autoload dsdt
    configure: also symlink *.aml files

Signed-off-by: Anthony Liguori <>

715857cb 01/04/2013 03:38 pm Stefan Weil

hw/mcf5206: Reduce size of lookup table

This typically reduces the size from 512 bytes to 128 bytes.

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

586b0bef 01/04/2013 03:38 pm John Spencer

linux-user/syscall.c: remove forward declarations

instead use the correct headers that define these functions.

Requested-by: Stefan Weil <>
Signed-off-by: John Spencer <>
Reviewed-by: Amos Kong <>...

bfb82a28 01/04/2013 03:38 pm Stefan Hajnoczi

spice: drop incorrect vm_change_state_handler() opaque

The spice_server pointer is a global variable and
vm_change_state_handler() therefore does not use its opaque parameter.

The vm change state handler is added with a pointer to the spice_server
pointer. This is useless and we probably would not want 2 levels of...

e7b1d0ea 01/04/2013 03:38 pm Markus Armbruster

pc_sysfw: Check for qemu_find_file() failure

pc_fw_add_pflash_drv() ignores qemu_find_file() failure, and happily
creates a drive without a medium.

When pc_system_flash_init() asks for its size, bdrv_getlength() fails
with -ENOMEDIUM, which isn't checked either. It fails relatively...

e2af7a4d 01/04/2013 03:38 pm Stefan Weil

pseries: Remove unneeded include statement (fixes MinGW builds)

sys/mman.h is not needed (tested on Linux) and unavailable for MinGW,
so remove it.

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

c242222c 01/04/2013 03:38 pm 陳韋任 (Wei-Ren Chen)

Remove --sparc_cpu option from the configure list

commit 9b9c37c36439ee0452632253dac7a31897f27f70 always assume sparcv9,
the others are no longer supported. Remove --sparc_cpu option from the
configure list.

Signed-off-by: Chen Wei-Ren <>...

9ee59f34 01/04/2013 10:11 am Gerd Hoffmann

pc: remove bochs bios debug ports

Prehistoric leftover, zap it. We poweroff via acpi these days.

And having a port (0x501,0x502) where any random guest write will make
qemu exit -- with no way to turn it off -- is a bad joke anyway.

Signed-off-by: Gerd Hoffmann <>

ee0cc541 01/04/2013 10:11 am Lucas Meneghel Rodrigues

hw: Add test device for unittests execution

Add a test device which supports the kvmctl ioports,
so one can run the KVM unittest suite.

Intended Usage:

qemu-system-x86_64 -nographic \
-device pc-testdev \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \...

e8ba1ce9 01/04/2013 09:51 am Gerd Hoffmann

switch debugcon to memory api

Also some QOM glue while being at it.

Signed-off-by: Gerd Hoffmann <>

bb355b18 01/04/2013 09:51 am Gerd Hoffmann

add isa-debug-exit device.

When present it makes qemu exit on any write.
Mapped to port 0x501 by default.

Without this patch Anthony doesn't allow me to
remove the bochs bios debug ports because his
test suite uses this.

Signed-off-by: Gerd Hoffmann <>

5acc2ec0 01/04/2013 09:51 am Gerd Hoffmann

configure: also symlink *.aml files

Signed-off-by: Gerd Hoffmann <>

f7e4dd6c 01/04/2013 09:51 am Gerd Hoffmann

acpi: autoload dsdt

Signed-off-by: Gerd Hoffmann <>

56e5b2a1 01/04/2013 09:51 am Gerd Hoffmann

apci: assign memory regions to piix4 acpi device

Get rid of get_system_io() usage.

Signed-off-by: Gerd Hoffmann <>

503b19fc 01/04/2013 09:51 am Gerd Hoffmann

apci: assign memory regions to ich9 lpc device

Get rid of get_system_io() usage.

Signed-off-by: Gerd Hoffmann <>

25bbf61e 01/03/2013 08:53 pm Gerd Hoffmann

pty: unbreak libvirt

Commit 586502189edf9fd0f89a83de96717a2ea826fdb0 breaks libvirt pty
support because it tried to figure the pts name from stderr output.

Fix this by moving the label to the end of the line, this way the
libvirt parser does still recognise the message. libvirt looks...

ef4929fb 01/03/2013 03:13 pm Stefan Hajnoczi

dataplane: use linux-headers/ for virtio includes

The hw/dataplane/vring.c code includes linux/virtio_ring.h. Ensure that
we use linux-headers/ instead of the system-wide headers, which may be
out-of-date on older distros.

This resolves the following build error on Debian 6:...

dbd99ae3 01/02/2013 09:33 pm Stefan Weil

configure: Write new file "config-all-disas.mak" when running configure

Incremental builds added new lines to that file each time when configure
was run.

Now a new file with a comment line is written.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

50348333 01/02/2013 09:33 pm Stefan Weil

tci: Fix broken builds with TCG interpreter

TCI no longer compiled after commit 76cad71136b7eb371cf2a2a4e1621cfe8d9c769a.

The TCI disassembler depends on data structures which are different for
each QEMU target, so it cannot be compiled as a universal-obj today....

74e91370 01/02/2013 09:32 pm Michael Tokarev

savevm.c: cleanup system includes

savevm.c suffers from the same problem as some other files.
Some years ago savevm.c was created from vl.c, moving some
code from there into a separate file. At that time, all
includes were just copied from vl.c to savevm.c, without...

ab51b1d5 01/02/2013 09:32 pm Michael Tokarev

disallow -daemonize usage of stdio (curses display, -nographic, -serial stdio etc)

Curses display requires stdin/out to stay on the terminal,
so -daemonize makes no sense in this case. Instead of
leaving display uninitialized like is done since 995ee2bf469de6bb,...

217da7fd 01/02/2013 08:19 pm Anthony Liguori

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

  • stefanha/block:
    sheepdog: pass oid directly to send_pending_req()
    sheepdog: don't update inode when create_and_write fails
    block/raw-win32: Fix compiler warnings (wrong format specifiers)...
9a8a5ae6 01/02/2013 07:23 pm Stefan Weil

tcg: Remove unneeded assertion

Commit 7f6f0ae5b95adfa76e10eabe2c34424a955fd10c added two assertions.

One of these assertions is not needed:
The pointer ts is never NULL because it is initialized with the
address of an array element.

Reviewed-by: Richard Henderson <>...

d6b1ef89 01/02/2013 05:09 pm Liu Yuan

sheepdog: pass oid directly to send_pending_req()

Cc: MORITA Kazutaka <>
Cc: Kevin Wolf <>
Signed-off-by: Liu Yuan <>
Reviewed-by: MORITA Kazutaka <>
Signed-off-by: Stefan Hajnoczi <>

bd751f22 01/02/2013 05:08 pm Liu Yuan

sheepdog: don't update inode when create_and_write fails

For the error case such as SD_RES_NO_SPACE, we shouldn't update the inode bitmap
to avoid the scenario that the object is allocated but wasn't created at the
server side. This will result in VM's IO error on the failed object....

fccedc62 01/02/2013 05:08 pm Stefan Weil

block/raw-win32: Fix compiler warnings (wrong format specifiers)

Commit fbcad04d6bfdff937536eb23088a01a280a1a3af added fprintf statements
with wrong format specifiers.

GetLastError() returns a DWORD which is unsigned long, so %lu must be used.

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

79443397 01/02/2013 05:08 pm liguang

qemu-img: report size overflow error message

qemu-img will complain when qcow or qcow2
size overflow for 64 bits, report the right
message in this condition.

$./qemu-img create -f qcow2 /tmp/foo 0x10000000000000000
before change:
qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for...

37edbf7e 01/02/2013 05:08 pm liguang

cutils: change strtosz_suffix_unit function

if value to be translated is larger than INT64_MAX,
this function will not be convenient for caller to
be aware of it, so change a little for this.

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

9e72c450 01/02/2013 05:08 pm Alexey Zaytsev

virtio-blk: Return UNSUPP for unknown request types

Currently, all unknown requests are treated as VIRTIO_BLK_T_IN

Signed-off-by: Alexey Zaytsev <>
Signed-off-by: Stefan Hajnoczi <>

392808b4 01/02/2013 05:08 pm Stefan Hajnoczi

virtio-blk: add x-data-plane=on|off performance feature

The virtio-blk-data-plane feature is easy to integrate into
hw/virtio-blk.c. The data plane can be started and stopped similar to
vhost-net.

Users can take advantage of the virtio-blk-data-plane feature using the...

e72f66a0 01/02/2013 05:08 pm Stefan Hajnoczi

dataplane: add virtio-blk data plane code

virtio-blk-data-plane is a subset implementation of virtio-blk. It only
handles read, write, and flush requests. It does this using a dedicated
thread that executes an epoll(2)-based event loop and processes I/O...

8a873ba7 01/02/2013 04:59 pm Stefan Hajnoczi

virtio-blk: restore VirtIOBlkConf->config_wce flag

Two slightly different versions of a patch to conditionally set
VIRTIO_BLK_F_CONFIG_WCE through the "config-wce" qdev property have been
applied (ea776abca and eec7f96c2). David Gibson
<> noticed that the "config-wce"...

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

test-iov: add iov_discard_front/back() testcases

Signed-off-by: Stefan Hajnoczi <>

530c0bbd 01/02/2013 04:58 pm Stefan Hajnoczi

iov: add qemu_iovec_concat_iov()

The qemu_iovec_concat() function copies a subset of a QEMUIOVector. The
new qemu_iovec_concat_iov() function does the same for a iov/cnt pair.

It is easy to define qemu_iovec_concat() in terms of
qemu_iovec_concat_iov(). The existing code is mostly unchanged, except...

d0277635 01/02/2013 04:58 pm Stefan Hajnoczi

iov: add iov_discard_front/back() to remove data

The iov_discard_front/back() functions remove data from the front or
back of the vector. This is useful when peeling off header/footer
structs.

Signed-off-by: Stefan Hajnoczi <>

3e9ec521 01/02/2013 04:58 pm Stefan Hajnoczi

dataplane: add Linux AIO request queue

The IOQueue has a pool of iocb structs and a function to add new
read/write requests. Multiple requests can be added before calling the
submit function to actually tell the host kernel to begin I/O. This
allows callers to batch requests and submit them in one go....

71973b04 01/02/2013 04:56 pm Stefan Hajnoczi

dataplane: add event loop

Outside the safety of the global mutex we need to poll on file
descriptors. I found epoll(2) is a convenient way to do that, although
other options could replace this module in the future (such as an
AioContext-based loop or glib's GMainLoop)....

88807f89 01/02/2013 04:55 pm Stefan Hajnoczi

dataplane: add virtqueue vring code

The virtio-blk-data-plane cannot access memory using the usual QEMU
functions since it executes outside the global mutex and the memory APIs
are this time are not thread-safe.

This patch introduces a virtqueue module based on the kernel's vhost...

185ecf40 01/02/2013 04:50 pm Stefan Hajnoczi

dataplane: add host memory mapping code

The data plane thread needs to map guest physical addresses to host
pointers. Normally this is done with cpu_physical_memory_map() but the
function assumes the global mutex is held. The data plane thread does
not touch the global mutex and therefore needs a thread-safe memory...

4065742a 01/02/2013 04:31 pm Stefan Hajnoczi

raw-posix: add raw_get_aio_fd() for virtio-blk-data-plane

The raw_get_aio_fd() function allows virtio-blk-data-plane to get the
file descriptor of a raw image file with Linux AIO enabled. This
interface is really a layering violation that can be resolved once the...

583f6e7b 01/02/2013 04:31 pm Stefan Hajnoczi

configure: add CONFIG_VIRTIO_BLK_DATA_PLANE

The virtio-blk-data-plane feature only works with Linux AIO. Therefore
add a ./configure option and necessary checks to implement this
dependency.

Signed-off-by: Stefan Hajnoczi <>

34daffa0 01/02/2013 04:01 pm Anthony Liguori

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

  • qemu-kvm/uq/master:
    qemu-kvm/pci-assign: 64 bits bar emulation
    target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

Signed-off-by: Anthony Liguori <>

079944e6 01/02/2013 04:01 pm Anthony Liguori

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

pci,virtio

This optimizes MSIX handling in virtio-pci.
Also included is pci express capability bugfix.

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

a97ff30e 01/02/2013 04:01 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/seabios-a810e4e' into staging

  • kraxel/seabios-a810e4e:
    Update seabios to a810e4e72a0d42c7bc04eda57382f8e019add901

Signed-off-by: Anthony Liguori <>

5928023c 01/01/2013 02:05 pm Stefan Weil

pflash_cfi01: Suppress warning when Linux probes for AMD flash

There are several ARM and MIPS boards which are manufactured with
either Intel (pflash_cfi01.c) or AMD (pflash_cfi02.c) flash memory.

The Linux kernel supports both and first probes for AMD flash which...

0f0b9398 01/01/2013 01:02 pm 陳韋任 (Wei-Ren Chen)

target-mips: Use EXCP_SC rather than a magic number

From the discussion on the ML [1], the exception limit defined by
magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the
magic number with EXCP_SC. Remove "#if 1 .. #endif" as well.

[1] http://lists.gnu.org/archive/html/qemu-devel/2012-11/msg03080.html...

c4aaba92 01/01/2013 12:55 pm Jovanovic, Petar

target-mips: Make repl_ph to sign extend to target-long

The immediate value is 9bits, should sign-extend to 16bits. The return value to
register should sign-extend to target_long, as Richard says, removing an
unnecessary cast works fun.

Signed-off-by: Dongxue Zhang <>...

fe65a1fa 01/01/2013 12:50 pm Dongxue Zhang

Fix my email address

Fix my email address, last time it's wrong.

Signed-off-by: Dongxue Zhang <>
Signed-off-by: Aurelien Jarno <>

79eb8392 01/01/2013 12:16 pm Stefan Weil

target-mips: Remove semicolon from macro definition

Macro RESTORE_FLUSH_MODE is similar to RESTORE_ROUNDING_MODE
but included a semicolon.

The code which uses that macro also includes a semicolon,
so the result was an empty statement.

Remove the superfluous semicolon from the macro definition....

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....

a795ef8d 12/29/2012 02:27 pm Brad Smith

Fix semaphores fallback code

As reported in bug 1087114 the semaphores fallback code is broken which
results in QEMU crashing and making QEMU unusable.

This patch is from Paolo.

This needs to be back ported to the 1.3 stable tree as well.

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

753d99d3 12/29/2012 02:21 pm Richard Henderson

tcg-hppa: Fix typo in brcond2

Reported-by: Stuart Brady <>
Signed-off-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

76a347e1 12/29/2012 02:21 pm Richard Henderson

tcg-i386: Perform cmov detection at runtime for 32-bit.

Existing compile-time detection is spotty at best. Convert
it all to runtime detection instead.

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

afcb92be 12/29/2012 02:14 pm Richard Henderson

tcg: Add TCGV_IS_UNUSED_*

Cc: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

927fa909 12/28/2012 06:11 pm Brad Smith

Disable semaphores fallback code for OpenBSD

Disable the semaphores fallback code for OpenBSD as modern OpenBSD
releases now have sem_timedwait().

Signed-off-by: Brad Smith <>
Signed-off-by: Blue Swirl <>

62054c06 12/28/2012 06:09 pm Alon Levy

usb/redirect.c: unbreak compilation due to include/char/char.h

Broken since:

commit 927d4878b0ff319ed87fed9363f314613b0a5ed9
Author: Paolo Bonzini <>
Date: Mon Dec 17 18:20:05 2012 +0100

softmmu: move remaining include files to include/ subdirectories...
4de63460 12/28/2012 06:08 pm Blue Swirl

Merge branch 'qom-cpu' of git://repo.or.cz/qemu/afaerber

  • 'qom-cpu' of git://repo.or.cz/qemu/afaerber:
    MAINTAINERS: Include X86CPU in CPU maintenance area
    cpu: Move kvm_run into CPUState
    cpu: Move kvm_state field into CPUState
    ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()...
70f8ee39 12/26/2012 11:49 am Michael S. Tsirkin

msix: expose access to masked/pending state

For use by poll handler.

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

89d62be9 12/26/2012 11:49 am Michael S. Tsirkin

virtio-pci: don't poll masked vectors

At the moment, when irqfd is in use but a vector is masked,
qemu will poll it and handle vector masks in userspace.
Since almost no one ever looks at the pending bits,
it is better to defer this until pending bits
are actually read....

812d2594 12/26/2012 11:49 am Knut Omang

pcie: Fix bug in pcie_ext_cap_set_next

Upper 16 bits of the PCIe Extended Capability Header was truncated during update,
also breaking pcie_add_capability.

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

bbef882c 12/26/2012 11:49 am Michael S. Tsirkin

msi: add API to get notified about pending bit poll

Update all users.

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

0a2a59d3 12/25/2012 02:37 pm Xudong Hao

qemu-kvm/pci-assign: 64 bits bar emulation

Enable 64 bits bar emulation.

Test pass with the current seabios which already support 64bit pci bars.

Signed-off-by: Xudong Hao <>
Reviewed-by: Alex Williamson <>...

a2685bcc 12/23/2012 11:30 pm Gleb Natapov

MAINTAINERS: Take over kvm maintenance

Replace Avi with myself as kvm maintainer.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Anthony Liguori <>

74880fe2 12/23/2012 10:38 pm Robert Schiele

configure: allow disabling pixman if not needed

When we build neither any system emulation targets nor the tools there
is actually no need for pixman library. In that case do not enforce
presence of that library on the system.

Reviewed-by: Andreas F=E4rber <>...

2915efbf 12/23/2012 10:37 pm Alex Horn

tmp105: Create API for TMP105 temperature sensor.

  • Define enum for TMP105 registers
  • Move tmp105_set() from I2C to TMP105 header
  • Document units and range of temperature as preconditions

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

eac236ea 12/23/2012 10:28 pm Lluís Vilanova

build: Use separate makefile for "trace/"

Reviewed-by: Paolo Bonzini <>
Signed-off-by: Lluís Vilanova <>
--
Changes in v2:

  • Do not depend on "qemu-timer-common.o".
  • Use "$(obj)" in rules to refer to the build sub-directory....
6265e4ff 12/23/2012 05:13 pm Jan Kiszka

win32: Switch thread abstraction to us TLS variable internally

We already depend on working __thread support for coroutines, so this
complication here is no longer needed.

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

57f26ae7 12/23/2012 05:11 pm Eduardo Habkost

target-i386: CPUID: return highest basic leaf if eax > cpuid_xlevel

This fixes a subtle bug. A bug that probably won't cause trouble for any
existing OS, but a bug anyway:

Intel SDM Volume 2, CPUID Instruction states:

Two types of information are returned: basic and extended function...

58650218 12/23/2012 05:11 pm Lei Li

qemu-char: Inherit ptys and improve output from -serial pty

Changes since V1:
- Avoid crashing since qemu_opts_id() may return null on some
systems according to Markus's suggestion.

When controlling a qemu instance from another program, it's
hard to know which serial port or monitor device is redirected...

501a7ce7 12/23/2012 01:40 am Andreas Färber

Merge branch 'master' of git://git.qemu.org/qemu into qom-cpu

Adapt header include paths.

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

36f25d25 12/22/2012 02:09 pm Max Filippov

target-xtensa: fix search_pc for the last TB opcode

Zero out tcg_ctx.gen_opc_instr_start for instructions representing the
last guest opcode in the TB.

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

3f124b68 12/22/2012 02:06 pm Liming Wang

net: add missing include file

To fix building error:

CC net/vde.o
net/vde.c: In function ‘vde_cleanup’:
net/vde.c:65:5: error: implicit declaration of function ‘qemu_set_fd_handler’ [-Werror=implicit-function-declaration]
net/vde.c:65:5: error: nested extern declaration of ‘qemu_set_fd_handler’ [-Werror=nested-externs]...

0c884d16 12/22/2012 02:06 pm 陳韋任 (Wei-Ren Chen)

translate-all.c: Use tb1->phys_hash_next directly in tb_remove

When tb_remove was first commited at fd6ce8f6, there were three different
calls pass different names to offsetof. In current codebase, the other two
calls are replaced with tb_page_remove. There is no need to have a general...
b2136140 12/22/2012 02:05 pm Stefan Weil

net: Add missing include statement (fix compiler warnings for MinGW)

These and some more compiler warnings were caused by a recent commit:

net/tap-win32.c:724: warning: no previous prototype for ‘tap_has_ufo’
net/tap-win32.c:729: warning: no previous prototype for ‘tap_has_vnet_hdr’...

4ad549e8 12/22/2012 02:04 pm Paolo Bonzini

xen: add missing include

xen-all needs to access CharDeviceState's filename field, so
it needs to include char/char.h.

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

ca273d58 12/22/2012 02:04 pm Paolo Bonzini

build: fix includes for VNC

vnc-tls.h is included by vnc.h, and it includes gnutls/gnutls.h.
Hence, GnuTLS header files are needed by all files that include
vnc.h, most notably qmp.c. Move these flags to QEMU_CFLAGS for
simplicity.

Reported-by: Peter Maydell <>...

bb5801f5 12/21/2012 03:53 pm Anthony Liguori

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

  • quintela/thread-20121220.next: (79 commits)
    migration: merge QEMUFileBuffered into MigrationState
    migration: fix qemu_get_fd for BufferedFile
    ram: refactor ram_save_block() return value...
b823ceaa 12/21/2012 12:09 am Juan Quintela

ram: refactor ram_save_block() return value

It could only return 0 if we only found dirty xbzrle pages that hadn't
changed (i.e. they were written with the same content). We don't care
about that case, it is the same than nothing dirty.

So now the return of the function is how much have it written, nothing...

e659586e 12/21/2012 12:09 am Paolo Bonzini

migration: fix qemu_get_fd for BufferedFile

Not really used, but nice to have it correct. :)

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Juan Quintela <>

9848a404 12/21/2012 12:09 am Juan Quintela

migration: merge QEMUFileBuffered into MigrationState

Avoid splitting the state of outgoing migration, more or less arbitrarily,
between two data structures. QEMUFileBuffered anyway is used only during
migration.

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