Statistics
| Branch: | Revision:

root / hw @ 71cf9e62

# Date Author Comment
39186d8a 10/02/2011 05:14 pm Richard Henderson

serial: Add MemoryRegion parameter to serial_mm_init

Remove the get_system_memory() call from serial_mm_init, pushing
it back into the callers. In many cases we already have the
system memory region available.

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

52ce55a1 10/02/2011 05:14 pm Richard Henderson

ppc405: Pass in address_space_mem to ppc405{cr, ep}_init

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

3e9f0113 10/02/2011 05:14 pm Richard Henderson

ppc440: Pass in address_space_mem to ppc440ep_init

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

a6dc4c2d 10/02/2011 05:14 pm Richard Henderson

pxa: Pass in address_space to pxa{255, 270}_init

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

27a9d2ea 10/02/2011 05:14 pm Richard Henderson

sm501: Pass address_space_mem to sm501_init

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

38bc50f7 10/02/2011 05:14 pm Richard Henderson

sun4u: Pass address_space_mem to sun4uv_init

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

5a95b51d 10/02/2011 05:14 pm Peter Maydell

hw/smc91c111: Convert to MemoryRegion

Signed-off-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

71cf9e62 10/02/2011 05:14 pm Fabien Chouteau

openpic: Memory API conversion for mpic

This patch converts mpic to the new memory API (through old mmio).

Signed-off-by: Fabien Chouteau <>
Signed-off-by: Avi Kivity <>

5dd25f36 10/02/2011 05:14 pm Edgar E. Iglesias

etrax-pic: Convert to MemoryRegion

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

dbfb57f3 10/02/2011 05:14 pm Edgar E. Iglesias

etrax-ser: Convert to MemoryRegion

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

b8e5da2c 10/02/2011 05:14 pm Edgar E. Iglesias

etrax-timer: Convert to MemoryRegion

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

9dcb06ce 10/02/2011 05:14 pm Edgar E. Iglesias

etrax-dma: Convert to MemoryRegion

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

06dccb82 10/02/2011 05:14 pm Edgar E. Iglesias

etrax-eth: Convert to MemoryRegion

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

8e8ffc44 10/02/2011 05:14 pm Richard Henderson

serial: Convert serial_mm_init to MemoryRegion

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

fb50cfe4 10/02/2011 05:14 pm Richard Henderson

serial: Use enum device_endian in serial_mm_init parameter

The use of DEVICE_NATIVE_ENDIAN cleans up lots of ifdefs in
many of the callers.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

2ff0c7c3 10/02/2011 05:14 pm Richard Henderson

serial: Remove ioregister parameter from serial_mm_init

All callers passed 1.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

bf4b9889 10/01/2011 12:28 pm Blue Swirl

ESP: convert to trace framework

Signed-off-by: Blue Swirl <>

b39491a8 10/01/2011 09:45 am Alexander Graf

PPC: Drop initial ESCC mapping

We are mapping ESCC to a static (incorrect) address on machine init. This
overlaps with our vram, rendering the screen barely usable.

Since openBIOS is clever enough to map ESCC to where it needs to be, we can
just drop that invalid map and everyone's happy....

7e17a217 10/01/2011 09:23 am Jan Kiszka

mips_fulong2e: Reorder ISA bus and i8259 creation

Missed during memory region conversion: The i8259 now depends on the ISA
bus being created first. Reorder the initialization.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

62ec6073 09/29/2011 09:32 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-5' into staging

46f3069c 09/27/2011 10:16 pm Blue Swirl

PPC: use memory API to construct the PCI hole

Avoid vga.chain4 mapping by constructing a PCI hole for upper
2G of the PCI space.

Signed-off-by: Blue Swirl <>

3b7653ac 09/26/2011 04:00 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm-tmp/memory/urgent' into staging

4c54661f 09/26/2011 04:00 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into staging

2f977dd7 09/26/2011 04:00 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/omap-for-upstream' into staging

