Statistics
| Branch: | Revision:

root / hw @ 7b9cbadb

# Date Author Comment
7b9cbadb 03/15/2010 12:30 am Aurelien Jarno

mips: add header to mips_int.c and mips_timer.c

Signed-off-by: Aurelien Jarno <>

66c80e75 03/14/2010 10:52 am Vagrant Cascadian

spelling typo (compatibilty) in hw/fw_cfg.c

here's a trivial patch to fix the spelling of "compatibility":

Signed-off-by: Vagrant Cascadian <>
Signed-off-by: Blue Swirl <>

995bf0ca 03/13/2010 01:14 pm Gerd Hoffmann

fdc: fix drive property handling.

Fix the floppy controller init wrappers to set the drive properties
only in case the DriveInfo pointers passed in are non NULL. This allows
to set the properties using -global.

Signed-off-by: Gerd Hoffmann <>...

9eedeb3b 03/09/2010 04:47 pm Luiz Capitulino

QMP: Introduce WATCHDOG event

It's emitted whenever the watchdog device's timer expires. The action
taken is provided in the 'data' member.

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

27f3f8a3 03/09/2010 04:47 pm Markus Armbruster

qdev: Catch attempt to attach more than one device to a netdev

Guest device and host netdev are peers, i.e. it's a 1:1 relation.
However, we fail to enforce that:

$ qemu -nodefaults --nographic -netdev user,id=net0 -device e1000,netdev=net0 -device virtio-net-pci,netdev=net0 -monitor stdio...
32bb404a 03/09/2010 04:47 pm Markus Armbruster

scsi: Make device scsi-disk reject /dev/sg*

You're supposed to use scsi-generic for that. Which rejects anything
but /dev/sg*.

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

6937b376 03/09/2010 04:47 pm Gerd Hoffmann

kbd leds: ps/2 kbd

Add led status notification support to the ps/2 kbd driver.

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

bd87813e 03/09/2010 04:47 pm Gerd Hoffmann

kbd leds: usb kbd

Add led status notification support to the usb kbd driver.

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

6bf38816 03/09/2010 04:47 pm Markus Armbruster

qdev: Improve diagnostics for bad property values

Property "vlan" reports "failed to parse" even when the value parses
just fine, but the result doesn't name an existing VLAN.

Similarly, properties "drive", "chr" and "netdev" misleadingly report
"failed to parse" when the value doesn't name an existing host device....

80cd3478 03/08/2010 07:30 pm Luiz Capitulino

QMP: Introduce RTC_CHANGE event

Emitted whenever the RTC time changes.

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

cf602c7b 03/08/2010 07:30 pm Izik Eidus

adding helper pci functions

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

1a8e2aaa 03/08/2010 07:30 pm Chris Kilgour

pcnet APROMWE bit location (retry)

According to AMD document 21485D pp.141, APROMWE is bit 8 of BCR2.

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

75422b0d 03/08/2010 07:30 pm Amit Shah

qdev: Add a DEV_NVECTORS_UNSPECIFIED enum for unspecified nr of MSI vectors

net.c used a constant to signify no MSI vectors were specified. Extend
that to all qdev devices.

Signed-off-by: Amit Shah <>
Reported-by: "Michael S. Tsirkin" <>...

573fb60c 03/08/2010 07:30 pm Amit Shah

virtio-pci: Use DEV_NVECTORS_UNSPECIFIED instead of -1 for virtio-serial

Use the named constant instead of -1.

Signed-off-by: Amit Shah <>
Reported-by: "Michael S. Tsirkin" <>
Signed-off-by: Anthony Liguori <>

554a310b 03/08/2010 07:30 pm Luiz Capitulino

block: Emit BLOCK_IO_ERROR before vm_stop() call

The next commit will move the STOP event into do_vm_stop(), to
have the expected event sequence we need to emit the I/O error
event before calling vm_stop().

The expected sequence is:

{ "event": "BLOCK_IO_ERROR" [...] }...

921e169d 03/08/2010 01:31 pm Aurelien Jarno

ppc: don't define bamboo-0.13 as the default machine

It has been broken by commit 977b6b91cee1132f8c7b12d22f4b273091598e44.

Signed-off-by: Aurelien Jarno <>

70539e18 03/07/2010 05:48 pm Blue Swirl

Update to a hopefully more future proof FSF address

