Statistics
| Branch: | Revision:

root @ 7a3766f3

# Date Author Comment
7a3766f3 01/12/2010 09:59 pm Richard Henderson

tcg-sparc: Implement add2, sub2, mulu2.

Add missing 32-bit double-word support opcodes.

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

ba225198 01/12/2010 09:59 pm Richard Henderson

tcg-sparc: Add tcg_out_arithc.

Add a function to handle the register-vs-immediate test for arithmetic.

Also, adjust the OP_32_64 macro so that it auto-indents properly.
Rename the gen_arith32 label to gen_arith, since it handles 64-bit
arithmetic as well....

3d72f9a2 01/12/2010 09:24 pm Luiz Capitulino

QMP: Don't free async event's 'data'

The monitor_protocol_event() function will free the
event's data, this is wrong as 'data' management is up
to the caller.

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

dbd48324 01/12/2010 09:24 pm Michael S. Tsirkin

qdev: fix thinko leading to guest crashes

Without this fix, guest crashes with drive=virtio.

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

83755c17 01/12/2010 09:24 pm Stefano Stabellini

vnc_refresh: return if vd->timer is NULL

Hi all,
calling vnc_update_client in vnc_refresh might have the unlikely side
effect of setting vd->timer = NULL, if the last vnc client disconnected.
In this case we have to return from vnc_refresh without updating the...

514d97de 01/12/2010 08:55 pm malc

dma/sb16: make clang analyzer not complain

Signed-off-by: malc <>

5a5d4a76 01/11/2010 11:20 pm Blue Swirl

Sparc64: enable real access to PCI configuration space

Leave the bogus access method used by OpenBIOS in place for now.

Signed-off-by: Blue Swirl <>

49e75cf3 01/11/2010 09:41 pm Michael S. Tsirkin

virtio-pci: thinko fix

Since patch ed757e140c0ada220f213036e4497315d24ca8bct, virtio will
sometimes clear all status registers on bus master disable, which loses
information such as VIRTIO_CONFIG_S_FAILED bit. This is a result of
a patch being misapplied: code uses ! instead of ~ for bit...

1559ca00 01/11/2010 09:41 pm Christoph Hellwig

dmg: fix ->open failure

Currently the dmg image format driver simply opens the images as raw
if any kind of failure happens. This is contrarty to the behaviour
of all other image formats which just return an error and let the
block core deal with it.

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

bfe4e172 01/11/2010 09:41 pm Thomas Horsten

Handle TFTP ERROR from client

If a PXE client only wants to find out the size of a file, it will
open the file and then abort the transfer by sending a TFTP ERROR packet.

The ERROR packet should cause qemu to terminate the session. If not,
the sessions will soon run out and cause timeouts in the client....

2cae6f5e 01/11/2010 09:41 pm Gerd Hoffmann

pc: add machine type for 0.12

Add a new machine type for qemu 0.12.

Also fixup the 0.11 machine type: msi for virtio-blk-pci was enabled
after the 0.11 release, so turn it off in the 0.11 machine type.

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

bdb5ee30 01/11/2010 09:41 pm Gerd Hoffmann

roms: minor fixes and cleanups.

Changes:
- Drop extra file argument from rom_add_file().
- Drop fw_dir check in do_info_roms, we allways have a dir name.
- code style fixes.

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

de9352bc 01/11/2010 09:41 pm Gerd Hoffmann

fw_cfg: rom loader tweaks.

Changes:
- make dir argument mandatory, we allways have one anyway
(vgaroms or genroms).
- check for duplicates, skip loading if found.

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

8832cb80 01/11/2010 09:41 pm Gerd Hoffmann

roms: rework rom loading via fw

This patch changes the way rom loading via fw_cfg is handled.
Instead of having pc_init1() call a function which passed all
roms to the firmware config we simply pass a pointer to fw_cfg
to the rom loader.

Advantage: loading roms via firmware works also for devices which...

88169ddf 01/11/2010 09:41 pm Gerd Hoffmann

pci: allow loading roms via fw_cfg.

This patch adds a pci bus property 'rombar' which specifies whenever
the pci rom should be loaded via pci rom bar (default) or via fw_cfg.
The later can be used for compatibility with older qemu versions where
no pci rom bar is present....

