Statistics
| Branch: | Revision:

root / hw @ 84dfb926

# Date Author Comment
84dfb926 08/25/2011 05:46 pm Aneesh Kumar K.V

hw/9pfs: Add reference counting for fid

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

8ef9ea85 08/25/2011 03:48 pm Anthony Liguori

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

444dc482 08/25/2011 03:48 pm Anthony Liguori

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

09730e29 08/25/2011 10:56 am Avi Kivity

mainstone: convert to memory API

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

e33df454 08/25/2011 10:56 am Avi Kivity

mcf5208: convert to memory API

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

906d23eb 08/25/2011 10:56 am Avi Kivity

milkymist-minimac2: convert to memory API

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

fcb9fc24 08/25/2011 10:56 am Avi Kivity

milkymist-softusb: convert to memory API

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

2b90ca04 08/25/2011 10:56 am Avi Kivity

milkymist: convert to memory API

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

28e77964 08/25/2011 10:56 am Avi Kivity

sysbus: add sysbus_add_memory_overlap()

Signed-off-by: Avi Kivity <>

b3cc4962 08/25/2011 10:56 am Avi Kivity

integratorcp: convert to memory API (RAM/flash only)

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

20e5758b 08/25/2011 10:56 am Avi Kivity

leon3: convert to memory API

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

cf9182e2 08/25/2011 10:56 am Avi Kivity

cirrus: wrap memory update in a transaction

This prevents spurious unmapping and remapping of the vga windows,
which reduces performance.

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

c2c1b0f8 08/25/2011 10:56 am Avi Kivity

piix_pci: wrap memory update in a transaction

The code will remap all PAMs, even if just one is updated, resulting
in reduced performance. Wrap in a transaction to detect that those
other PAMs have not changed.

Reviewed-by: Richard Henderson <>...

c8a50e59 08/25/2011 10:56 am Avi Kivity

pflash_cfi01/pflash_cfi02: convert to memory API

cfi02 is annoying in that is ignores some address bits; we probably
want explicit support in the memory API for that.

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

9eadff4a 08/25/2011 10:56 am Avi Kivity

dummy_m68k: convert to memory API

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

82afb3a7 08/25/2011 10:56 am Avi Kivity

g364fb: convert to memory API

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

4c9e975d 08/25/2011 10:56 am Avi Kivity

lm32_boards: convert to memory API

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

5461eb21 08/25/2011 10:56 am Avi Kivity

axis_dev88: convert to memory API (RAM only)

Reviewed-by: Richard Henderson <>
Acked-by: Edgar E. Iglesias <>
Signed-off-by: Avi Kivity <>

5b15f275 08/25/2011 10:49 am Avi Kivity

ppc_oldworld, ppc_newworld: fix escc BAR related crash

ppc maps the escc mmio region both at a fixed offset (as a sysbus area) and as part of a PCI BAR.
This crashes, since a MemoryRegion may have only one parent. Use an alias so we have a separate
MemoryRegion for the BAR....

89da90b1 08/24/2011 10:11 pm Avi Kivity

gt64xxx: fix crash in gt64120_pci_mapping()

The map/unmap code was assymetric - unmap used the local MemoryRegion while
map used isa_mmio_init(), which cannot handle dynamic mappings.

Fix by using isa_mmio_setup() and the local MemoryRegion.

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

fbe15adf 08/24/2011 08:17 pm Avi Kivity

armv7m: convert to memory API

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

4c390a1d 08/24/2011 08:17 pm Avi Kivity

an5206: convert to memory API

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

d2c33733 08/24/2011 08:17 pm Avi Kivity

pci_host: convert conf index and data ports to memory API

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

be35694d 08/24/2011 08:17 pm Avi Kivity

sysbus: add helpers to add and delete memory regions to the system bus

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

58160baf 08/24/2011 08:17 pm Avi Kivity

stellaris_enet: convert to memory API

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

710ffe60 08/23/2011 10:51 pm Peter Maydell