See also 8167ee883931cb20c6264fc19d040ce2dc6ceaaa,
530e7615ce3c01882e582c84dc6304ab98a3d5c5 and
fad6cb1a565bb73f83fc0e2654489457b489e436.

Signed-off-by: Blue Swirl <>

99aba0c4 03/07/2010 12:05 am Christoph Hellwig

scsi: update comment on the standards revision

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Aurelien Jarno <>

21be440c 03/06/2010 11:56 pm Amit Shah

ppc440_bamboo: Disable new virtio-serial features for 0.12 machine type

Disable the MULTIPORT feature and MSI vectors for the 0.12 machine
types; those features are added only for 0.13 onwards.

Signed-off-by: Amit Shah <>
Signed-off-by: Aurelien Jarno <>

977b6b91 03/06/2010 11:56 pm Amit Shah

ppc440_bamboo: Add 0.12 and 0.13 machine types for backward compat

Add a 0.12 machine type for compatibility with older versions. Mark the
default one as 0.13.

Signed-off-by: Amit Shah <>
Signed-off-by: Aurelien Jarno <>

ad509737 03/06/2010 11:55 pm Amit Shah

s390-virtio: Fix compile error for virtio-block init

Commit 428c149b0be790b440e1cbee185b152cdb22feec modified the argument
that virtio_blk_init takes. Update the s390 bus code that calls this
function.

Signed-off-by: Amit Shah <>
CC: Christoph Hellwig <>...

cdee7bdf 03/06/2010 11:28 pm Aurelien Jarno

hw/serial.c: fix THRE interrupt clearing

UART_IIR_THRI is not a mask, but a possible value for the IIR ID.
Use UART_IIR_ID to extract this value.

Broken by commit 71e605f80313a632cc6714cde7bd240042dbdd95.

Signed-off-by: Aurelien Jarno <>

2f4f22bd 03/06/2010 09:23 pm Aurelien Jarno

hw/serial.c: fix indentation

Signed-off-by: Aurelien Jarno <>

f374e826 03/04/2010 05:14 pm Anthony Liguori

Merge remote branch 'qemu-kvm/uq/master' into pulls

6cb2996c 03/04/2010 05:29 am Jan Kiszka

x86: Extend validity of bsp_to_cpu

As we hard-wire the BSP to CPU 0 anyway and cpuid_apic_id equals
cpu_index, bsp_to_cpu can also be based on the latter directly. This
will help an early user of it: KVM while initializing mp_state.

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

ea375f9a 03/04/2010 05:29 am Jan Kiszka

KVM: Rework VCPU state writeback API

This grand cleanup drops all reset and vmsave/load related
synchronization points in favor of four(!) generic hooks:

- cpu_synchronize_all_states in qemu_savevm_state_complete
(initial sync from kernel before vmsave)...

60e4c631 03/04/2010 05:28 am Avi Kivity

Allocate memory below 4GB as one chunk

Instead of allocating a separate chunk for the first 640KB and another
for 1MB+, allocate one large chunk. This plays well in terms of alignment
and size with large pages.

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

78728c92 03/03/2010 01:47 pm Stefan Weil

eepro100: Keep includes sorted

I always try to keep standard includes sorted
and add a comment why they are there (so they
can be removed when they are no longer needed).

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

e7493b25 03/03/2010 01:47 pm Stefan Weil

eepro100: Remove C++ comments

C++ comments are unwanted, so this is fixed here.

  • Replace C++ comments by C comments.
  • Put code which was deactivated by a C++ comment in #if 0...#endif.

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

f80a7fc3 03/03/2010 01:44 pm Stefan Weil

eepro100: Add diagnose command

Real hardware would run an internal self-test.
The emulation just returns a passed status.

Original patch was from Reimar Döffinger, thanks.

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

3d0f4b9b 03/03/2010 01:44 pm Stefan Weil

eepro100: New function for reading command block

Move code which reads the command block to the
new function read_cb. The patch also fixes some
endianess issues related to the command block
and moves declarations of local variables to
the beginning of the block....

ec1d02d8 03/03/2010 01:34 pm Stefan Weil

eepro100: Use tx.status

There is no need for a local variable "status".
Using tx.status makes it clearer which status
is addressed.

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

cc02c66c 03/03/2010 01:34 pm Stefan Weil

eepro100: Prettify code (no functional changes)

  • Fix indentation.

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

cb25a3fb 03/03/2010 01:34 pm Stefan Weil

