Statistics
| Branch: | Revision:

root @ c4f8e211

# Date Author Comment
41c01ee7 06/14/2011 01:36 pm Gerd Hoffmann

usb-linux: catch ENODEV in more places.

Factor out disconnect code (called when a device disappears) to a
separate function. Add a check for ENODEV errno to a few more places
to make sure we notice disconnects.

Signed-off-by: Gerd Hoffmann <>

439a97cc 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace mmio and usbsts

This patch starts adding trace support to ehci. It traces
updates of the status register (USBSTS), mmio access and
controller reset.

It also adds functions to set and clear status register bits
and puts them in use everywhere....

26d53979 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace state machine changes

Add functions to get and set the current state of the state machine,
add tracepoints there to trace state transitions. Add support for
traceing the queue heads and transfer descriptors as we look at them.

Drop a few DPRINTFs and all DPRINTF_ST lines, they are obsolete now....

dcbd0b5c 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: trace port state

Trace usb port operations (attach, detach, reset),
drop a few obsolete DPRINTF's.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

c4f8e211 06/14/2011 01:36 pm Gerd Hoffmann

usb-ehci: improve mmio tracing

Add a separate tracepoint to log how register values change in response
to a mmio write. Especially useful for registers which have read-only
or clear-on-write bits in them.

No change in behavior.

Signed-off-by: Gerd Hoffmann <>

5f04e368 06/13/2011 10:16 pm Peter Maydell

Changelog: Add explanatory note that this file is no longer updated

Add an explanatory note to the top of Changelog pointing at the
wiki and git history for changelogs for more recent releases.

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

0b862ced 06/13/2011 10:16 pm Peter Maydell

configure: Detect and don't try to use older libcurl

Older versions of libcurl don't have some of the features we try to
use, in particular curl_multi_setopt(). Check for this in the 'is
libcurl available?' configure test so we disable curl support if the...

caef55ed 06/11/2011 12:25 am Brad Hards

doc: Minor typo fix.

Thanks to agraf_, stefanha and Snader_LB for their IRC assistance.

Thanks to Markus Armbruster and Alexander Graf (again) for their
assistance with the second version of this patch. No patch is too
simple to test...

Signed-off-by: Brad Hards <>...

09716e45 06/11/2011 12:18 am Alexander Graf

sigfd: use pthread_sigmask

Qemu uses signalfd to figure out, if a signal occured without the need
to actually receive the signal. Instead, it can read from the fd to receive
its news.

Now, we obviously don't always have signalfd around. Especially not on...

44829396 06/10/2011 11:21 pm Edgar E. Iglesias

Merge remote branch 'rth/axp-next' into alpha-merge

  • rth/axp-next: (26 commits)
    target-alpha: Implement TLB flush primitives.
    target-alpha: Use a fixed frequency for the RPCC in system mode.
    target-alpha: Trap for unassigned and unaligned addresses....
1c532d92 06/10/2011 04:29 pm Edgar E. Iglesias

fsdev: Fix archs that dont use fsdev

Fix provided by: "Aneesh Kumar K.V" <>

Signed-off-by: Edgar E. Iglesias <>

924f766a 06/08/2011 08:16 pm Anthony Liguori

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

93e0597e 06/08/2011 08:15 pm Anthony Liguori

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

ac779fe2 06/08/2011 08:15 pm Anthony Liguori

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

Conflicts:
vl.c

13748cf4 06/08/2011 08:13 pm Anthony Liguori

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

fab5cf59 06/08/2011 12:56 pm Josh Durgin

rbd: allow configuration of rados from the rbd filename

The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]]
Each option is used to configure rados, and may be any Ceph option, or "conf".
The "conf" option specifies a Ceph configuration file to read....

51a13528 06/08/2011 12:56 pm Josh Durgin

rbd: check return values when scheduling aio

If scheduling fails, the number of outstanding I/Os must be correct,
or there will be a hang when waiting for everything to be flushed.

Reviewed-by: Christian Brunner <>
Reported-by: Stefan Hajnoczi <>...

30cdc48c 06/08/2011 12:56 pm Josh Durgin

rbd: Add bdrv_truncate implementation

Reviewed-by: Christian Brunner <>
Signed-off-by: Josh Durgin <>
Signed-off-by: Kevin Wolf <>

80fa3341 06/08/2011 12:56 pm Kevin Wolf

qcow2: Fix memory leaks in error cases