12da94ff 09/25/2011 05:15 pm Avi Kivity

ppc_prep: fix pci config space initialization

Use data_mem for the data mmio region, not conf_mem.

Signed-off-by: Avi Kivity <>

a4ac5e64 09/25/2011 02:58 pm Avi Kivity

mips_r4k: initialize i8259 after the ISA bus

Succeeding i8259 conversion to ISA requires this.

Signed-off-by: Avi Kivity <>

bac8ad41 09/25/2011 02:58 pm Avi Kivity

ppc_prep: initialize i8259 after the ISA bus

Succeeding i8259 conversion to ISA requires this.

Signed-off-by: Avi Kivity <>

098d314a 09/25/2011 02:58 pm Richard Henderson

i8259: Convert to MemoryRegion

The only non-obvious part is pic_poll_read which used
"addr1 >> 7" to detect whether one referred to either
the master or slave PIC. Instead, test this directly.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

dbff76ac 09/25/2011 02:58 pm Richard Henderson

pckbd: Convert to MemoryRegion

Slightly non-obvious with mips_jazz passing in the region
structure to populate.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

a941ae45 09/25/2011 02:58 pm Richard Henderson

serial: Convert serial_isa_initfn to MemoryRegion

The serial_mm_init path is as yet unconverted.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

2f290a8c 09/25/2011 02:58 pm Richard Henderson

fdc: Convert isabus_fdc_init1 to MemoryRegion

This requires some amount of hoop-jumping, so that we don't
inadvertently claim port 0x3f6, which is used by ISA IDE.

The sysbus initialization path is as yet unconverted.

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

78e20593 09/25/2011 02:58 pm Richard Henderson

isa: add isa_register_ioport()

To replace isa_init_ioport and isa_init_ioport_range
as the ISA devices are converted to the memory api.

[avi: use memory_region_size()]

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

4bae1efe 09/25/2011 02:58 pm Richard Henderson

pc: Re-order pc_init1 to initialize the ISA bus before ISA devices

In particular, the i8259 was being initialized before the ISA bus,
leading to a crash.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

beae3979 09/25/2011 02:58 pm Richard Henderson

cs4231a: Convert to MemoryRegion

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

60ea6aa8 09/25/2011 02:58 pm Richard Henderson

i8254: Convert to MemoryRegion

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

5632ae46 09/25/2011 02:58 pm Avi Kivity

mips_malta: move i8259 initialization after piix4 initialization

i8259 is an ISA device (or at least, depends on the ISA infrastructure to
register its ioport); and the ISA bus is supplied by piix4. Later patches
make this dependency explicit.

Use qemu_irq_proxy() to stop the cycle by adding an extra layer of...

e155c99b 09/25/2011 02:58 pm Avi Kivity

mips_jazz: initialize i8259 after the ISA bus

Succeeding i8259 conversion to ISA requires this.

Signed-off-by: Avi Kivity <>

c2d0d012 09/25/2011 02:58 pm Richard Henderson

isa: Pass i/o address space to isa_bus_new

Not used yet, but at least we're provided with the correct region.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

e11d6439 09/25/2011 02:57 pm Richard Henderson

pci: add pci_address_space_io()

Returns the I/O address space. Useful for implementing
PCI-ISA bridge devices.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

e8beeae4 09/23/2011 09:42 pm Hervé Poussineau

adlib: remove write-only variable

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

b90d2f35 09/23/2011 07:51 pm David Gibson

virtio: Use global memory barrier macros

The virtio code uses wmb() macros in several places, as required by the
SMP-aware virtio protocol. However the wmb() macro is locally defined
to be a compiler barrier only. This is probably sufficient on x86
due to its strong storage ordering model, but it certainly isn't on other...

22ec3283 09/23/2011 07:51 pm Avi Kivity

irq: introduce qemu_irq_proxy()