eepro100: Fix CU Start command

CU Start is allowed when the CU is in the idle or suspended state.

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

e824012b 03/03/2010 01:34 pm Stefan Weil

eepro100: Support RNR interrupt

The RNR interrupt is triggered under these conditions:

  • the RU is not ready to receive a frame due to missing resources
  • the RU is ready and a RU abort command was requested

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

e715c8e8 03/03/2010 01:34 pm Stefan Weil

eepro100: Replace variable name to fix a compiler warning

When compiling with -Wshadow, gcc gives a warning
which is fixed by renaming stat -> status.

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

b1e87018 03/03/2010 01:34 pm Stefan Weil

eepro100: Use symbolic names for bits in EEPROM id

V2 - Use UPPER_CASE for enum values

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

c5bac302 03/03/2010 01:34 pm Stefan Weil

eepro100: Remove old unused code

This code is no longer needed.

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

ced5296a 03/03/2010 01:34 pm Stefan Weil

eepro100: Use symbolic names and BIT macros in binary operations

Instead of magic numbers like 0x8000, symbolic names are used
for the SCB command and status bits.

There are too many configuration bits to use symbolic names
there, too. Using the BIT macro is a little help when comparing...

762401e2 03/03/2010 01:33 pm Stefan Weil

eepro100: Add device descriptions

Add descriptions for all devices.
These descriptions are shown when users call
qemu -device ?

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

230a167c 03/03/2010 01:33 pm Stefan Weil

eepro100: Update copyright notice

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

ba19f2de 03/03/2010 01:33 pm Stefan Weil

eepro100: Add TODO list

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

da51e79b 03/03/2010 01:33 pm Stefan Weil

eepro100: Support gpxe boot for all eepro100 devices

Only two boot ROM files are needed for all devices.

  • Add these GPXE ROM files using new naming convention
    (as discussed on qemu-devel). Both files were created
    with http://rom-o-matic.net/, PCI vendor / device ids...
6cded3a4 03/03/2010 01:33 pm Stefan Weil

eepro100: Fix PXE boot

The phy handling was wrong for PXE, GPXE boot:
GPXE's eepro100 driver did not detect a valid link.

This is fixed here.

V2 - Use UPPER_CASE for enum values

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

0908bba1 03/03/2010 01:33 pm Stefan Weil

eepro100: Add missing SCB register names

Some system control block registers were addressed
using their offset value. Use symbolic names now
and clean the documentation.

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

ce0e58b3 03/03/2010 01:33 pm Stefan Weil

eepro100: Fix compiler errors from debug messages

When debug output was enabled (by defining DEBUG_EEPRO100),
some debug messages resulted in a compiler error.

This is fixed here.

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

35bed8ee 03/01/2010 05:29 am Paul Brook

Move ioport.h out of cpu-all.h

Only include ioport.h where it is actually needed.

Signed-off-by: Paul Brook <>

6049f4f8 02/28/2010 06:54 pm Richard Henderson

alpha-linux-user: Implement signals.

Move userland PALcode handling into linux-user main loop so that
we can send signals from there. This also makes alpha_palcode.c
system-level only, so don't build it for userland. Add defines
for GENTRAP PALcall mapping to signals....

75bb6589 02/27/2010 08:48 pm Liu Yu

powerpc/e500: adjust fdt and ramdisk loading addr

Since kernel uimage is getting bigger,
old fixed loading bases will result in regions overlap.

Add pad for fdt and ramdisk, so that they won't overlap with uimage.

Signed-off-by: Liu Yu <>...

dbf916d8 02/27/2010 08:47 pm Aurelien Jarno

powerpc: fix compilation with CONFIG_FDT undefined

Signed-off-by: Aurelien Jarno <>

04088adb 02/27/2010 05:30 pm Liu Yu

powerpc/booke: move fdt loading to rom infrastructure

It's convinent to use rom to checking overlap, to reset etc.
And uImage and ramdisk loading has already moved to it.

Also, after we add fdt to rom, free it.

Signed-off-by: Liu Yu <>...

c4963817 02/27/2010 05:21 pm Liu Yu

target-ppc: add synchronize register for booke init

So that the following registers init could be flushed back to kvm.

Signed-off-by: Liu Yu <>
Acked-by: Hollis Blanchard <>
Signed-off-by: Aurelien Jarno <>

d44168ff 02/25/2010 03:29 pm Paul Brook