20a86364 01/11/2010 09:41 pm Gerd Hoffmann

pc: add rombar to compat properties for pc-0.10 and pc-0.11

So '-M pc-0.10' and '-M pc-0.11' will use the fw_cfg rom load method
by default.

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

ca1a8a06 01/11/2010 09:41 pm Bruce Rogers

make help output be a little more self-consistent

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

c3863f25 01/11/2010 09:41 pm Anthony Liguori

Update to SeaBIOS 0.5.1

5da6833 Update version to 0.5.1
669c991 Fix sign error preventing incorrect memory over 4gig calculation.
7e6bd3e Minor - better indent assembler in int1587.
48cf232 Add comment explaining why mptable is in low memory.
643062f Add int1589 support....
c0ced0f3 01/11/2010 09:40 pm Stefan Weil

pc-bios: Update README (SeaBIOS)

The PC BIOS no longer comes from Bochs.
This patch updates the related entry.

V2 - Modify SeaBIOS description and URL
(Thanks to Gleb Natapov for the hint).

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

d2364ee4 01/11/2010 09:40 pm Michael S. Tsirkin

qdev: add bit property type

This adds "bit" property type, which is a boolean stored in a 32 bit
integer field, with legal values on and off. Will be used by virtio for
feature bits.

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

704a76fc 01/11/2010 09:40 pm Michael S. Tsirkin

virtio: rename features -> guest_features

Rename features->guest_features. This is
what they are, avoid confusion with
host features which we also need to keep around.

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

8172539d 01/11/2010 09:40 pm Michael S. Tsirkin

virtio: add features as qdev properties

Add feature bits as properties to virtio. This makes it possible to e.g. define
machine without indirect buffer support, which is required for 0.10
compatibility, or without hardware checksum support, which is required for 0.11...

af364b41 01/11/2010 05:56 pm Huang Ying

MCE: Fix bug of IA32_MCG_STATUS after system reset

Now, if we inject a fatal MCE into guest OS, for example Linux, Linux
will go panic and then reboot. But if we inject another MCE now,
system will reset directly instead of go panic firstly, because
MCG_STATUS.MCIP is set to 1 and not cleared after reboot. This is does...

3f7638ec 01/11/2010 05:56 pm Jiri Denemark

Fix CPU topology initialization

Late initialization of CPU topology in CPUState prevents KVM guests to
actually see the topology.

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

e73223a5 01/11/2010 05:56 pm Gleb Natapov

remove pending exception on vcpu reset.

Without this qemu can even start on kvm modules with events support
since default value of exception_injected in zero and this is #DE
exception.

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

f2d928d4 01/11/2010 05:56 pm Roland Dreier

vmware_vga: Check cursor dimensions passed from guest to avoid buffer overflow

Check that the cursor dimensions passed from the guest for the
DEFINE_CURSOR command don't overflow the available space in the
cursor.image[] or cursor.mask[] arrays before copying data from the...

042ec49d 01/11/2010 05:56 pm Gerd Hoffmann

lsi: use QTAILQ for lsi_queue

Replace the funky array logic for queued commands with standard
qemu list functions. Also rename lsi_queue to lsi_request.

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

af12ac98 01/11/2010 05:56 pm Gerd Hoffmann

lsi: have lsi_request for the whole life time of the request.

Right now lsi_request is allocated when a request is queued and released
when a request is unqueued. With this patch applied the lsi_request is
kept for the whole lifetime of the scsi request....

daa70311 01/11/2010 05:56 pm Gerd Hoffmann

lsi: move current_dev into lsi_request

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

b96a0da0 01/11/2010 05:56 pm Gerd Hoffmann

lsi: move dma_len+dma_buf into lsi_request

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

aa4d32c4 01/11/2010 05:56 pm Gerd Hoffmann

lsi: pass lsi_request to lsi_reselect

All callers of lsi_reselect have a lsi_request struct at hand anyway.
So just pass it directly instead of having lsi_reselect search for it
using the tag.

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

0b987f19 01/10/2010 10:54 pm Blue Swirl

PCI: Fix a typo

Fixes build with PCI_DEBUG defined.

