Statistics
| Branch: | Revision:

root @ 903a8814

# Date Author Comment
92d48558 01/18/2012 02:23 pm Luiz Capitulino

block: eject_device(): Use error_set()

Also drops the leftover 'mon' argument.

This is a preparation for the next commits which will port the
eject and change commands to the QAPI.

Signed-off-by: Luiz Capitulino <>

c245b6a3 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert eject

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

7060b478 01/18/2012 02:23 pm Anthony Liguori

monitor: expose readline state

HMP is now implemented in terms of QMP. The monitor has a bunch of logic to
deal with HMP right now like readline support. Export it from the monitor so
we can consume it in hmp.c.

In short time, hmp.c will take over all of the readline bits....

270b243f 01/18/2012 02:23 pm Luiz Capitulino

qapi: Introduce change-vnc-password

New QMP command to change the VNC password.

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

Signed-off-by: Luiz Capitulino <>

903a8814 01/18/2012 02:23 pm Luiz Capitulino

qerror: Extend QERR_DEVICE_ENCRYPTED

Include the name of the encrypted file.

Signed-off-by: Luiz Capitulino <>

a6aa9d3e 01/18/2012 02:23 pm Luiz Capitulino

vnc: Simplify vnc_display_password()

Drop the qerror_report() call from it and let its callers set the error
themselves. This also allows for dropping the 'ret' variable.

Signed-off-by: Luiz Capitulino <>

fbf796fd 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert set_password

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

9ad5372d 01/18/2012 02:23 pm Luiz Capitulino

qapi: Convert expire_password

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

8c4ec5c0 01/17/2012 03:14 am Andrzej Zaborowski

pxa2xx_keypad: fix unbalanced parenthesis.

Breakage introduced by me when ammending a previous patch, sorry.

078758d0 01/17/2012 03:08 am Evgeny Voevodin

hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop

The secondary CPU bootloader in arm_boot.c holds secondary CPUs in a
pen until the primary CPU releases them. Make boards specify the
address to be polled to determine whether to leave the pen (it was...

ea0e6841 01/17/2012 03:08 am Evgeny Voevodin

hw/sysbus.h: Increase maximum number of device IRQs.

Samsung exynos4210 Interrupt Combiner needs 512 IRQ sources.

Signed-off-by: Evgeny Voevodin <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

753a97c6 01/17/2012 02:48 am Vasily Khoruzhick

pxa2xx_keypad: make single automatic scans work

u-boot uses single automatic scans and polling in
pxa2xx_keypad driver, so clear KPC_AS bit immediately
and update keys state even if KPC_AS and KPC_ASACT are
cleared.

Signed-off-by: Vasily Khoruzhick <>...

7ab3aedf 01/17/2012 02:40 am Vasily Khoruzhick

pxa2xx_lcd: fix palette parser

Pallete entry size for 16bpp format is 2 bytes, not 4

Signed-off-by: Vasily Khoruzhick <>
Signed-off-by: Andrzej Zaborowski <>

41bd3603 01/15/2012 06:54 pm Jan Kiszka

seabios: Update to release 1.6.3.1

User visible changes in seabios:
- Probe HPET existence (fix for -no-hpet)
- Probe PCI existence (fix for -machine isapc)
- usb: fix boot paths

Signed-off-by: Jan Kiszka <>

ddcada78 01/15/2012 06:23 pm Jan Kiszka

isapc: Fix segfault during initialization

Obviously, linking the RTC device state to the PIIX does not belong into
the common path that is shared with the isapc.

Signed-off-by: Jan Kiszka <>

3fbffb62 01/15/2012 04:13 pm Avi Kivity

kvm: flush the dirty log when unregistering a slot

Otherwise, the dirty log information is lost in the kernel forever.

Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Signed-off-by: Avi Kivity <>

d3cb6e2b 01/13/2012 07:25 pm Peter Maydell

target-arm: Fix errors in decode of M profile CPS

Fix errors in the decode of M profile CPS: * the decode of the I (affects PRIMASK) and F (affects FAULTMASK)
bits was reversed * the FAULTMASK system register number is 19, not 17

This fixes an issue reported as LP:913925....

2be27624 01/13/2012 07:25 pm Rob Herring

arm: Add dummy support for co-processor 15's secure config register

Signed-off-by: Rob Herring <>
Signed-off-by: Mark Langsdorf <>
Signed-off-by: Peter Maydell <>

6b620ca3 01/13/2012 06:55 pm Paolo Bonzini

prepare for future GPLv2+ relicensing

All files under GPLv2 will get GPLv2+ changes starting tomorrow.
event_notifier.c and exec-obsolete.h were only ever touched by Red Hat
employees and can be relicensed now.

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

a87f3e8b 01/13/2012 06:21 pm Amit Shah

qdev: Add a 'free' method to disassociate chardev from qdev device

When a device is removed, remove the association with a chardev, if any,
so that the chardev can be re-used later for other devices.

Reported-by: Qunfang Zhang <>
Fix-suggested-by: Markus Armbruster <>...

a10348c3 01/13/2012 06:21 pm Amit Shah

virtio-console: no need to remove char handlers explicitly

qdev is now equipped (thanks to the last commit) to disassociate
chardevs from the qdev devices on the devices going away. So doing it
in the virtio-console driver is not necessary.

Since that was the only thing being done in the qdev exit method, drop...

86003615 01/13/2012 06:21 pm Paolo Bonzini

vectorize is_dup_page

is_dup_page is already proceeding in 32-bit chunks. Changing it
to 16 bytes using Altivec or SSE is easy.

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

701a8f76 01/13/2012 06:20 pm Paolo Bonzini

vmstate: extract declarations out of hw/hw.h

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

1ba1f2e3 01/13/2012 06:20 pm Paolo Bonzini

virtio-blk: refuse SG_IO requests with scsi=off

QEMU does have a "scsi" option (to be used like -device
virtio-blk-pci,drive=foo,scsi=off). However, it only
masks the feature bit, and does not reject the command
if a malicious guest disregards the feature bits and...

fbc15e27 01/13/2012 06:20 pm Paolo Bonzini

rtc: clear non-PF bits when reinjecting on ack

When an rtc interrupt is reinjected immediately after being acked,
other interrupts should not be reinjected, so do clear their bits.

Also, if the periodic interrupts have been disabled before acking,
do not reinject, as the guest might get very confused!...

49d4d9b6 01/13/2012 06:20 pm Paolo Bonzini

ptimer: move declarations to ptimer.h

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

024a6fbd 01/13/2012 06:20 pm Anthony Liguori

qdev: fix device_del by refactoring reference counting

Commit 8eb0283 broken device_del by having too overzealous reference counting
checks. Move the reference count checks to qdev_free(), make sure to remove
the parent link on free, and decrement the reference count on property removal....

3b89eb43 01/13/2012 06:20 pm Paolo Bonzini

rtc: fix 12-hour mode

Hours in 12-hour mode are in the 1-12 range, not 0-11.

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

eea86673 01/13/2012 06:20 pm Paolo Bonzini

rtc: raise AF bit when the alarm is encountered but AIE=0

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

663447d4 01/13/2012 06:20 pm Paolo Bonzini

rtc: raise PF bit when the periodic timer triggers but PIE=0

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

607a2c72 01/13/2012 06:17 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    bt-host: add missing break statement
    virtfs-proxy-helper: Add missing printf format attribute
    virtfs-proxy-helper: Clean include files
    virtfs-proxy-helper: Fix compilation on newer systems...
20f8bd48 01/13/2012 05:01 pm Aurelien Jarno

target-i386: fix compilation with --enable-debug-tcg

Commit 2355c16e74ffa4d14e7fc2b4a23b055565ac0221 introduced a new ldmxcsr
helper taking an i32 argument, but the helper is actually passed a long.
Fix that by truncating the long to i32.

Signed-off-by: Aurelien Jarno <>

f46cee37 01/13/2012 12:37 pm Stefan Berger

hmp: Fix freeing of PciInfoList

Remember the original PciInfoList in info_list and use
the info variable to traverse the list.

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

822b635d 01/13/2012 12:37 pm Stefan Weil

virtfs-proxy-helper: Fix compilation on newer systems

Include file attr/xattr.h is not available on "newer" systems
(for example Fedora 12 or Debian Squeeze).

See comments in qemu-xattr.h for more information.
This file handles the system dependencies automatically....

e7e4a6cc 01/13/2012 12:37 pm Stefan Weil

virtfs-proxy-helper: Clean include files

The common standard include files are already included via qemu-common.h,
and for the socket related include files there is qemu_socket.h, so the
code can be reduced by some lines.

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

c5c7d3f0 01/13/2012 12:37 pm Stefan Weil

virtfs-proxy-helper: Add missing printf format attribute

Every function with printf like arguments must have it
(see file HACKING), so add it.

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

f7253270 01/13/2012 12:37 pm Stefan Hajnoczi

bt-host: add missing break statement

The switch statement in bt_host_read() is missing a break in one case.
Andrzej Zaborowski <> confirmed that this is
not an intentional fall-through.

Reviewed-by: Stefan Weil <>...

bd947d30 01/13/2012 12:36 pm Stefan Weil

configure: Modify detection of supported warning options

Reversing the order of the warning options and -Werror is important
when clang is used instead of gcc. It changes nothing for gcc.

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

5c84bd90 01/13/2012 12:36 pm Aurelien Jarno

tcg-arm: fix a typo in comments

ARM still doesn't support 16GB buffers in 32-bit modes, replace the
16GB by 16MB in the comment.

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

dabdf394 01/13/2012 12:36 pm Stefan Weil

Spelling fixes in comments and documentation

Codespell detected these new spelling issues.

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

8d987346 01/13/2012 12:36 pm Stefan Hajnoczi

vvfat: avoid leaking file descriptor in commit_one_file()

Reported-by: Dr David Alan Gilbert <>
Signed-off-by: Stefan Hajnoczi <>

cee8e6ad 01/13/2012 12:36 pm Stefan Hajnoczi

vnc: fix no-lock-key-sync strncmp() length

The no-lock-key-sync option is being parsed incorrectly because of an
outdated strcmp() length value. Use the correct length so that invalid
option names do not match.

Reported-by: Dr David Alan Gilbert <>...

3c8359d1 01/13/2012 12:36 pm Stefan Hajnoczi

omap_dss: correct chip1 index in RFBI_READ/RFBI_STATUS

The RFBI_READ/RFBI_STATUS code incorrectly uses chip0 when it should
be using chip1. Andrzej Zaborowski <> confirmed this
bug since I don't know this code well.

Reported-by: Dr David Alan Gilbert <>...

0b0404bf 01/13/2012 12:36 pm Stefan Weil

Add 'fall through' comments to case statements without break

These comments are used by static code analysis tools and in code reviews
to avoid false warnings because of missing break statements.

The case statements handled here were reported by coverity....

bee5a5fb 01/13/2012 12:09 pm Edgar E. Iglesias

cris: Update paths to match the move of tests/cris

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

515aa3c5 01/12/2012 07:33 pm Anthony Liguori

check-qstring: remove check.h include

Reported-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

a7d64ddb 01/12/2012 06:34 pm Lai Jiangshan

cleanup, Remove duplicated code

These two blocks of code are exactly the same, remove one.

Signed-off-by: Lai Jiangshan <>
Signed-off-by: Lai Jiangshan <>
Signed-off-by: Anthony Liguori <>

4aa7534d 01/12/2012 06:34 pm Lai Jiangshan

cleanup, save a syscall

Signed-off-by: Lai Jiangshan <>
Signed-off-by: Anthony Liguori <>

0e0e7fac 01/12/2012 06:34 pm Benjamin

Support for UDP unicast network backend

Signed-off-by: Benjamin MARSILI <>
Signed-off-by: Anthony Liguori <>

92af0bfd 01/12/2012 06:34 pm Stefan Hajnoczi

MAINTAINERS: update tracing repo git URL

I have moved git hosting services.

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

ad65aa88 01/12/2012 06:34 pm Anthony Liguori

test: eliminate libcheck tests and have make check use gtester

Signed-off-by: Anthony Liguori <>

0ac7cc2a 01/12/2012 06:05 pm Anthony Liguori

check-qstring: convert to gtest

Signed-off-by: Anthony Liguori <>

91479dd0 01/12/2012 06:05 pm Anthony Liguori

check-qlist: convert to gtest

Signed-off-by: Anthony Liguori <>

ef76dc59 01/12/2012 06:05 pm Anthony Liguori

check-qjson: convert to gtest

Signed-off-by: Anthony Liguori <>

38273e1d 01/12/2012 06:05 pm Anthony Liguori

check-qjson: enable disabled tests

gtest does the right thing here so there's no need to comment these tests out.

Signed-off-by: Anthony Liguori <>

dbfe06c6 01/12/2012 06:05 pm Anthony Liguori

build: split unit test builds to a separate makefile fragment

Signed-off-by: Anthony Liguori <>

ac531cb6 01/12/2012 06:05 pm Anthony Liguori

check-qdict: convert to gtest

Signed-off-by: Anthony Liguori <>

a9e1c28d 01/12/2012 06:05 pm Anthony Liguori

check-qfloat: convert to gtest

Signed-off-by: Anthony Liguori <>

65cdadd2 01/12/2012 06:05 pm Anthony Liguori

check-qint: convert to gtest

Signed-off-by: Anthony Liguori <>

19bf7c87 01/12/2012 06:03 pm Avi Kivity

Fix qapi code generation fix

The fixes to qapi code generation had multiple bugs:
- the Null class used to drop output was missing some methods
- in some scripts it was never instantiated, leading to a None return,
which is missing even more methods
- the --source and --header options were swapped...

a0f42610 01/12/2012 06:03 pm Avi Kivity

vga: optimize ppm_save() divisions

ppm_save() spends upwards of 50% of its time doing divisions. Replace them
with shifts.

Reviewed-by: Alon Levy <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

c09015dd 01/12/2012 06:03 pm Anthony Liguori

tests: mv tests/* -> tests/tcg

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

9f6113c7 01/12/2012 02:54 pm Edgar E. Iglesias

microblaze: Break the tb at memory barriers

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

73a511de 01/12/2012 02:54 pm Lars Persson

etraxfs-dma: Model metadata and eop

- Send EOP flags to the out channels.
- Send data descriptor metadata to the out channels.

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

48b5e96f 01/12/2012 02:54 pm Edgar E. Iglesias

microblaze: Add support for the clz insn

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

5818dee5 01/12/2012 02:54 pm Edgar E. Iglesias

microblaze: Emulate the hw stackprotector

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

a4d1f142 01/11/2012 10:55 am Aurelien Jarno

target-i386: fix {min,max}{pd,ps,sd,ss} SSE2 instructions

minpd, minps, minsd, minss and maxpd, maxps, maxsd, maxss SSE2
instructions have been broken when switching target-i386 to softfloat.
It's not possible to use comparison instructions on float types anymore...

adc71666 01/11/2012 10:55 am Aurelien Jarno

target-i386: fix round{pd,ps,sd,ss} SSE2 instructions

roundps and roundss SSE2 instructions have been broken when switching
target-i386 to softfloat. They use float64_round_to_int to convert a
float32, and while the implicit conversion from float32 to float64 was...

170d5b4b 01/11/2012 10:55 am Aurelien Jarno

target-i386: fix dpps and dppd SSE2 instructions

The helpers implemented dpps and dppd SSE instructions are not passing
the correct argument types to the softfloat functions. While they do
work anyway providing a correct behaviour, this patch fixes that....

2355c16e 01/11/2012 10:55 am Aurelien Jarno

target-i386: fix SSE rounding and flush to zero

SSE rounding and flush to zero control has never been implemented. However
given that softfloat-native was using a single state for FPU and SSE and
given that glibc is setting both FPU and SSE state in fesetround(), this...

9841aee1 01/10/2012 07:47 pm Stefan Weil

wm8750: Fix calculation of number of array elements

Coverity says that the division by sizeof(*s->rate) might be wrong.
I think that coverity is right.

Signed-off-by: Stefan Weil <>
Signed-off-by: Andrzej Zaborowski <>

c7c530cd 01/10/2012 07:40 pm Stefan Weil

elf: Improve symbol lookup (optimize, fix for bsd-user)

Coverity complained about local variable key which was only partially
initiated. Only key.st_value was set. As this was also the only part
of key which was used in function symfind, the code could be optimized...

563c2bf3 01/10/2012 07:40 pm Peter Maydell

hw/integratorcp: Simplify flash remap code

Use the new memory mutator API to simplify the flash remap code;
this allows us to drop the flash_mapped flag.

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

4753dea8 01/10/2012 07:39 pm Peter Maydell

hw/integratorcp: Fix sense of REMAP bit

Fix the sense of the REMAP bit: 0 should mean "map flash",
1 should mean "map RAM".

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

14763ec8 01/10/2012 07:24 pm Aurelien Jarno

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

  • 's390-next' of git://repo.or.cz/qemu/agraf:
    s390: fix cpu hotplug / cpu activity on interrupts
    s390x: add TR function for EXECUTE
    Expose drive_add on all architectures
    Add generic drive hotplugging...
665a04ae 01/10/2012 07:23 pm Alexander Graf

PPC: Fix linker scripts on ppc hosts

When compiling qemu statically with multilib on PPC, we hit the
same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49
is fixing. Do the same here.

Signed-off-by: Alexander Graf <>
Signed-off-by: Aurelien Jarno <>

0cdb9554 01/10/2012 07:20 pm Aurelien Jarno

target-sh4: ignore ocbp and ocbwb instructions

ocbp and ocbwb controls the writeback of a cache line to memory. They
are supposed to do nothing in case of a cache miss. Given QEMU only
partially emulate caches, it is safe to ignore these instructions.

This fixes a kernel oops when trying to access an rtl8139 NIC with...

05b922dd 01/10/2012 06:52 pm Peter Maydell

tcg/arm: Use r6 as TCG_AREG0 to avoid clash with Thumb framepointer

On ARM, in Thumb mode r7 is used for the framepointer; this meant
that we would fail to compile in debug mode because we were using r7
for TCG_AREG0. Shift to r6 instead to avoid this clash....

520a02f8 01/10/2012 10:36 am Stefan Weil

cris-dis: Clean memory allocation

The old code used sizeof(const struct cris_opcode **) where it should
have used sizeof(const struct cris_opcode *). As both sizes give the
same value, the resulting binary was ok, but static code analyzers
like coverity and clang complained....

cd9244e4 01/09/2012 04:54 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/fix-vhost-after-memory-listener' into staging

  • qemu-kvm/fix-vhost-after-memory-listener:
    vhost: improve region filtering
    vhost: fix mem_sections memory corruption
    vhost: fix incorrect userspace address
c49450b9 01/09/2012 02:01 pm Avi Kivity

vhost: improve region filtering

vhost memory management doesn't care about non-memory (e.g. PIO) or non-RAM
regions. Adjust the filtering to reflect that, and move it earlier so it
applies to mem_sections too.

Signed-off-by: Avi Kivity <>...

637f7a6a 01/09/2012 01:59 pm Avi Kivity

vhost: fix mem_sections memory corruption

A memset() used to delete an entry in an array did not take into account
the array element's size.

Signed-off-by: Avi Kivity <>
Acked-by: Michael S. Tsirkin <>

d743c382 01/09/2012 01:09 pm Avi Kivity

vhost: fix incorrect userspace address

MemoryListener::region_add() gives us a slice of a MemoryRegion, not a
region. Adjust the userspace address to reflect that.

Signed-off-by: Avi Kivity <>
Acked-by: Michael S. Tsirkin <>

1ddde087 01/08/2012 06:16 pm Avi Kivity

Fix vmstate_register_ram() for rom/device regions

rom/device regions have a ram_addr that is composed of both an I/O handler
(low bits) and RAM region (high bits); but qemu_ram_set_idstr() expects just
a RAM region. Mask the I/O handler to make it happy....

1470a0cd 01/08/2012 01:10 pm Andreas Färber

memory: Fix adjust_endianness()

Commit a621f38de85598a13d8d8524d1a94fc6a1818215 (Direct dispatch
through MemoryRegion) moved byte swaps to a central function.

Add a missing break, so that long-sized byte swaps don't abort.

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

2c3579ab 01/08/2012 01:10 pm Andreas Färber

memory: Fix memory_region_wrong_endianness()

Since commit be675c972088eba210e18dc125613e9f205a6bfb (memory: move
endianness compensation to memory core) it was checking for
TARGET_BIG_ENDIAN instead of TARGET_WORDS_BIGENDIAN, thereby not
swapping correctly for Big Endian targets....

6148b23d 01/08/2012 12:59 pm Avi Kivity

kvm: fix build error in ppc kvm due to memory_region_init_ram_ptr() change

Commit c5705a772 ("vmstate, memory: decouple vmstate from memory API") changed
the signature of memory_region_init_ram_ptr() but did not update a caller in
the ppc kvm module. Fix....

e7f92902 01/07/2012 11:19 pm Aurelien Jarno

Merge branch 'target-arm.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'target-arm.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
    arm: add dummy A9-specific cp15 registers
    target-arm: Ignore attempts to set invalid modes in CPSR...
15f43ccd 01/07/2012 11:01 pm Aurelien Jarno

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

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    PPC: Add description for the Freescale e500mc core.
    pseries: Check for duplicate addresses on the spapr-vio bus
    pseries: Populate "/chosen/linux,stdout-path" in the FDT...
c2780865 01/07/2012 10:29 pm Stefan Weil

sm501: Fix size of color_reg

color_reg is expected to hold 32 bit values, so it was too small.

This bug was reported by coverity:

hw/sm501.c:624:
result_independent_of_operands:
color_reg >> 16 is 0 regardless of the values of its operands.
This occurs as the bitwise first operand of '&'....

e9b40fd3 01/07/2012 07:16 pm Stefan Weil

malta: Fix regression (i8259 interrupts did not work)

Commit 5632ae46d5bda798e971dae48ebb318ac2c3686a passes the address
of i8259 to qemu_irq_proxy. i8259 is an auto variable with undefined
value outside of mips_malta_init.

This made the interrupt proxy unusable: either QEMU crashes, or...

f840fa99 01/07/2012 07:16 pm Stefan Weil

target-sh4: Fix operands for fipr, ftrv instructions

Coverity complained about right shifts of opcode (16, 18) which were
larger than the size of opcode (16 bit).

Using the correct shift values fixes this.

Cc: Aurelien Jarno <>
Signed-off-by: Stefan Weil <>...

a2e4d53e 01/06/2012 08:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    qemu-nbd: drop loop which can never loop
    Make python mandatory
    net/socket.c: Fix fd leak in net_socket_listen_init() error paths
    gdbstub: Fix fd leak in gdbserver_open() error path...
2afee49f 01/06/2012 08:50 pm Peter Maydell

virtio-9p-proxy: Fix typo causing compile failure on 32 bit hosts

Fix a compile failure on 32 bit hosts (integer constant is too large
for 'unsigned long' type) by correcting a typo where the mask used
for filling in the second f_fsid word had too many 'F's in it....

dc10e8b3 01/06/2012 05:09 pm Stefan Hajnoczi

qemu-nbd: drop loop which can never loop

For some reason nbd_client_thread() has a do..while loop which can never
loop, the condition is bogus because we would take a goto instead. Drop
the loop.

Reported-by: Dr David Alan Gilbert <>...

7a3fc891 01/06/2012 05:07 pm Sebastian Herbszt

Make python mandatory

The QEMU build depends on Python so make it an explicit requirement.

Reviewed-by: Stefan Weil <>
Signed-off-by: Sebastian Herbszt <>
Signed-off-by: Stefan Hajnoczi <>

a2c80be9 01/06/2012 05:07 pm Stefan Weil

configure: CONFIG_QEMU_INTERP_PREFIX only for user mode

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

359bc95d 01/06/2012 05:07 pm Peter Maydell

configure: Fix test for supported host CPU type

The test for whether the host CPU is supported had several problems: * the attempt to fall back to TCI was done as a duplicate
test, very late (so "--cpu foo" would fail early but "--cpu unicore32"
would fail late, differently, and after configure had already...

bb16172c 01/06/2012 05:07 pm Peter Maydell

gdbstub: Fix fd leak in gdbserver_open() error path

Fix a leak of a file descriptor in error exit paths in
gdbserver_open().

Signed-off-by: Peter Maydell <>
Signed-off-by: Stefan Hajnoczi <>

a46667ea 01/06/2012 05:07 pm Peter Maydell

net/socket.c: Fix fd leak in net_socket_listen_init() error paths

Fix a leak of a file descriptor due to missing closesocket() calls
in error paths in net_socket_listen_init().

Signed-off-by: Peter Maydell <>
Signed-off-by: Stefan Hajnoczi <>