Fix -usbdevice crash

If -usbdevice is used on a machine with no USB busses, usb_create
will fail and return NULL. Patch below handles this failure gracefully
rather than crashing when we try to init the device.

Signed-off-by: Paul Brook <>

05447803 02/23/2010 09:23 pm Frediano Ziglio

rewrote timer implementation for rtl8139.

Add a QEMU timer only when needed (timeout status not set, timeout
irq wanted and timer set).

This patch is required for Darwin. Patch has been tested under
FreeBSD, Darwin and Linux.

Signed-off-by: Frediano Ziglio <>...

71e605f8 02/23/2010 12:16 am Justin T. Gibbs

Fix lost serial TX interrupts. Report receive overruns.

o Implement receive overrun status. The FreeBSD uart driver
relies on this status in it's probe routine to determine the size
of the FIFO supported.
o As per the 16550 spec, do not overwrite the RX FIFO on an RX overrun....

63e6f31d 02/22/2010 11:23 pm Michael S. Tsirkin

apc_pci: simplify using rwhandler

Use rwhandler to simplify apb_pci.

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

8414f45c 02/22/2010 11:02 pm Michael S. Tsirkin

apb_pci: minor cleanup

pci_data_write ignores high 8 bit in address,
so there seems to be no need to set them
in apb_pci.

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

f21126df 02/22/2010 10:42 pm Blue Swirl

Fix arm-softmmu compile

cc1: warnings being treated as errors
/src/qemu/hw/pl181.c: In function 'pl181_fifo_run':
/src/qemu/hw/pl181.c:185: error: 'value' may be used uninitialized in this function

Signed-off-by: Blue Swirl <>

bc3b26f5 02/22/2010 05:33 pm Paul Brook

PL181 write fix

The PL181 data transfer loop incorrectly terminates after the last FIFO
word is popped, discarding the last 3 bytes of data on a write transfer.

Signed-off-by: Paul Brook <>

4fc8d671 02/20/2010 10:29 am Blue Swirl

Fix warning on mingw32

/src/qemu/hw/ide/core.c: In function 'ide_drive_pre_save':
/src/qemu/hw/ide/core.c:2740: warning: comparison is always false due to limited range of data type

Signed-off-by: Blue Swirl <>

4c5b10b7 02/19/2010 11:53 pm Jes Sorensen

QEMU e820 reservation patch

Hi,

Kevin and I have agreed on the approach for this one now. So here is
the latest version of the patch for QEMU, submitting e820 reservation
entries via fw_cfg.

Cheers,
Jes

Use qemu-cfg to provide the BIOS with an optional table of e820 entries....

0f853a38 02/19/2010 11:53 pm Kevin Wolf

qdev: Free opts on failed do_device_add

If the device can't be created, don't leak the QemuOpts and release the id of
the device that should have been added by the failed device_add.

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

ed487bb1 02/19/2010 11:33 pm Marcelo Tosatti

ide save/restore pio/atapi cmd transfer fields and io buffer

Save/restore information necessary to continue in progress PIO/ATAPI CMD
transfers.

This includes the IO buffer.

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

68735b6c 02/19/2010 11:32 pm Kevin O'Connor

USB HID does not support Set_Idle

I found that the QEMU USB keyboard support does not work properly with
the Set_Idle command. Once a non-zero value is given to Set_Idle,
then the keyboard reports an event on every poll - not based on the
time issued in the Set_Idle command....

d76fa62d 02/19/2010 11:32 pm Amit Shah

pc: Bump up pc version to 0.13 and add a 0.12 compat version

The version 0.13 will be the new default and compatibility options will
be added to the 0.12 version.

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

8bfbde6d 02/19/2010 11:32 pm Amit Shah

pc: Add backward compatibility options for virtio-serial

virtio-serial-pci can support multiple ports in the current development
version that will become 0.13. Add compatibility options for the 0.12
and 0.11 pc machine types.

Signed-off-by: Amit Shah <>...

ee4d45be 02/19/2010 11:32 pm Michael S. Tsirkin

virtio-serial: don't set MULTIPORT for 1 port dev

Since commit 98b19252cf1bd97c54bc4613f3537c5ec0aae263, all
serial devices declare MULTIPORT feature.
To allow 0.12 compatibility, we should clear this when
max_nr_ports is 1.

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

7b665b66 02/19/2010 11:32 pm Amit Shah