Signed-off-by: Blue Swirl <>

bae7b517 01/10/2010 08:25 pm Blue Swirl

Sparc64: increase APB register range

Signed-off-by: Blue Swirl <>

9c9b0512 01/09/2010 11:27 pm Blue Swirl

Sparc64: use firmware configuration device for command line storage

Avoid a ROM conflict.

Signed-off-by: Blue Swirl <>

3d709fe7 01/09/2010 05:07 pm malc

oss: fix fragment setting

Previous patch introduced subtle regression, in cases when
OSS_GETVERSION fails the code wasn't falling back to
SNDCTL_DSP_SETFRAGMENT.

Signed-off-by: malc <>

6d246526 01/09/2010 04:55 pm malc

oss: issue OSS_GETVERSION ioctl only when needed

Signed-off-by: malc <>

59bc10ee 01/09/2010 12:55 am Paolo Bonzini

finish VPATH -> vpath translation

This adds a few more vpath suffixes and points the remaining two paths
explicitly to $(SRC_PATH) in order to eliminate the VPATH assignment
from config-host.mak.

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

78d9356d 01/08/2010 11:28 pm malc

oss: refactor code around policy setting

This fixes a problem with a previous patch spotted by Juergen Lock,
thanks to him again.

Signed-off-by: malc <>

25d0ae90 01/08/2010 09:54 pm Blue Swirl

Makefile: remove obsolete libuser.a rule

libuser.a was removed by 0e8c9214ba1d4128cf92442cd343bc3733478261.

Signed-off-by: Blue Swirl <>

d532b26c 01/08/2010 07:25 pm Igor V. Kovalenko

sparc64: interrupt trap handling

cpu_check_irqs
- handle SOFTINT register TICK and STICK timer bits
- only check interrupt levels greater than PIL value
- handle preemption by higher level traps

cpu_exec
- handle CPU_INTERRUPT_HARD only if interrupts are enabled...

2df6c2d0 01/08/2010 07:16 pm Igor V. Kovalenko

sparc64: move cpu_interrupts_enabled to cpu.h

- to be used by cpu_check_irqs

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

709f2c1b 01/08/2010 07:15 pm Igor V. Kovalenko

sparc64: add macros to deal with softint and timer interrupt

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

4dc28134 01/08/2010 07:15 pm Igor V. Kovalenko

sparc64: check for pending irq when pil, pstate or softint is changed

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

1fae7b70 01/08/2010 07:14 pm Igor V. Kovalenko

sparc64: use helper_wrpil to check pending irq on write

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

68e8a3f0 01/08/2010 07:13 pm Igor V. Kovalenko

sparc64: add PIL to cpu state dump

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

7e8695ed 01/08/2010 07:12 pm Igor V. Kovalenko

sparc64: trace pstate and global register set changes

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

d780a466 01/08/2010 07:12 pm Igor V. Kovalenko

sparc64: change_pstate should have 32bit argument

- pstate is 32bit variable, no need to pass 64bit value around

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

d0652aa8 01/08/2010 05:58 pm Avi Kivity

linuxboot: fix gdt address calculation

The gdt address calculation in linuxboot.bin is broken in two ways: first
it loads %cs into %eax, but that instruction leaves the high bits of %eax
undefined and we did not clear them. Secondly, we completely ignore the...

ee021627 01/08/2010 05:58 pm Adam Lackorzynski

multiboot: Support arbitrary number of modules.

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

52001445 01/08/2010 05:58 pm Adam Lackorzynski

multiboot: Separate multiboot loading into separate file

Move multiboot loading code into separate files as suggested by Alex Graf.

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

076d2471 01/08/2010 05:58 pm Paolo Bonzini

Use vpath directive

The vpath directive has two advantages over the VPATH variable:
1) it allows to skip searching of .o files; 2) the default semantics
are to append to the vpath, so there is no confusion between "VPATH=xyz"
and "VPATH+=xyz".

Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper...

012f0879 01/08/2010 05:58 pm Stefan Weil

Makefile: Update unmodified config-devices.mak automatically