This fixes memory leaks that may be caused by I/O errors during L1 table growth
(can happen during save_vm) and in qemu-img check.

Signed-off-by: Kevin Wolf <>

d220894e 06/08/2011 12:56 pm Kevin Wolf

bdrv_img_create: Fix segfault

Block drivers that don't support creating images don't have a size option. Fail
gracefully instead of segfaulting when trying to access the option's value.

Signed-off-by: Kevin Wolf <>

99cce9fa 06/08/2011 12:56 pm Kevin Wolf

qemu-img create: Fix displayed default cluster size

When not specifying a cluster size on the command line, qemu-img printed
a cluster size of 0:

Formatting '/tmp/test.qcow2', fmt=qcow2 size=67108864
encryption=off cluster_size=0

This patch adds the default cluster size to the QEMUOptionParameter list, so...

d1f6fd8d 06/08/2011 12:56 pm Christoph Egger

block/raw-posix: get right partition size

use the correct way to get the size of a disk device or partition

From: Adam Hamsik <>
Signed-off-by: Christoph Egger <>
Signed-off-by: Kevin Wolf <>

ad32e9c0 06/08/2011 12:56 pm Josh Durgin

rbd: use the higher level librbd instead of just librados

librbd stacks on top of librados to provide access
to rbd images.

Using librbd simplifies the qemu code, and allows
qemu to use new versions of the rbd format
with few (if any) changes.

Reviewed-by: Christian Brunner <>...

69c38b8f 06/08/2011 11:39 am Kevin Wolf

ide/core: Remove explicit setting of BM_STATUS_INT

BM_STATUS_INT is automatically set during ide_set_irq(), there's no reason to
set it manually in addition.

There is even one case where the interrupt status bit was set, but no IRQ was
raised. This is when the PRD table was reached but there is more data to...

a6599793 06/08/2011 11:39 am Christoph Hellwig

block: clarify the meaning of BDRV_O_NOCACHE

Change BDRV_O_NOCACHE to only imply bypassing the host OS file cache,
but no writeback semantics. All existing callers are changed to also
specify BDRV_O_CACHE_WB to give them writeback semantics.

Signed-off-by: Christoph Hellwig <>...

16372ff0 06/08/2011 11:39 am Alexander Graf

vmdk: fix endianness bugs

The vmdk code is sloppy when handling the header descriptor during
creation of an image. Fix all header accesses in the create path to
either store native endianness or convert it when appropriate.

Reported-by: Yury Tsarev <>...

1de1ae0a 06/08/2011 11:39 am Christoph Egger

block/raw-posix: use a character device if a block device is given

On NetBSD a userland process is better with the character device
interface. In addition, a block device can't be opened twice; if a Xen
backend opens it, qemu can't and vice-versa.

Signed-off-by: Christoph Egger <>...

7665385a 06/08/2011 11:11 am Jan Kiszka

virtio: Move virtio-pci to hw library

This module has no target dependencies (except for target_phys_addr_t
size) and can thus be built as part of libhw.

Signed-off-by: Jan Kiszka <>
Reviewed-by: Aurelien Jarno <>...

86f69a92 06/08/2011 11:04 am Alexandre Raymond

Fix compilation warning due to missing header for sigaction

Fix the following warning by including signal.h directly in qemu-common.h
----8<----
iohandler.c: In function ‘qemu_init_child_watch’:
iohandler.c:172: warning: implicit declaration of function ‘sigaction’...

9bf0960a 06/08/2011 11:04 am Alexandre Raymond

Fix compilation warning due to missing header for sigaction (followup)

This patch removes all references to signal.h when qemu-common.h is included
as they become redundant.

Signed-off-by: Alexandre Raymond <>
Signed-off-by: Stefan Hajnoczi <>

a9899996 06/08/2011 11:04 am Alexander Graf

slirp: fix guestfwd id

When using -net user,guestfwd=... Qemu immediately complains about the id
being in invalid format. This is because we pass in an id that contains a
colon, while the id restrictions don't allow colons.

This patch changes the colon into a dot, making guestfwd work again....

351326a6 06/08/2011 11:04 am Laurent Vivier

m68k: Replace gen_im32() by tcg_const_i32()

Signed-off-by: Laurent Vivier <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

8001c294 06/08/2011 11:04 am Martin Simmons

target-i386: Make x86 mfence and lfence illegal without SSE2