hw/omap_gpmc: Don't try to map CS0 twice on reset

Remove a spurious second map of the OMAP GPMC CS0 region on reset.
This fixes an assertion failure when we try to add the region to
its container when it was already added. (The old code did not
complain about mismatched map/unmap calls, but the new MemoryRegion...

0d877c66 08/23/2011 12:29 am Peter A. G. Crosthwaite

xilinx.h: Added missing includes

Added some missing #includes for this file. Previously this file
relied on its clients to pre-include its dependencies.

Signed-off-by: Peter A. G. Crosthwaite <>
Signed-off-by: Edgar E. Iglesias <>

b861b741 08/23/2011 12:29 am Peter A. G. Crosthwaite

xilinx: removed microbalze_pic_init from xilinx.h

This is a microblaze target specific function that belongs outside
of xilinx.h (which is a collection of target independent device model
instantiator functions)

Signed-off-by: Peter A. G. Crosthwaite <>...

1f6f408c 08/22/2011 10:37 pm Jan Kiszka

target-i386: Remove unused polarity arguments from APIC API

Polarity of external interrupts needs to be handled in the IOAPIC.
Passing it to the APIC is pointless. So remove all these arguments.

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

0035e509 08/22/2011 10:37 pm Jan Kiszka

ioapic: Implement polarity

If the polarity bit is set in the redirection table, the input level
simply has to inverted as it is low active in this case.

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

8a9501ba 08/22/2011 10:37 pm Jan Kiszka

vmware-vga: Register reset service

Fixes cold reset in vmware graphic modes. We need to split up the reset
function for this purpose, breaking out init-once bits.

Cc: Andrzej Zaborowski <>
Signed-off-by: Jan Kiszka <>...

ca0508df 08/22/2011 10:37 pm Jan Kiszka

vmware-vga: Disable verbose mode

Elimiates 'vmsvga_value_write: guest runs Linux.' messages from the
console.

CC: Andrzej Zaborowski <>
Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

8d121d49 08/22/2011 10:37 pm Jan Kiszka

vmware-vga: Remove dead DIRECT_VRAM mode

The code was disabled since day 1 of vmware-vga, and now it does not
even build anymore. Time for a cleanup.

CC: Andrzej Zaborowski <>
Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

fe55ff6e 08/22/2011 10:37 pm Jan Kiszka

vmware-vga: Eliminate vga_dirty_log_restart

After the conversion to the new Memory API, vga_dirty_log_restart became
seriously pointless. Remove it from vmware-vga and and then finally drop
the service.

CC: Andrzej Zaborowski <>
CC: Avi Kivity <>...

80763888 08/22/2011 10:37 pm Jan Kiszka

vga: Use linear mapping + dirty logging in chain 4 memory access mode

Most VGA memory access modes require MMIO handling as they demand weird
logic to get a byte from or into the video RAM. However, there is one
exception: chain 4 mode with all memory planes enabled for writing. This...

78dd9ff6 08/22/2011 10:37 pm Jan Kiszka

vga: Drop some unused fields

Memory region refactorings obsoleted them.

CC: Avi Kivity <>
Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

c839adec 08/22/2011 06:47 pm Avi Kivity

isa: add isa_address_space()

A helper that returns the address space used by ISA devices. Useful
for getting rid of isa_mem_base, multiple ISA buses, or ISA buses behind
bridges.

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

f5e6fed8 08/22/2011 06:47 pm Avi Kivity

pci: add pci_address_space()

Returns the PCI address space. Useful for bridges that can obscure
part of the PCI address space.

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

be20f9e9 08/22/2011 06:47 pm Avi Kivity

vga: drop get_system_memory() from vga devices and derivatives

Instead, use the bus accessors, or get the address space directly
from the board constructor.

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

ae0a5466 08/22/2011 06:47 pm Avi Kivity

440fx: fix PAM, PCI holes

The current implementation of PAM and the PCI holes is broken in several
ways:

- PCI BARs are not restricted to the PCI hole (a BAR may hide memory)
- PCI devices do not respect PAM (if a PCI device maps a region while
PAM maps the region to RAM, the request will be honored)...
fb57117a 08/22/2011 06:47 pm Avi Kivity

sh_pci: convert to memory API

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

1635bdfa 08/22/2011 06:47 pm Avi Kivity

arm11mpcore: use sysbus_init_mmio_cb2

This tells the sysbus code it need not use IO_MEM_UNASSIGNED.

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

45de094e 08/22/2011 06:47 pm Avi Kivity

versatile_pci: convert to memory API

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

cd0fa1e6 08/22/2011 06:47 pm Avi Kivity

ppce500_pci: convert to sysbus_init_mmio_cb2()

Not a huge step forward, but at least we now have a 1:1 relationship
between registration and unregistration.

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

c5b3572f 08/22/2011 06:47 pm Avi Kivity

sysbus: remove sysbus_init_mmio_cb()

This problem with this function is that it is not reversible - it is
impossible to know where things are registered and unregister them
exactly. As there are no more users, we can remove it.

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

d7612013 08/22/2011 06:47 pm Avi Kivity

sysbus: add a variant of sysbus_init_mmio_cb with an unmap callback

sysbus_init_mmio_cb() uses the destructive IO_MEM_UNASSIGNED to remove a
region. Provide an alternative that calls an unmap callback, so the removal
may be done non-destructively.

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

b6dcbe08 08/22/2011 06:47 pm Avi Kivity

ppc4xx_sdram: convert to memory API

Clumsy due to the lack of clipping support, needed for
changing exposed ram size.

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

9074e0e3 08/22/2011 06:23 pm Avi Kivity

ppc405_uc: convert to memory API

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

689a1921 08/22/2011 06:22 pm Avi Kivity

onenand: convert to memory API

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

c76f990e 08/22/2011 06:22 pm Avi Kivity

pcie_host: convert to memory API

Assuming that mmcfg size cannot change at runtime.

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

64066a8f 08/22/2011 06:21 pm Avi Kivity

omap_gpmc/nseries/tusb6010: convert to memory API

Somewhat clumsy since it needs a variable sized region.

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

e219dea2 08/22/2011 06:20 pm Avi Kivity

arm_timer: convert to memory API

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

f69bf9d4 08/22/2011 06:20 pm Avi Kivity

armv7m: convert to memory API

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

fc2bf449 08/22/2011 06:20 pm Avi Kivity

gt64xxx.c: convert to memory API

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

d09871f6 08/22/2011 06:20 pm Avi Kivity

tusb6010: move declarations to new file tusb6010.h

Avoid #include hell.

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

460d7c53 08/22/2011 06:20 pm Avi Kivity

arm_sysctl: convert to memory API

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

145aebec 08/22/2011 06:20 pm Hervé Poussineau

pcnet: fix wrong opaque (broken by bd8d6f7cadb6ace98c779135217a4ed7b5fccc23)

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

3812ed0b 08/22/2011 06:20 pm Avi Kivity

apb_pci: convert to memory API

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

312b4234 08/22/2011 06:20 pm Avi Kivity

apic: convert to memory API

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

755c0802 08/22/2011 06:20 pm Avi Kivity

arm_gic: convert to memory API

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

d4044c2a 08/22/2011 06:17 pm Bjørn Mork

e1000: use MII status register for link up/down

Some guests will use the standard MII status register
to verify link state. They will not notice link changes
unless this register is updated.

Verified with Linux 3.0 and Windows XP guests.

Without this patch, ethtool will report speed and duplex as...

74c0d6f0 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_get_msgfd() -> qemu_chr_fe_get_msgfd()

Signed-off-by: Anthony Liguori <>

903396ad 08/22/2011 06:17 pm Anthony Liguori

char: remove qemu_chr_send_event()

It's dead code.

Signed-off-by: Anthony Liguori <>

27143a44 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_open() -> qemu_chr_new()

Signed-off-by: Anthony Liguori <>

70f24fb6 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_close() -> qemu_chr_delete()

Signed-off-by: Anthony Liguori <>

41084f1b 08/22/2011 06:17 pm Anthony Liguori

char: qemu_chr_ioctl() -> qemu_chr_fe_ioctl()

Signed-off-by: Anthony Liguori <>

fa5efccb 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_read() -> qemu_chr_be_write()

Signed-off-by: Anthony Liguori <>

909cda12 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_can_read() -> qemu_chr_be_can_read()

Signed-off-by: Anthony Liguori <>

c9d830ed 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_guest_open() -> qemu_chr_fe_open()

Signed-off-by: Anthony Liguori <>

2817822d 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_guest_close() -> qemu_chr_fe_close()

Signed-off-by: Anthony Liguori <>

2cc6e0a1 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_write() -> qemu_chr_fe_write()

Signed-off-by: Anthony Liguori <>

e7e71b0e 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_printf() -> qemu_chr_fe_printf()

Signed-off-by: Anthony Liguori <>

5f524c1e 08/22/2011 07:14 am Harsh Prateek Bora

use readdir_r instead of readdir for reentrancy

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

d208a0e0 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_read to use coroutines

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

7eafdcc9 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for preadv coroutine

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

8c158561 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_attach to use coroutines

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

b81d685e 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_wstat to use coroutines

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

d7a90491 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_write to use coroutines

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

f6b3c976 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for pwritev coroutine

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

ffd66876 08/22/2011 07:14 am Venkateswararao Jujjuri (JV)

hw/9pfs: Update v9fs_link to use coroutines

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

c6c069b0 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Add yield support for link coroutine

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

3fa2a8d1 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_symlink to use coroutines

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

02ac7a34 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Add yield support for symlin coroutine

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

baaa86d9 08/22/2011 07:14 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_create to use coroutines

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

4e9ad444 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_fsync to use coroutines

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

4743d1f5 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yield support for fsync coroutine

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

c540ee51 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_clunk to use coroutines

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

bed4352c 08/22/2011 07:14 am Aneesh Kumar K.V

hw/9pfs: Add yeild support for clunk related coroutine

This include lsetxattr, lremovexattr, closedir and close.

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

3cc19c0c 08/22/2011 06:53 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_walk to use coroutines

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

d8e0c29e 08/22/2011 06:52 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_stat to use coroutines

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

e4de4232 08/22/2011 06:51 am Venkateswararao Jujjuri

hw/9pfs: Add yield support for open2 coroutine

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

36f8981f 08/22/2011 06:51 am Venkateswararao Jujjuri

hw/9pfs: Update v9fs_lcreate to use coroutines

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

f6b7f0ab 08/22/2011 06:49 am Aneesh Kumar K.V

hw/9pfs: Add yield support for open and opendir coroutine

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

857bc158 08/22/2011 06:49 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_open to use coroutines

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

e4e414a4 08/22/2011 06:48 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_getlock to use coroutines

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

03feb1e1 08/22/2011 06:44 am Aneesh Kumar K.V

hw/9pfs: Add yeild support for fstat coroutine

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

0c27bf2a 08/22/2011 06:44 am Aneesh Kumar K.V

hw/9pfs: Update v9fs_lock to use coroutines

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

f1a7104a 08/22/2011 02:34 am Anthony Liguori

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

30c2f238 08/21/2011 11:02 pm Blue Swirl

escc: replace DPRINTFs with tracepoints

Signed-off-by: Blue Swirl <>

42c812b9 08/21/2011 11:02 pm Blue Swirl

m48t59: avoid structure holes spotted by pahole

Report from pahole on amd64 host:
struct M48t59State {
uint32_t type; /* 0 4 */

/* XXX 4 bytes hole, try to pack */
qemu_irq                   IRQ;                  /*     8     8 */...