In some cases we have a circular dependency involving irqs - the irq
controller depends on a bus, which in turn depends on the irq controller.
Add qemu_irq_proxy() which acts as a passthrough, except that the target
irq may be set later on....

c1d23eac 09/23/2011 06:55 pm Hervé Poussineau

isapc: give system address space when pci is disabled

Signed-off-by: Jan Kiszka <>
Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

ffe3ce11 09/23/2011 06:55 pm Donald Dutile

pci-devfn: check that device/slot number is within range

Need to check that guest slot/device number is not > 31 or walk off
the devfn table when checking if a devfn is available or not in a guest.

before this fix, passing in an addr=abc or addr=34,
can crash qemu, sometimes fail gracefully if data past end...

4463aee6 09/23/2011 06:55 pm Jan Kiszka

pc: Unbreak ROM mapping for ISA machine

This is based on the original fix by Hervé Poussineau: pc_memory_init
actually takes a memory region for mapping BIOS and extension ROMs. That
equals the PCI memory region if PCI is available, but must be system
memory in the ISA case....

57285cc3 09/23/2011 06:55 pm Jan Kiszka

pc: Disable HPET for ISA machine

There was no HPET on ISA boxes.

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

53d6e682 09/23/2011 06:55 pm Jan Kiszka

vga: Unbreak ISA support

We need to initialize legacy_address_space during ISA VGA setup so that
the chain-4 alias can be registered properly.

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

4c08fd1e 09/23/2011 06:55 pm Jan Kiszka

cirrus: Unbreak ISA support

Do not try to map against the PCI bar in the ISA version of the device.

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

dd8e9379 09/23/2011 06:55 pm dann frazier

e1000: Don't set the Capabilities List bit

[Originally sent to qemu-kvm list, but I was redirected here]

The Capabilities Pointer is NULL, so this bit shouldn't be set. The state of
this bit doesn't appear to change any behavior on Linux/Windows versions we've...

bdbc1b3c 09/23/2011 12:54 pm Peter Maydell

hw/omap1: Wire up GPIO clock

Wire up the OMAP1 GPIO clock -- this fixes a hw_error() on startup
with OMAP1 based machines (sx1, cheetah).

Signed-off-by: Peter Maydell <>

53bb614e 09/23/2011 12:44 pm Peter Maydell

omap_intc: Use MemoryRegion API

Convert omap_intc to use the MemoryRegion API

Signed-off-by: Peter Maydell <>

0919ac78 09/23/2011 12:44 pm Peter Maydell

omap_intc: Qdevify

Convert the omap_intc devices to qdev. This includes adding
a 'revision' property which will be needed for omap3.

The bulk of this patch is the replacement of "s->irq[x][y]"
with "qdev_get_gpio_in(s->ih[x], y)" now that the interrupt...

7e36b264 09/23/2011 09:36 am Peter Maydell

hw/omap_gpmc: Modify correct field when writing IRQSTATUS register

Writing to IRQSTATUS should affect irqst, not irqen -- error
spotted by Andrzej Zaborowski.

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

71963455 09/23/2011 09:36 am Peter Maydell

hw/omap_gpmc: Add comment about FIFOTHRESHOLDSTATUS bit

Promote the remark about why we handle FIFOTHRESHOLDSTATUS the
way we do from the commit message of de8af7fe0 to a comment in
the code.

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

5f542225 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Add handle based fs driver

Signed-off-by: Aneesh Kumar K.V <>

70c18fc0 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Make v9fs_string* functions non-static

We will use them later in other files

Signed-off-by: Aneesh Kumar K.V <>

02cb7f3a 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Use read-write lock for protecting fid path.

On rename we take the write lock and this ensure path
doesn't change as we operate on them.

Signed-off-by: Aneesh Kumar K.V <>

2289be19 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Move fid pathname tracking to seperate data type.

This enables us to add handles to track fids later. The
V9fsPath added is similar to V9fsString except that the
size include the NULL byte also.