This makes rebuilds after source updates easier
for most users (who don't edit config-devices.mak).

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

c9f398e5 01/08/2010 05:58 pm H. Peter Anvin

debugcon: support for debugging consoles (e.g. Bochs port 0xe9)

Add generic support for debugging consoles (simple I/O ports which
when written to cause debugging output to be written to a target.)
The current implementation matches Bochs' port 0xe9, allowing the same...

ceb69615 01/08/2010 05:58 pm Michael S. Tsirkin

net: add API to disable/enable polling

When vhost is bound to a backend device, we need to stop polling it when
vhost is started, and restart polling when vhost is stopped.
Add an API for that for use by vhost, and implement in tap backend.

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

95a2f9bc 01/08/2010 05:58 pm François Revol

block/vdi: allow disk sizes not multiple of block size

The disk image I created from my old laptop disk with VBoxManage
internalcommand converthd obviously was not a multiple of 1MB as when
created from scratch. This fixes QEMU refusing it. We still require the...

810f49b5 01/08/2010 05:58 pm Luiz Capitulino

QMP: Drop wrong assert()

Some commands return a QList of QDicts, which is valid,
but will trig the assert().

Just drop it.

Reported-by: Nathan Baum <>
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

e726fe7d 01/08/2010 10:26 am malc

oss: workaround for cases when OSS_GETVERSION is not defined

Thanks to Juergen Lock.

Signed-off-by: malc <>

95372a39 01/07/2010 10:02 pm Blue Swirl

Sparc32: clear exception_index with -1 value

See also 821b19fe923ac49a24cdb4af902584fdd019cee6.

Spotted by Artyom Tarasenko and Igor Kovalenko.

Signed-off-by: Blue Swirl <>

0e8c9214 01/07/2010 08:08 pm Andreas Färber

Drop --whole-archive and static libraries

Juan has contributed a cool Makefile infrastructure that enables us to drop
static libraries completely:

Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-},
and link those object files directly into the executables....

18cb1d85 01/07/2010 03:55 pm Anthony Liguori

vnc: Fix artifacts in hextile decoding

02c2b87 introduced a regression whereas the foreground color in a hextile
update was not being properly invalidated leading to artifacts.

It's still necessary to explicitly invalidate the foreground color with a
SubrectColoured tile even though we no longer send a foreground color as...

41ea49b3 01/07/2010 09:57 am Andreas Färber

Cocoa: Shutdown when window is closed

The application is not very useful once the guest window is closed.
QEMU is not a document-based application; terminating it automatically
saves the user another action and resembles SDL behavior.

v2:
- Use delegate method, suggested by Juha Riihimäki....

12381085 01/07/2010 09:57 am Andreas Färber

Cocoa: Suppress window resize animation

Disable the nice resize animation, to avoid drawing glitches
following a guest's screen size change.

Based on patch by Juha Riihimäki.

Signed-off-by: Andreas Färber <>
Cc: Juha Riihimäki <>...

561ef251 01/07/2010 09:57 am Andreas Färber

Cocoa: Use optimized drawing for the window

Default is NO.

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

fd10a04e 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence type warning

Add const for "qemu" character literal, to avoid:

warning: initialization discards qualifiers from pointer target type

An earlier patch by John proposed to use char5. Since we do not modify
the text and later copy it into malloc'ed memory, marking it as const...

38ec7b53 01/07/2010 09:57 am Andreas Färber

Cocoa: Fix compilation on Mac OS X v10.4 and earlier

NSView's enterFullScreenMode:withOptions: and
exitFullScreenModeWithOptions: are available on v10.5
and later only. Undefined methods raise warnings and
undefined constants result in errors.

Reported by Ryan Schmidt....

d50f71dc 01/07/2010 09:57 am Andreas Färber

Cocoa: Mark the View as opaque

Default is NO.

Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html

Based on patch by Juha Riihimäki.

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

17ccbc27 01/07/2010 09:57 am Andreas Färber

Cocoa: Redraw the View asynchronously

Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html

Based on patch by Juha Riihimäki.

Signed-off-by: Andreas Färber <>
Cc: Juha Riihimäki <>...

f4918804 01/07/2010 09:57 am Andreas Färber

Cocoa: Don't unconditionally show the window

When QEMU was launched in no-graphic, Curses or VNC mode,
don't run it as a Cocoa application.

