Statistics
| Branch: | Revision:

root @ 49a945a3

# Date Author Comment
7b8737de 01/20/2010 12:31 am Stefan Weil

eepro100: Fix multicast support

  • Handling of multicast list was missing.
  • Multicast all was missing.
  • Promiscuous mode for multicast frames was wrong.

This patch is a step to synchronize my maintainer version
of eepro100.c (git://repo.or.cz/qemu/ar7.git) with the...

4ef1a3d3 01/20/2010 12:31 am Igor V. Kovalenko

rtl8139: fix clang reporting unused assignment of VLAN tagging data

Currently we do not implement VLAN tagging for rtl8139(C+),
still data is read from ring buffer headers.

- augment unused assignment with TODO item
- cast txdw1 to void for now

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

baee019f 01/20/2010 12:31 am Paolo Bonzini

remove dead code from target-i386/exec.h

These are unused since edea5f0 (no need to define global registers in
cpu-exec.c, 2008-05-10).

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

49a945a3 01/20/2010 12:31 am Paolo Bonzini

kill regs_to_env and env_to_regs

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

f3a52e50 01/20/2010 12:31 am Stefan Weil

eepro100: Restructure code (new function tx_command)

Handling of transmit commands is rather complex,
so about 80 lines of code were moved from function
action_command to the new function tx_command.

The two new values "tx" and "cb_address" in the
eepro100 status structure made this possible without...

1c39457a 01/17/2010 10:36 pm Blue Swirl

Sparc32: Update OpenBIOS image to r666

Fixes the boot problem introduced by r665 image in
694b9309462f07307d16f492961f01271f10c245.

Signed-off-by: Blue Swirl <>

43bb98bf 01/17/2010 06:51 pm Blue Swirl

Sparc: improve CPU register dump

Common: * Remove unnecessary 0x prefix * Print %y * Fix NZVC flag print order to match CPU bit order

Sparc64 specific: * Print registers without line wrapping * Print %f40-%f63 * Pretty print CCR flags * Print %fsr and %fprs in full precision...

0ddbc96e 01/17/2010 10:51 am Mike Frysinger

fix linux-user microblaze ELF_ARCH definition

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

82584e21 01/17/2010 01:03 am malc

audio: include more information into audio_bug's output

Signed-off-by: malc <>

ff541499 01/16/2010 11:25 pm malc

Revert "sdlaudio: make it suck less"

This reverts commit 4839abe78fd466a3cf06faa7c362154afd5404f1.

The commit was badly broken, Gentoo has sdl as the default driver,
consequently 5 gentoo users have hit the breakage and were kind enough
to report, so thank you:...

787cfbc4 01/16/2010 11:06 am Blue Swirl

Sparc32: improve DMA controller IRQ debugging

Signed-off-by: Blue Swirl <>

dca47edd 01/16/2010 11:06 am Blue Swirl

ESP: improve IRQ debugging

Signed-off-by: Blue Swirl <>

10760f0f 01/16/2010 11:06 am Artyom Tarasenko

sparc32 do not clear interrupts when masking

Don't clear interrupts on disabling, because
  • Sun4M_SystemArchitecture_edited2.pdf doesn't describe
    that masking or un-masking IRQ shall clear pending ones.
  • Field tests also show that SPARCstation-20 doesn't...
694b9309 01/16/2010 11:05 am Blue Swirl

Update Sparc OpenBIOS images to r665

Signed-off-by: Blue Swirl <>

576c2cdc 01/15/2010 11:33 pm Artyom Tarasenko

sparc32 do_unassigned_access overhaul v2

According to pages 9-31 - 9-34 of "SuperSPARC & MultiCache Controller
User's Manual":

1. "A lower priority fault may not overwrite the
MFSR status of a higher priority fault."
2. The MFAR is overwritten according to the policy defined for the MFSR...

09aac126 01/15/2010 08:32 am Richard Henderson

tcg/x86_64: Avoid unnecessary REX.B prefixes.

The existing P_REXB internal opcode flag unconditionally emits
the REX prefix. Technically it's not needed if the register in
question is %al, %bl, %cl, %dl.

Eliding the prefix requires splitting the P_REXB flag into two,...

fccd2613 01/15/2010 01:06 am Edgar E. Iglesias

nand: Correct random data reads.

Random reading depends on having the last row/page latched and not beeing
clobbered between read and any following random reads.

Also, s->iolen must be updated when loading the io/data register with
randomly accessed flash data....

b88bc808 01/14/2010 09:01 pm Stefan Weil

Makefile: Fix message for missing configure

When make is called without a valid configuration,
it should tell the user what to do.

Revision 0e8c9214ba1d4128cf92442cd343bc3733478261
was a regression which resulted in a message
which was no longer user friendly...

b3d6b959 01/14/2010 09:00 pm Kazu Hirata

target-m68k: fix a typo in 'P' packet processing

Attached is a patch to fix a typo in 'P' packet processing for M68K.

Without this patch, QEMU fails to honor GDB's P packets from GDB
(writing to registers) for the address registers (A0 - A7).

The problem is because of an obvious typo. Notice that the second...

57169903 01/14/2010 07:16 pm Richard Henderson

tcg/x86_64: Special-case all 32-bit AND operands.

This avoids an unnecessary REX.W prefix when dealing with AND
operands that fit into a 32-bit quantity. The most common change
actually seen is movz[wb]q -> movz[wb]l.

Similarly, avoid REXW in ext{8,16}u_i64 tcg opcodes....

0a4e7cd2 01/14/2010 05:15 pm Shin-ichiro KAWASAKI

sh: sm501: Add hardware cursor feature

This patch adds hardware cursor feature to SM501 graphics chip emulation,
to make the graphic console more useful for QEMU SH4 users.

Signed-off-by: Shin-ichiro KAWASAKI <>
Signed-off-by: Aurelien Jarno <>

8b0ee8c5 01/14/2010 04:59 pm Vince Weaver

alpha: fix stat64 issue

The stat64/fstat64 syscalls are broken for alpha linux-user.

This is because Alpha, even though it is native 64-bits, has a stat64
syscall that is different than regular stat. This means that the
"TARGET_LONG_BITS==64" check in syscall.c isn't enough. Below is...

dcbc9a70 01/14/2010 03:42 pm Edgar E. Iglesias

ppc-40x: Correct ESR for zone protection faults.

Raise the zone protection fault in ESR for TLB faults caused by
zone protection bits.

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

ec5c3e48 01/14/2010 03:42 pm Edgar E. Iglesias

ppc-40x: Correct decoding of zone protection bits.

The 40x MMU has 15 zones in the ZPR register.

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

c5b9729a 01/14/2010 03:42 pm Edgar E. Iglesias

ppc-40x: Correct check for Endian swapping TLB entries.

Bailout on 40x TLB entries with endianess swapping only if the entry
is valid.

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

f25359cd 01/14/2010 03:41 pm Edgar E. Iglesias

ppc-40x: Get TLB attributes from TLBLO.

The ZSEL was incorrectly beeing decoded from TLBHI. Decode it from
TLBLO instead.

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

bb0300dc 01/14/2010 01:14 am Gleb Natapov

Add KVM paravirt cpuid leaf

Initialize KVM paravirt cpuid leaf and allow user to control guest
visible PV features through -cpu flag.

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

1cb1a66a 01/14/2010 01:14 am Milan Plzik

Qemu's internal TFTP server breaks lock-step-iness of TFTP

According to RFC 1350 and RFC 2347, TFTP server should answer RRQ by
either OACK or DATA packet. Qemu's internal TFTP server answers RRQ with
additional options by sending both OACK and DATA packet, thus breaking...

96560cb3 01/14/2010 01:14 am Markus Armbruster

docs: New qdev-device-use.txt

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

b783e409 01/14/2010 01:14 am Kevin Wolf

block: Introduce BDRV_O_NO_BACKING

If an image references a backing file that doesn't exist, qemu-img info fails
to open this image. Exactly in this case the info would be valuable, though:
the user might want to find out which file is missing.

This patch introduces a BDRV_O_NO_BACKING flag to ignore the backing file when...

756e6736 01/14/2010 01:14 am Kevin Wolf

block: Add bdrv_change_backing_file

Introduce the functions needed to change the backing file of an image. The
function is implemented for qcow2.

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

3e85c6fd 01/14/2010 01:14 am Kevin Wolf

qemu-img rebase

This adds a rebase subcommand to qemu-img which allows to change the backing
file of an image.

In default mode, both the current and the new backing file need to exist, and
after the rebase, the COW image is guaranteed to have the same guest visible...

347ed55c 01/14/2010 01:14 am Kevin Wolf

osdep.c: Fix accept4 fallback

Commit 3a03bfa5 added a fallback in case the Linux kernel running qemu is older
than the kernel of the build system. Unfortunately, v1 was committed instead of
v2, so the code has a bug that was revealed in the review (checking for the...

5cdc9b76 01/14/2010 01:14 am Amit Shah

vl.c: Remove dead assignment

clang-analyzer pointed out the value of 'sockets' is never reused.

Signed-off-by: Amit Shah <>
CC: Andre Przywara <>
Signed-off-by: Anthony Liguori <>

22c253d9 01/14/2010 01:14 am Amit Shah

virtio: net: remove dead assignment

clang-analyzer points out value assigned to 'len' is not used.

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

d7209371 01/14/2010 01:14 am Amit Shah

x86: translate.c: remove dead assignment

clang-analyzer points out a redundant assignment.

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

c4af120f 01/14/2010 01:14 am Amit Shah

hw/vga.c: remove dead assignment

clang-analyzer points out a redundant assignment.

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

f7dcfac0 01/14/2010 01:14 am Amit Shah

qcow2-refcount: remove dead assignment

clang-analyzer points out a redundant assignment.

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

2da69c8d 01/14/2010 01:14 am Amit Shah

json-parser: remove dead increment

clang-analyzer points out a redundant increment.

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

3f5075ae 01/14/2010 01:14 am Christoph Hellwig

block: flush backing_hd in the right place

The backing device is only modified from bdrv_commit. So instead of
flushing it every time bdrv_flush is called for the front-end device
only flush it after we're written data to it in bdrv_commit.

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

f8012c13 01/14/2010 01:14 am Kevin Wolf

qcow/qcow2: implement bdrv_aio_flush

Now that we do not have to flush the backing device anymore implementing
the bdrv_aio_flush method for image formats is trivial.

[hch: forward ported to qemu mainline from a product tree]

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

4277906d 01/14/2010 01:14 am Christoph Hellwig

virtio-blk: remove dead variable in virtio_blk_handle_scsi

As pointed out by clang size is only ever written to, but never actually
used.

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

f91672e5 01/14/2010 01:14 am Paolo Bonzini

use cross-prefix for pkgconfig

Since pkgconfig can give different output for different targets,
it should be tried with the cross-compilation prefix first.

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

67c274d3 01/14/2010 01:14 am Paolo Bonzini

fixes to the static compilation case for sdl

After the next commit, pkg-config could be used for the shared library
configuration case and sdl-config for static libraries. So I prepare
the test here by doing two changes:

at the same time I remove useless backslashes from the invocation of...

9316f803 01/14/2010 01:14 am Paolo Bonzini

use pkg-config for sdl whenever available

Together with the first patch this enables using the prefixed
pkg-config, thus picking up the correct flags for SDL.

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

4e2b0658 01/14/2010 01:14 am Paolo Bonzini

use pkg-config for libcurl whenever available

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

8f0056b7 01/14/2010 01:14 am Paolo Bonzini

move kbd/mouse handling to input.c

Move 200 lines out of vl.c already into common code that only needs to
be compiled once.

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

884a0c76 01/13/2010 08:59 pm Blue Swirl

pcnet: remove dead nested assignment, spotted by clang

Although the value stored to 'addr' is used in the enclosing expression,
the value is never actually read from 'addr'.

Probably a typo.

Signed-off-by: Blue Swirl <>

f7e683b8 01/13/2010 08:58 pm Blue Swirl

Sparc32: remove dead increment, spotted by clang

Signed-off-by: Blue Swirl <>

f368a3ce 01/13/2010 08:55 pm Blue Swirl

Sparc32: remove a variable used only for debugging to avoid a clang warning

Signed-off-by: Blue Swirl <>

a9be79d6 01/13/2010 08:54 pm Blue Swirl

Sparc: comment out unused variable, spotted by clang

The variable is_annulled is referenced in a FIXME comment, so instead
of removing the variable, comment out the lines so that the FIXME
can be understood.

Signed-off-by: Blue Swirl <>

89835363 01/13/2010 08:52 pm Blue Swirl

Sparc32: remove unused env/envs variables, spotted by clang

Signed-off-by: Blue Swirl <>

701eed4b 01/13/2010 08:49 pm Blue Swirl

Sparc32: remove unused variable, spotted by clang

Signed-off-by: Blue Swirl <>

cb95c2e4 01/13/2010 02:50 pm Stefan Weil

pci: Add missing 'const' in argument to pci_get_xxx

pci_get_byte, pci_get_word, pci_get_long and pci_get_quad
all take a const uint8_t pointer, because they only read
the configuration data.

Their prototypes should reflect this fact.

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

938a6324 01/13/2010 02:50 pm Stefan Weil

eepro100: Update ROM file support

Use new way to associate ROM files to devices.

Currently, there is only a ROM file for i82559er
included in QEMU, so the patch does not add
.romfile for the other devices.

When flexible mode is fixed in eepro100, adding...

61702408 01/13/2010 02:28 pm Stefan Weil

eepro100: Fix initial value for PCI_STATUS

The numerical value was wrong (0x2800 instead of 0x0280)
which indeed did not make sense.

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

72ff25e4 01/13/2010 12:59 am Juergen Lock

Workaround for broken OSS_GETVERSION on FreeBSD, part two

Turns out on those versions of FreeBSD (>= 7.x) that know OSS_GETVERSION
the ioctl doesn't actually work yet (except in the Linuxolator), so if
building on FreeBSD assume the sound drivers are new enough if the ioctl...

ffd8b67f 01/12/2010 10:32 pm Jan Kiszka

kvm: Use kvm-kmod headers if available

Since kvm-kmod-2.6.32.2 we have an alternative source for recent KVM
kernel headers. Use it when available and not overruled by --kerneldir.

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

dae5079a 01/12/2010 10:32 pm Jan Kiszka

kvm: Detect availability of kvm_para.h

Will be required for upcoming KVM cpuid leaf. Host kernels >= 2.6.32 as
well as future kvm-kmod releases (more recent than kvm-kmod-2.6.32.3)
do/will provide them.

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

c9f79a3f 01/12/2010 10:32 pm Michael S. Tsirkin

virtio-net: mac property is mandatory

Mac feature bit isn't going to work as all network cards already have a
'mac' property to set the mac address. Remove it from mask and add in
get_features.

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

23842aab 01/12/2010 10:27 pm Blue Swirl

monitor: fix dead assignment spotted by clang

Value stored to 'nb_per_line' is never read.

Signed-off-by: Blue Swirl <>

3eb26cc2 01/12/2010 10:04 pm Blue Swirl

Sparc64: Fix PCI config accessor order

Fix by Igor Kovalenko.

Signed-off-by: Blue Swirl <>

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

tcg-sparc: Implement ext32[su]_i64

The 32-bit right-shift instructions is defined to extend the shifted
output to 64-bits. A shift count of zero therefore is a simple
extension without actually shifting.

Signed-off-by: Richard Henderson <>...

583d1215 01/12/2010 09:59 pm Richard Henderson

tcg-sparc: Implement division properly.

The {div,divu}2 opcodes are intended for systems for which the
division instruction produces both quotient and remainder. Sparc
is not such a system. Indeed, the remainder must be computed as

quot = a / b
rem = a - (quot * b)...
5e143c43 01/12/2010 09:59 pm Richard Henderson

tcg-sparc: Do not remove %o012 from 'r' constraint.

Only 'L' constraint needs that.

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

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