Signed-off-by: Aneesh Kumar K.V <>

0174fe73 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Add init callback to fs driver

This call back can be used to do fs driver specific initialization.

Signed-off-by: Aneesh Kumar K.V <>

532decb7 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Add fs driver specific details to fscontext

Add a new context flag PATHNAME_FSCONTEXT and indicate whether
the fs driver track fid using path names. Also add a private
pointer that help us to track fs driver specific values in there

Signed-off-by: Aneesh Kumar K.V <>

ce421a19 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Avoid unnecessary get_fid in v9fs_clunk

Signed-off-by: Aneesh Kumar K.V <>

bccacf6c 09/22/2011 07:08 pm Aneesh Kumar K.V

hw/9pfs: Implement TFLUSH operation

Signed-off-by: Aneesh Kumar K.V <>

d85a1302 09/22/2011 06:31 pm Anthony Liguori

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

9ba2a054 09/22/2011 06:29 pm Anthony Liguori

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

bdd26721 09/22/2011 06:27 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm-tmp/memory/batch' into staging

465f1ab1 09/21/2011 03:32 pm Daniel Verkamp

ahci: add port I/O index-data pair

Implement an I/O space index-data register pair as defined by the AHCI
spec, including the corresponding SATA PCI capability and BAR.

This allows real-mode code to access the AHCI registers; real-mode
code cannot address the memory-mapped register space because it is...

43b26fc8 09/21/2011 12:49 pm Jan Kiszka

Drop unneeded pthread.h inclusions

Signed-off-by: Jan Kiszka <>
Signed-off-by: Stefan Hajnoczi <>

2654c962 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part VI)

Easy RAM stuff.

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

90aeba9d 09/21/2011 11:14 am Avi Kivity

soc_dma: drop soc_dma_port_add_mem_ram()

It's a trivial wrapper for soc_dma_port_add_mem(), which makes
the memory API conversion more difficult because it takes a ram
addr_t. Drop.

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

9898b79a 09/21/2011 11:14 am Avi Kivity

omap_lcdc: remove imif, emiff from structure

Not used.

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

763b946c 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part V)

Tricky aliases.

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

60fe76e3 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part IV)

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

a4ebbd18 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part III)

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

e7aa0ae0 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part II)

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

4b3fedf3 09/21/2011 11:14 am Avi Kivity

omap1: convert to memory API (part I)

Acked-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>

03c39eb5 09/20/2011 11:22 pm Anthony Liguori

Merge remote-tracking branch 'mst-tmp/for_anthony' into staging

c8af89af 09/20/2011 11:21 pm Anthony Liguori

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

7f67d892 09/20/2011 11:16 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

336411ca 09/20/2011 05:46 pm Michael S. Tsirkin

pci_bridge: simplify memory regions some more

replace alloc/free with struct members.
todo: smash with initial implementation after
testing.

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

a26a13da 09/20/2011 01:27 pm Alexander Motin

AHCI Port Interrupt Enable register cleaning on soft reset

I've found that FreeBSD AHCI driver doesn't work with AHCI hardware
emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I
see, it clears port's Interrupt Enable register each time when reset of...

bd5da232 09/20/2011 01:27 pm Paolo Bonzini

scsi: fix sign extension problems

When assigning a 32-bit value to cmd->xfer (which is 64-bits)
it can be erroneously sign extended because the intermediate
32-bit computation is signed. Fix this by standardizing on
the ld*_be_p functions.

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

103b40f5 09/20/2011 01:27 pm Paolo Bonzini

scsi-disk: commonize iovec creation between reads and writes

Also, consistently use qiov.size instead of iov.iov_len.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

7285477a 09/20/2011 01:27 pm Paolo Bonzini

scsi-disk: lazily allocate bounce buffer

It will not be needed for reads and writes if the HBA provides a sglist.
In addition, this lets scsi-disk refuse commands with an excessive
allocation length, as well as limit memory on usual well-behaved guests.
...