Based on patch by Alexander Graf.

v1:
- Avoid type mismatch warning for argv
- Drop noCocoa variable
- Coding Style changes...

44e4c0ba 01/07/2010 09:57 am Andreas Färber

Cocoa: ppc64 host support

Fix integer usage in the Cocoa backend: NSInteger is long on LP64.

http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/doc/uid/20000014-BBCFHHCD...

77047bb7 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence warning for cocoa_keycode_to_qemu

Make cocoa_keycode_to_qemu static, to avoid:

warning: no previous prototype for ‘cocoa_keycode_to_qemu’

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

04afa4a8 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence warning on Big Endian host

LITTLE_ENDIAN is undefined on Big Endian host.

Signed-off-by: Andreas Färber <>
Cc: John Arbuckle <>
Signed-off-by: malc <>

821b19fe 01/06/2010 07:35 pm Igor V. Kovalenko

sparc64: clear exception_index with -1 value

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

ea3fdd5d 01/06/2010 03:16 pm Anthony Liguori

Merge remote branch 'mst/for_anthony' into staging

dffbe217 01/03/2010 02:19 pm Igor V. Kovalenko

pass env to raise_exception if called outside of op_helper code

- this fixes stepping with gdb, where do_unassigned_access
may be called from gdb handler, outside of generated code

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

87f6d3f6 01/03/2010 02:16 pm Igor V. Kovalenko

sparc64: switch to MMU global registers in more MMU related traps

- extended range of MMU related traps which use MMU global registers,
as listed in Ultrasparc-IIi document
- no visible changes, since emulation do not cause added traps

Signed-off-by: Igor V. Kovalenko <>...

99596385 01/03/2010 04:14 am Aurelien Jarno

target-i386: Fix "call im" on x86_64 when executing 32-bit code

Similarly to what is done in 32938e127f50a40844a0fb9c5abb8691aeeccf7e
for "jmp im", trunc the immediate to 32-bit when not running in 64-bit
mode.

Reported-by: Kevin O'Connor <>...

3e372cf8 01/03/2010 04:14 am Aurelien Jarno

loader: don't call realloc(non_null, 0) when no symbols are present

According to C99, realloc(non_null, 0) != free(non_null), that's why
it is forbidden in QEMU.

When there are no symbols, nsyms equals to 0. Free the syms structure
and set it to NULL instead of reallocating it with a size of 0....

b430a225 12/30/2009 02:27 pm Blue Swirl

Sparc64: split DPRINTF into CPUIRQ and EBUS versions

Signed-off-by: Blue Swirl <>

302698e8 12/30/2009 02:26 pm Blue Swirl

Sparc64: fix compile with DEBUG_IRQ enabled

Signed-off-by: Blue Swirl <>

3caf2562 12/30/2009 03:26 am malc

sdl: print the reason why SDL thinks SDL_Init failed before exiting

Signed-off-by: malc <>

19e65b47 12/28/2009 04:22 pm Michael Tokarev

Add missing newline at the end of options list

In qemu-kvm this place looks even more "interesting":

-runas user     Change to user id user just before starting the VM.
-readconfig &lt;file&gt;
-writeconfig &lt;file&gt;
read/write config file-no-kvm disable KVM hardware virtualization...
60f67a9c 12/28/2009 01:37 pm Blue Swirl

Update Sparc64 OpenBIOS image to r649.

Signed-off-by: Blue Swirl <>

f6b6f1bc 12/27/2009 10:52 pm Blue Swirl

Sparc64: move APB PCI memory base to correct location

Signed-off-by: Blue Swirl <>

cf616802 12/27/2009 10:52 pm Blue Swirl

PCI: Fix bus address conversion

Pass physical addresses to map functions instead of PCI bus addresses.

Signed-off-by: Blue Swirl <>

6bb4ca57 12/27/2009 08:25 pm Blue Swirl

sparc: make command line available also via firmware configuration device

Signed-off-by: Blue Swirl <>

ff44c2f3 12/27/2009 11:09 am Richard Henderson

tcg: Add tcg_unsigned_cond.

Returns an unsigned version of a signed condition;
returns the original condition otherwise.

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