While trying to use qemu -cpu pentium3 to test for incorrect uses of certain
SSE2 instructions, I found that QEMU allowed the mfence and lfence
instructions to be executed even though Pentium 3 doesn't support them....

a90d4690 06/07/2011 09:52 pm Glauber Costa

Add an isa device for SGA

This patch adds a dummy legacy ISA device whose responsibility is to
deploy sgabios, an option rom for a serial graphics adapter.
The proposal is that this device is always-on when -nographics,
but can otherwise be enable in any setup when -device sga is used....

325601b4 06/07/2011 09:52 pm Anthony Liguori

json-lexer: limit the maximum size of a given token

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

29c75ddd 06/07/2011 09:52 pm Anthony Liguori

json-streamer: limit the maximum recursion depth and maximum token count

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

eca7db46 06/07/2011 09:52 pm Anthony Liguori

json-streamer: make sure to reset token_size after emitting a token list

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

11e8a46c 06/07/2011 09:52 pm Anthony Liguori

json-parser: detect premature EOI

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

529a0ef5 06/07/2011 09:52 pm Anthony Liguori

json-lexer: reset the lexer state on an invalid token

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

bd3924a3 06/07/2011 09:52 pm Michael Roth

json-lexer: fix flushing logic to not always go to error state

Currently we flush the lexer by passing in a NULL character. This
generally forces the lexer to go to the corresponding TERMINAL state
for whatever token type it is currently parsing, emits the token to the...

b011f619 06/07/2011 09:52 pm Michael Roth

json-lexer: make lexer error-recovery more deterministic

Currently when we reach an error state we effectively flush everything
fed to the lexer, which can put us in a state where we keep feeding
tokens into the parser at arbitrary offsets in the stream. This makes it...

5e2dafeb 06/07/2011 09:52 pm Michael Roth

json-streamer: add handling for JSON_ERROR token/state