virtio-serial: pci: Allow MSI to be disabled

Michael noted we don't allow disabling of MSI for the virtio-serial-pci
device. Fix that.

Signed-off-by: Amit Shah <>
CC: "Michael S. Tsirkin" <>
Signed-off-by: Anthony Liguori <>

395560c8 02/19/2010 11:18 pm Luiz Capitulino

Monitor: Convert pci_device_hot_add() to cmd_new_ret()

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

053801bc 02/19/2010 11:18 pm Luiz Capitulino

Monitor: Convert pci_device_hot_remove() to cmd_new_ret()

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

9edf5051 02/19/2010 09:02 pm Anthony Liguori

Merge remote branch 'mst/for_anthony' into staging

6f57bbf4 02/15/2010 07:49 pm Artyom Tarasenko

sparc32 fix spurious dma interrupts v2

Don't raise irq when not enabled.
Raise irq on enabling if DMA_INTR is set
Don't clear irq unless it was raised by DMA, as there are other irq sources
Don't set DMA_INTR bit spuriously.

v1->v2:
- Don't clear irq unless it was raised by DMA...

47de922d 02/15/2010 07:49 pm Blue Swirl

Revert "Sparc32: improve DMA controller IRQ debugging"

This reverts commit 787cfbc432bf1d353a77cbdb613754f3963371a3.

d86f0e32 02/14/2010 04:10 pm Alexander Graf

PPC: Uninorth config space accessor

The Uninorth PCI bridge requires different layouts in its PCI config space
accessors.

This patch introduces a conversion function that makes it compatible with
the way Linux accesses it.

I also kept an OpenBIOS compatibility hack in. I think it'd be better to...

0f921197 02/14/2010 04:10 pm Alexander Graf

PPC: Use Mac99_U3 type on ppc64

The "Mac99" type so far defines a "U2" based configuration. Unfortunately,
there have never been any U2 based PPC64 machines. That's what the U3 was
developed for.

So let's split the Mac99 machine in a PPC64 and a PPC32 machine. The PPC32...

915cd3a9 02/14/2010 04:10 pm Alexander Graf

PPC: Include dump of lspci -nn on real G5

To ease debugging and to know what we're lacking, I found it really useful to
have an lspci dump of a real U3 based G5 around. So I added a comment for it.

If people don't think it's important enough to include this information in the...

fa0be69a 02/14/2010 04:10 pm Alexander Graf

PPC: Make interrupts work

The interrupt code as is didn't really work for me. I couldn't even convince
Linux to take interrupt 9 in an interrupt-map.

So let's do this right. Let's map all PCI interrupts to 0x1b - 0x1e. That way
we're at least a small step closer to what real hardware does....

dc333cd6 02/14/2010 04:10 pm Alexander Graf

PPC: tell the guest about the time base frequency

Our guest systems need to know by how much the timebase increases every second,
so there usually is a "timebase-frequency" property in the cpu leaf of the
device tree.

This property is missing in OpenBIOS....

dffc07ca 02/14/2010 04:10 pm Alexander Graf

PPC: Use macio IDE controller for Newworld

Per default Linux doesn't come with a lot of storage adapters enabled on
Mac configurations. The one that's pretty much always present is the pmac-ide,
while the cmd64x is almost never included in any distribution....

a9ceb76d 02/14/2010 04:10 pm Alexander Graf

PPC: Get rid of segfaults in DBDMA emulation

While trying to find the right channel number for the DBDMA emulation I
stumbled across segmentation faults that were purely triggered by the guest.

The guest should never have the possiblity to segfault us, so let's check...

a2236d48 02/14/2010 04:10 pm Alexander Graf

PPC: Add USB per default on U3

Linux with CONFIG_PPC64 doesn't support ADB devices anymore, so we have to
use USB for keyboard and mouse.

This patch enables USB per default on U3 and adds a virtual keyboard and mouse
there.

Signed-off-by: Alexander Graf <>...

01764fe0 02/14/2010 04:10 pm Michael S. Tsirkin

versatile_pci: convert to symbolic names

This converts versatile_pci to use symbolic
constants. Verified by comparing binary to
original one.

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

a408b1de 02/14/2010 04:10 pm Michael S. Tsirkin

versatile_pci: cleanup

Cleanup versatile_pci: no need to re-set fields
to zero (pci core sets 0 already), use set_word
for status field. Compile-tested only, but seems obvious.

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