778d1799 09/19/2011 09:22 pm Wen Congyang

pci_bridge: use parent bus's address space

The switch to the new memory API caused the following problem:

The pci device may call pci_register_bar() to use PCI bus's address
space. But we don't init PCI bus's address space if it is not bus
0. A crash was reported:...

7df32ca0 09/19/2011 09:22 pm Michael S. Tsirkin

pci: implement bridge filtering

Support bridge filtering on top of the memory
API as suggested by Avi Kivity:

Create a memory region for the bridge's address space. This region is
not directly added to system_memory or its descendants. Devices under
the bridge see this region as its pci_address_space(). The region is...

ab346bb2 09/19/2011 09:22 pm Jan Kiszka

pci: Remove unused pci_reserve_capability

eepro100 was the last user. Now pci_add_capability is powerful enough.

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

817e0b6f 09/19/2011 09:22 pm Michael S. Tsirkin

pci: interrupt pin documentation update

Fix up some erroneous comments in code:
interrupt pins are named A-D, the
interrupt pin register is always readonly
and isn't zeroed out on reset.

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

a92eb87a 09/19/2011 09:22 pm Jan Kiszka

pci: Remove unused mem_base from PCIBus

Obsoleted by f64e02b6cc.

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

bbca72c6 09/19/2011 12:35 pm Paolo Bonzini

dma-helpers: rename is_write to to_dev

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

1b8f8a6f 09/19/2011 12:34 pm Paolo Bonzini

scsi-generic: do not disable FUA

I found no rationale for this in the logs, and it is quite bad because
it will make scsi-generic unsafe WRT power failures.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

60581b37 09/18/2011 05:06 pm Avi Kivity

mips_jazz: convert to memory API

Signed-off-by: Avi Kivity <>

ea85df72 09/18/2011 05:06 pm Avi Kivity

mips_malta: convert to memory API

Signed-off-by: Avi Kivity <>

23ebf23d 09/18/2011 05:06 pm Avi Kivity

mips_mipssim: convert to memory API

Signed-off-by: Avi Kivity <>

0ae16450 09/18/2011 05:06 pm Avi Kivity

mips_r4k: convert to memory API

Signed-off-by: Avi Kivity <>

19b4a424 09/18/2011 05:06 pm Avi Kivity

musicpal: convert to memory API

Signed-off-by: Avi Kivity <>

530889ff 09/18/2011 03:00 pm Blue Swirl

sun4u: don't set up isa_mem_base

Since we use memory API in sun4u.c, after
71579cae30b53c910cd6c47ab4e683f647d36519, setting up isa_mem_base
puts vga.chain4 outside of the physical address space.

Fix by removing obsolete isa_mem_base set up.

Signed-off-by: Blue Swirl <>

4e1837f8 09/17/2011 06:14 pm Stefan Hajnoczi

trace: add virtio_set_status() trace event

The virtio device lifecycle can be observed by looking at the sequence
of set status operations. This is especially important for catching the
reset operation (status value 0), which resets the device and all
virtqueues....

71579cae 09/16/2011 05:06 pm Jan Kiszka

vga: Respect isa_mem_base when registering chain4 alias

This does not yet unbreak PPC (which has its own problems) but
potentially other non-x86 systems where isa_mem_base is != 0.

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

a8467c7a 09/16/2011 05:06 pm Gerd Hoffmann

qdev: print bus properties too

Make qdev_device_help print both device and bus properties.
Helps libvirt to figure whenever bus properties such as
PCI.multifunction are supported present or not.

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

df3f457b 09/16/2011 04:28 pm Peter Maydell

hw/integratorcp: Fix bugs in writes to CM_CTRL system register

Fix a number of bugs in the implementation of writes to the CM_CTRL
system register: * write to cm_ctrl, not cm_init ! * an '&' vs '^' typo meant we would write the inverse of the bits * handling the LED via printf() meant we spew lots of output...