This allows a JSON_ERROR state to be passed to the streamer to force a
flush of the current tokens and pass a NULL token list to the parser
rather that have it churn on bad data. (Alternatively we could just not...

c1990ebf 06/07/2011 09:52 pm Michael Roth

json-parser: add handling for NULL token list

Currently a NULL token list will crash the parser, instead we have it
pass back a NULL QObject.

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

0826c710 06/07/2011 09:52 pm Markus Armbruster

isa-vga: Make available with -device, like the other VGA qdevs

Switch no_user off and make it suppress the default VGA.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

23bf93b2 06/07/2011 09:52 pm Markus Armbruster

docs: qdev-device-use.txt has become stale, update it

Document more bus addresses.

Update for bugs fixed.

Describe where exactly the -drive options go.

Update for recent split of qdev ide-drive into ide-{cd,hd},
scsi-disk into scsi-{cd,hd}.

Document scsi-hd's removable property only for usb-storage, because...

a12eeaaa 06/07/2011 09:52 pm Luiz Capitulino

QError: Introduce qerror_format_desc()

Refactor non-QError-specific bits out of qerror_human() into general
function that can be used by the error_get_pretty() analogue in the
new error-propagation framework.

Signed-off-by: Luiz Capitulino <>...

87c2f591 06/07/2011 09:52 pm Luiz Capitulino

QError: Introduce qerror_format()

Will be used by new error propagation framework to convert Error objects
into human-readable form.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

d5ec4f27 06/07/2011 09:52 pm Luiz Capitulino

Introduce the new error framework

New error-handling framework that allows for exception-like error
propagation.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

ef749d07 06/07/2011 09:52 pm Anthony Liguori

json-parser: propagate error from parser

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

55f8301f 06/07/2011 09:52 pm Anthony Liguori

json-streamer: allow recovery after bad input

Once we detect a malformed message, make sure to reset our state.

Signed-off-by: Michael Roth <>
Signed-off-by: Anthony Liguori <>

a16c53b1 06/06/2011 04:54 pm Anthony Liguori

Fix regression introduced by -machine accel=

Commit 85097db6 changed the timing when kvm_allowed is set until after
kvm is initialized. During initialization, the ioeventfd initialization code
checks kvm_enabled() and after this change, ioeventfd is effectively disabled....

25f3151e 06/06/2011 04:54 pm Anthony Liguori

timer: drop HPET and RTC

dynticks will provide equally good timer granularity on all modern Linux
systems. This is more or less dead code these days.

Signed-off-by: Anthony Liguori <>

35106c2d 06/06/2011 10:14 am Hans de Goede

spice-qemu-char: Fix flow control in client -> guest direction

In the old spice-vmc device we used to have:
last_out = virtio_serial_write(&svc->port, p, MIN);
if (last_out > 0)
...

Now in the chardev backend we have:
last_out = MIN;...

d4970b07 06/06/2011 10:14 am Hans de Goede

spice: add option for disabling copy paste support

Some people want to be able disable spice's guest <-> client copy paste support
because of security considerations.

[ kraxel: drop old-version error message ]

42138043 06/06/2011 10:14 am Gerd Hoffmann

qxl: add to the list of devices which disable the default vga

Signed-off-by: Gerd Hoffmann <>

48b3ed0a 06/06/2011 10:14 am Marc-André Lureau

spice: add SASL support

Turn on SASL support by appending "sasl" to the spice arguments, which
requires that the client use SASL to authenticate with the spice. The
exact choice of authentication method used is controlled from the
system / user's SASL configuration file for the 'qemu' service. This...

44bd6907 06/06/2011 10:14 am Gerd Hoffmann

qemu-config: comment spell fix

Signed-off-by: Gerd Hoffmann <>

012b80d3 06/06/2011 10:14 am Gerd Hoffmann

spice: require spice 0.6.0 or newer.

This patch raises the minimum required spice version to 0.6.0 and drops
a few ifdefs.

0.6.0 is the first stable release with the current libspice-server API,
there shouldn't be any 0.5.x development versions deployed any more....

212496c9 06/06/2011 10:14 am Alon Levy

qxl: fix cmdlog for vga

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

d800040f 06/05/2011 06:05 pm Paolo Bonzini

scsi: fix tracing of scsi requests with simple backend

The simple backend only supports a maximum of 6 arguments. Split the
scsi_req_parsed event in two parts to cope with the limit.

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

f9188227 06/04/2011 12:50 am Mike Frysinger

configure: check for -Wendif-labels support

Older gcc compilers do not support -Wendif-labels, so move it from the
hardcoded list to the dynamically detected list.

Signed-off-by: Mike Frysinger <>
Reviewed-by: Stefan Hajnoczi <>...

9694b5d1 06/04/2011 12:39 am Stefan Weil

virtio-9p: Remove statement without effect (fix warning from cppcheck)

cppcheck report:
virtio-9p.c:197: warning: Redundant assignment of "flags" to itself

Signed-off-by: Stefan Weil <>
Reviewed-by: Venkateswararao Jujjuri <>...

1f2e98b6 06/03/2011 11:59 pm Alex Williamson

exec: Implement qemu_ram_free_from_ptr()

Required for regions mapped via qemu_ram_alloc_from_ptr(). VFIO
and ivshmem will make use of this to remove mappings when devices
are hot unplugged.

Signed-off-by: Alex Williamson <>
Signed-off-by: Aurelien Jarno <>

c83066d4 06/03/2011 11:12 pm Arun Thomas

multiboot: set boot_device to first partition

The multiboot info struct's 'boot_device' field has 'part1' set to 0x01, which
maps to the second primary partition. To specify the first primary partition,
'part1' should be set to 0x00, since partition numbers start from zero...

81c05daf 06/03/2011 07:42 pm Alex Zuepke

target-arm: BKPT instructions should raise prefetch aborts with IFSR type 00010

Signed-off-by: Alex Zuepke <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

568fffe3 06/03/2011 07:32 pm Christophe Fergeau

tcg: Fix unused-but-set-variable warning

Based on a patch from Hans de Goede <>

This warning is new in gcc 4.6.

Acked-by: Amit Shah <>
Signed-off-by: Christophe Fergeau <>
Signed-off-by: Aurelien Jarno <>

ebecf363 06/03/2011 07:26 pm Peter Maydell

tcg: If DEBUG_TCGV, distinguish TCGv_ptr from TCGv_i32/TCGv_i64

When compiling with DEBUG_TCGV enabled, make the TCGv_ptr type distinct
from TCGv_i32/TCGv_i64. This means that using an i32 or i64 TCG op to
manipulate a TCGv_ptr will always be detected at compile time, rather...

6bd4b08a 06/03/2011 07:26 pm Peter Maydell

tcg/tcg-op.h: Fix prototypes for ld/st functions on 64 bit hosts

The prototypes for the ld/st functions on a 64 bit host declared
the address parameter as a TCGv_i64 rather than a TCGv_ptr. This
worked OK (since the two are aliases), but needs to be fixed to...

03938c13 06/03/2011 07:23 pm Brad

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD.

Use the correct header in the TCG MIPS code to find cacheflush() on OpenBSD
to fix compilation of the MIPS host support for OpenBSD/mips64 based architecures.

Signed-off-by: Brad Smith <>...

b7fa9214 06/03/2011 07:13 pm Peter Maydell

target-arm: Fix compilation failure for 64 bit hosts

Use the correct _ptr aliases for manipulating the pointer to
the fp_status; this fixes a compilation failure on 64 bit hosts.

Signed-off-by: Peter Maydell <>
Acked-by: Stefan Weil <>...

47ba1984 06/03/2011 06:47 pm Aurelien Jarno

Merge branch 's390-next' of git://repo.or.cz/qemu/agraf

  • 's390-next' of git://repo.or.cz/qemu/agraf:
    s390x: implement lrvgr
    s390x: fix cksm instruction
    s390x: free tmp explicitly in every opcode for disas_a5()
    target-s390x: Add missing tcg_temp_free_i32()...
594caf07 06/03/2011 06:45 pm Aurelien Jarno

Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    PPC: fix mpc8544ds pci default devices
    Fix segfault on screendump with -nographic
    PPC: install mpc8544ds.dtb
    PPC: fix sregs usage on booke
    ppc: Fix compilation for ppc64-softmmu
587eabfa 06/03/2011 05:07 pm Aurelien Jarno

softfloat: add float*_is_zero_or_denormal()

float*_is_zero_or_denormal() is available for float32, but not for
float64, floatx80 and float128. Fix that.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

66fcf8ff 06/03/2011 05:07 pm Aurelien Jarno

target-i386: use floatx80 constants in helper_fld*_ST0()

Instead of using a table which doesn't correspond to anything from
physical in the CPU, use directly the constants in helper_fld*_ST0().

Cc: Andreas Färber <>
Reviewed-by: Peter Maydell <>...

cf67c6ba 06/03/2011 05:07 pm Aurelien Jarno

softfloat-native: remove

Remove softfloat-native support, all targets are now using softfloat
instead.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

be22a9ab 06/03/2011 05:07 pm Aurelien Jarno

softfloat: always enable floatx80 and float128 support

Now that softfloat-native is gone, there is no real point on not always
enabling floatx80 and float128 support.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

c31da136 06/03/2011 05:07 pm Aurelien Jarno

target-i386: remove old code handling float64

Now that target-i386 uses softfloat, floatx80 is always available and
there is no need anymore to have code handling both float64 and floax80.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

142ab5bb 06/03/2011 05:07 pm Aurelien Jarno

target-mips/gdbstub: remove old CONFIG_SOFTFLOAT #ifndef

target-mips has been switched to softfloat only long ago, but
a #ifndef CONFIG_SOFTFLOAT has been forgotten. Remove it.

Reviewed-by: Peter Maydell <>
Signed-off-by: Aurelien Jarno <>

2c0d18dd 06/03/2011 05:07 pm Aurelien Jarno

target-ppc: remove old CONFIG_SOFTFLOAT #ifdef

target-ppc has been switched to softfloat only long ago, but a
few #ifdef CONFIG_SOFTFLOAT have been forgotten. Remove them.

Cc: Alexander Graf <>
Reviewed-by: Peter Maydell <>...

225b6af7 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x8e

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

bbf9f3b4 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x90

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

2497a67f 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i32()

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

87b0b705 06/03/2011 02:34 pm Alexander Graf

s390x: free tmp explicitly in every opcode for disas_a5()

The disas_a5() function provided a TCG tmp variable which was populated
by the respective opcode implementations, but freed at the end of the
function in generic code.

That makes it really hard for code review, so let's move the freeing...

5b185639 06/03/2011 02:34 pm Alexander Graf

s390x: fix cksm instruction

The cksm instruction was implemented incorrectly, rendering UDP and TCP
checksum calculation wrong, making an emulated s390x Linux guest break
in most networking operations.

This patch fixes odd end checksum calculation, takes the input register...

e1b45cca 06/03/2011 02:34 pm Alexander Graf

s390x: implement lrvgr

The LRVGR instruction was missing. Implement it, so everyone's happy.

Reported-by: Balazs Kutil <>
Signed-off-by: Alexander Graf <>

39f41079 06/03/2011 02:34 pm Alexander Graf

s390x: update zipl rom

The zipl bootloader rom we have has seen some dramatic speedups upstream,
so let's update it to improve the experience when booting a guest image.

This binary is based on commit id 9a0842dd9823d529f721b418d554f17c72e009e3.

Signed-off-by: Alexander Graf <>

d4a3ef69 06/03/2011 02:34 pm Stefan Weil

target-s390x: Fix build for non-linux hosts

linux/kvm.h is not always available for compilation.

Neither linux/kvm.h nor kvm.h are needed, so remove both
which also fixes the build problem for non-linux hosts.

Cc: Alexander Graf <>
Signed-off-by: Stefan Weil <>...

be82ee2a 06/03/2011 02:34 pm Stefan Weil

target-s390x: Fix wrong argument in call of tcg_gen_shl_i64()

tcg_gen_shl_i64 needs a 3rd argument of type TCGv_i64.
Set tmp4 so it can be used here.

v2:
Don't call tcg_const_i64() inside of the loop
because it creates additional code.

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

640239b2 06/03/2011 02:34 pm Stefan Weil

target-s390x: Fix duplicate call of tcg_temp_new_i64

tmp2 = tcg_temp_new_i64() is already executed unconditionally,
so there is no need to call it a second time for 64 bit hosts.

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

a825aefb 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i64() in gen_jcc()

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

21de37a7 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i64() in do_mh()

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

e32a1832 06/03/2011 02:34 pm Stefan Weil

target-s390x: Add missing tcg_temp_free_i64() in disas_b2()

Signed-off-by: Stefan Weil <>
Signed-off-by: Alexander Graf <>

1ff7854e 06/03/2011 01:42 pm Stefan Weil

ppc: Fix compilation for ppc64-softmmu

When QEMU was configured with --enable-debug-tcg,
compilation fails in spr_write_booke206_mmucsr0() and in
spr_write_booke_pid(). Similar changes are also needed
in conditional code which is normally unused.

Cc: Alexander Graf <>...

fafc0b6a 06/03/2011 01:42 pm Alexander Graf

PPC: fix sregs usage on booke

When compiling qemu with kvm support on BookE PPC machines, I get
the following error:

cc1: warnings being treated as errors
/tmp/qemu/target-ppc/kvm.c: In function 'kvm_arch_get_registers':
/tmp/qemu/target-ppc/kvm.c:188: error: unused variable 'sregs'...
fbd659b7 06/03/2011 01:42 pm Alexander Graf

PPC: install mpc8544ds.dtb

We don't install mpc8544ds.dtb, which means that -M mpc8544ds doesn't
work when installed. Fix it by installing the file.

Signed-off-by: Alexander Graf <>

e34b12ae 06/03/2011 01:42 pm Alexander Graf

Fix segfault on screendump with -nographic

When running -nographic and calling "screendump" on the monitor, qemu
segfaults. Fix the invalid pointer dereference by checking for NULL.

Signed-off-by: Alexander Graf <>

d461e3b9 06/03/2011 01:42 pm Alexander Graf

PPC: fix mpc8544ds pci default devices

After the Qdev'ification of the MPC8544DS board and PCI bus, the internal
PCI bus name changed from "pci" to "pci.0". Reflect this change in the
search for that bus.

This patch enables networking on e500 guests again....

5c3234c6 06/01/2011 08:25 pm Aneesh Kumar K.V

hw/9pfs: Don't crash when we get a request with not supported 9p operation

Return EOPNOTSUPP as error

Signed-off-by: Aneesh Kumar K.V <>
Signed-off-by: Venkateswararao Jujjuri (JV) <>

faa44e3d 06/01/2011 08:25 pm Venkateswararao Jujjuri (JV)

[virtio-9p] Make rpath thread safe

Current rpath inline function is heavily used in all system calls.
This function has a static buffer making it a non-thread safe function.
This patch introduces new thread-safe routine and makes use of it.

Signed-off-by: Venkateswararao Jujjuri "<>

873c3213 06/01/2011 08:25 pm Stefan Weil

virtio-9p: Use relative includes for files in hw

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files
without fixing the include paths. It used a modified CFLAGS
to add hw to the include search path, but this breaks builds
where the user wants to set special CFLAGS. Long include paths...