186993ee 02/14/2010 04:10 pm Michael S. Tsirkin

pci: move pcibus_t to qemu-common

move pcibus_t to qemu-common.h to simplify header dependencies.

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

9f6f0423 02/14/2010 04:10 pm Michael S. Tsirkin

pci_host: rewrite using rwhandler

Save a ton of code by switching pcihost to use rwhandler.

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

204ff571 02/14/2010 11:01 am Blue Swirl

dec: use PCI accessors

Signed-off-by: Blue Swirl <>

9fe52c7f 02/14/2010 10:27 am Blue Swirl

sparc64: use PCI accessors for APB/PBM

Remove useless set to zero lines. Latency programming should be
done by BIOS, reset value is zero.

Add revision to APB, don't enable PCI_COMMAND_MASTER and set status
according to APB specification.

Signed-off-by: Blue Swirl <>

bc798c77 02/14/2010 09:24 am Blue Swirl

Remove conditional rom loading support

Commit c2039bd0ffce8807e0eaac55254fde790825fa92 made rom loading
automatic for non-PC architectures. Remove now mostly unused
conditional rom loading support.

Signed-off-by: Blue Swirl <>

b5937f29 02/13/2010 09:37 am Isaku Yamahata

pci: fix info pci with host bridge.

This patch fixes 525e05147d5a3bdc08caa422d108c1ef71b584b5.
pci host bridge doesn't have header type of bridge.
The check should be by header type, instead of pci class device.

Cc: Blue Swirl <>
Cc: "Michael S. Tsirkin" <>...

c730256b 02/13/2010 09:00 am Blue Swirl

Merge branch 'for_anthony' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu

  • 'for_anthony' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu:
    pci: fix pci_find_bus()
9752c371 02/11/2010 12:53 am Christoph Hellwig

virtio-blk: add topology support

Export all topology information in the block config structure,
guarded by a new VIRTIO_BLK_F_TOPOLOGY feature flag.

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

ee3659e3 02/11/2010 12:53 am Christoph Hellwig

scsi: add topology support

Export the physical block size in the READ CAPACITY (16) command,
and add the new block limits VPD page to export the minimum and
optiomal I/O sizes.

Note that we also need to bump the scsi revision level to SPC-2
as that is the minimum requirement by at least the Linux kernel...

0009baf1 02/11/2010 12:53 am Christoph Hellwig

ide: add topology support

Export the physical block size in the ATA IDENTIFY command. The
other topology values are not supported in ATA so skip them.

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

428c149b 02/11/2010 12:53 am Christoph Hellwig

block: add topology qdev properties

Add three new qdev properties to export block topology information to
the guest. This is needed to get optimal I/O alignment for RAID arrays
or SSDs.

The options are:

- physical_block_size to specify the physical block size of the device,...
37d5ddd6 02/11/2010 12:51 am hch@lst.de

virtio-blk: revert serial number support

The addition of the whole ATA IDENTIY page caused the config space to
go above the allowed size in the PCI spec, and thus the feature was
already reverted in the Linux guest driver and disabled by default in
qemu....

ba144141 02/10/2010 09:46 pm Luiz Capitulino

Monitor: remove unneeded checks

It's not needed to check the return of qobject_from_jsonf()
anymore, as an assert() has been added there.

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

06b12970 02/10/2010 08:48 pm Tom Lendacky

virtio-net: fix network stall under load

Fix a race condition where qemu finds that there are not enough virtio
ring buffers available and the guest make more buffers available before
qemu can enable notifications.

Signed-off-by: Tom Lendacky <>...

8e65b7c0 02/10/2010 08:45 pm David S. Ahern

audio streaming from usb devices

I have streaming audio devices working within qemu-kvm. This is a port
of the changes to qemu.

Streaming audio generates a series of isochronous requests that are
repetitive and time sensitive. The URBs need to be submitted in...

4ab4183d 02/10/2010 08:45 pm David S. Ahern

segfault due to buffer overrun in usb-serial

This fixes a segfault due to buffer overrun in the usb-serial device.
The memcpy was incrementing the start location by recv_used yet, the
computation of first_size (how much to write at the end of the buffer
before wrapping to the front) was not accounting for it. This causes the...

eaa6c85f 02/10/2010 07:57 pm Luiz Capitulino

virtio-blk: Generate BLOCK_IO_ERROR QMP event

Just call bdrv_mon_event() in the right place.

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