ecbe1576 12/25/2009 09:27 pm Blue Swirl

block/bochs: improve format checking

Signed-off-by: Blue Swirl <>

114cdfa9 12/25/2009 08:19 pm Kirill A. Shutemov

block.c: fix warning with _FORTIFY_SOURCE

CC    block.o
cc1: warnings being treated as errors
block.c: In function 'bdrv_open2':
block.c:400: error: ignoring return value of 'realpath', declared with attribute warn_unused_result

Signed-off-by: Kirill A. Shutemov <>...

00ccf932 12/25/2009 08:19 pm Kirill A. Shutemov

block/bochs.c: fix warning with _FORTIFY_SOURCE

CC    block/bochs.o
cc1: warnings being treated as errors
block/bochs.c: In function 'seek_to_sector':
block/bochs.c:202: error: ignoring return value of 'read', declared with attribute warn_unused_result...
5fdb3aa1 12/25/2009 08:19 pm Kirill A. Shutemov

savevm.c: fix warning with _FORTIFY_SOURCE

CC    savevm.o
cc1: warnings being treated as errors
savevm.c: In function 'file_put_buffer':
savevm.c:342: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make: *** [savevm.o] Error 1...
f0d98b05 12/25/2009 08:19 pm Kirill A. Shutemov

slirp/misc.c: fix warning with _FORTIFY_SOURCE

CC    slirp/misc.o
cc1: warnings being treated as errors
slirp/misc.c: In function 'fork_exec':
slirp/misc.c:209: error: ignoring return value of 'write', declared with attribute warn_unused_result
make: *** [slirp/misc.o] Error 1...
5a41ecc5 12/25/2009 08:19 pm Kirill A. Shutemov

hw/pc.c: fix warnings with _FORTIFY_SOURCE

CC    i386-softmmu/pc.o
cc1: warnings being treated as errors
/usr/src/RPM/BUILD/qemu-0.11.92/hw/pc.c: In function 'load_multiboot':
/usr/src/RPM/BUILD/qemu-0.11.92/hw/pc.c:614: error: ignoring return value of 'fread', declared with attribute warn_unused_result...
34ba360f 12/25/2009 08:19 pm Kirill A. Shutemov

path.c fix warning with _FORTIFY_SOURCE

CC    libuser/path.o
cc1: warnings being treated as errors
/usr/src/RPM/BUILD/qemu-0.11.92/path.c: In function 'new_entry':
/usr/src/RPM/BUILD/qemu-0.11.92/path.c:49: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result...
c71b5b4a 12/25/2009 08:18 pm Blue Swirl

PCI: partially revert 2e01c8cf4b076b05013c87723e3fc710b50a0a7a

Bus address conversion was not correct.

Signed-off-by: Blue Swirl <>

2e01c8cf 12/25/2009 06:50 pm Blue Swirl

PCI: make pci_mem_base private

Make pci_mem_base private to PCIBus. Add a function to set it.

Signed-off-by: Blue Swirl <>

2fe0ee97 12/25/2009 06:12 pm Blue Swirl

Fix Sparse error: dubious one-bit signed bitfield

Signed-off-by: Blue Swirl <>

f6dc18df 12/25/2009 06:12 pm Blue Swirl

Fix Sparse warning: dubious: !x & y

Signed-off-by: Blue Swirl <>

545557d4 12/25/2009 06:11 pm Blue Swirl

scsi: fix Sparse warning: Initializer entry defined twice

Both REWIND and REZERO_UNIT use 0x01, READ_POSITION and PRE_FETCH
share 0x34.

Signed-off-by: Blue Swirl <>

ad674e53 12/24/2009 08:40 pm Aurelien Jarno

MAC DBDMA: store register values in native endianness

Store the register values in native endianness, by dropping all the
endianness conversion functions, and converting the endianness in
dbdma_readl/dbdma_writel instead.

Also guard the endianness conversion with TARGET_WORDS_BIGENDIAN to...

c84bd4f1 12/24/2009 08:39 pm Gleb Natapov

Intel CPUs starting from pentium have apic

Intel CPUs starting from pentium have apic. Lets advertise it.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Aurelien Jarno <>