Statistics
| Branch: | Revision:

root / hw @ e03ba136

# Date Author Comment
e03ba136 04/12/2013 03:33 pm Peter Maydell

Typo, spelling and grammatical fixes

Minor fixes to documentation and code comments.

Signed-off-by: Peter Maydell <>
Signed-off-by: Stefan Hajnoczi <>

93b48c20 04/09/2013 03:47 pm Hans de Goede

virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge

Signed-off-by: Hans de Goede <>
Message-id:
Cc: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

47b5264e 04/08/2013 09:12 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/hw-dirs' into staging

  1. By Paolo Bonzini
  2. Via Paolo Bonzini
    • bonzini/hw-dirs: (35 commits)
      hw: move private headers to hw/ subdirectories.
      MAINTAINERS: update for source code movement
      hw: move last file to hw/arm/...
1f8010f0 04/08/2013 09:12 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  1. By Dmitry Fleytman
  2. Via Stefan Hajnoczi
    • stefanha/net:
      vmxnet3: const_cpu_to_le64 wrapping for feature bits dropped
      vmxnet3: iPXE compatibility fixes

Message-id: ...

7702e47c 04/08/2013 07:13 pm Paolo Bonzini

hw: move interrupt controllers to hw/intc/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

5193899a 04/08/2013 07:13 pm Paolo Bonzini

hw: move GPIO interfaces to hw/gpio/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

914e29d2 04/08/2013 07:13 pm Paolo Bonzini

hw: move NVRAM interfaces to hw/nvram/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

e28bee8e 04/08/2013 07:13 pm Paolo Bonzini

hw: move other devices to hw/misc/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

0434e30a 04/08/2013 07:13 pm Paolo Bonzini

hw: move ARM CPU cores to hw/cpu/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

54976b75 04/08/2013 07:13 pm Paolo Bonzini

hw: move hw/kvm/ to hw/i386/kvm

Peter requested the KVM GIC to be in hw/intc.

Signed-off-by: Paolo Bonzini <>

aacf8895 04/08/2013 07:13 pm Paolo Bonzini

hw: move last file to hw/arm/

Signed-off-by: Paolo Bonzini <>

47b43a1f 04/08/2013 07:13 pm Paolo Bonzini

hw: move private headers to hw/ subdirectories.

Many headers are used only in a single directory. These can be
kept in hw/.

Signed-off-by: Paolo Bonzini <>

80b4ecc8 04/08/2013 07:13 pm Paolo Bonzini

hw: move more files to hw/xen/

Signed-off-by: Paolo Bonzini <>

9944d320 04/08/2013 07:13 pm Paolo Bonzini

hw: move char devices to hw/char/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

47934d0a 04/08/2013 07:13 pm Paolo Bonzini

hw: move ISA bridges and devices to hw/isa/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

3bd88451 04/08/2013 07:13 pm Paolo Bonzini

hw: move timer devices to hw/timer/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

8ac5c651 04/08/2013 07:13 pm Paolo Bonzini

hw: move SD/MMC devices to hw/sd/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

c0907c9e 04/08/2013 07:13 pm Paolo Bonzini

hw: move PCI bridges to hw/pci-* or hw/ARCH

Signed-off-by: Paolo Bonzini <>

ba25df88 04/08/2013 07:13 pm Paolo Bonzini

hw: move VFIO and ivshmem to hw/misc/

Signed-off-by: Paolo Bonzini <>

d2c0bd84 04/08/2013 07:13 pm Paolo Bonzini

hw: move DMA controllers to hw/dma/, configure with default-configs/

Signed-off-by: Paolo Bonzini <>

a100107d 04/08/2013 07:13 pm Paolo Bonzini

hw: move watchdogs to hw/watchdog, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

0ddfaf7f 04/08/2013 07:13 pm Paolo Bonzini

hw: move MC146818RTC to hw/timer/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

d7e35d4a 04/08/2013 07:13 pm Paolo Bonzini

hw: move NICs to hw/net/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

7b247895 04/08/2013 07:13 pm Paolo Bonzini

hw: move block devices to hw/block/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

34b8f63e 04/08/2013 07:13 pm Paolo Bonzini

hw: move audio devices to hw/audio/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

fc97bb5b 04/08/2013 07:13 pm Paolo Bonzini

hw: move display devices to hw/display/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

53ed424e 04/08/2013 07:13 pm Paolo Bonzini

hw: move I2C controllers to hw/i2c/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

31e17060 04/08/2013 07:13 pm Paolo Bonzini

hw: move SSI controllers to hw/ssi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

53a55002 04/08/2013 07:13 pm Paolo Bonzini

hw: move SCSI controllers to hw/scsi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>

9a1179dc 04/08/2013 07:13 pm Paolo Bonzini

hw: make all of hw/ide/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <>

aaa4d1df 04/08/2013 07:13 pm Paolo Bonzini

hw: make all of hw/usb/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <>

ddf2bcfc 04/08/2013 07:13 pm Paolo Bonzini

hw: make all of hw/pci/ configurable via default-configs/

Signed-off-by: Paolo Bonzini <>

1fd6bb44 04/08/2013 07:13 pm Paolo Bonzini

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>

ce3b494c 04/08/2013 07:13 pm Paolo Bonzini

moxie: configure with default-configs file

Signed-off-by: Paolo Bonzini <>

0d09e41a 04/08/2013 07:13 pm Paolo Bonzini

hw: move headers to include/

Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches....

2a7a239f 04/08/2013 06:36 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.79' into staging

  1. By Gerd Hoffmann (7) and Hans de Goede (3)
  2. Via Gerd Hoffmann
    • kraxel/usb.79:
      usb-tablet: Don't claim wakeup capability for USB-2 version
      usb: update docs for bus name change
      usb-hub: report status changes only once...
389dd807 04/08/2013 03:01 pm Dmitry Fleytman

vmxnet3: const_cpu_to_le64 wrapping for feature bits dropped

Byte swap is redundant because shared memory reading functions
already swap bytes when required

Signed-off-by: Dmitry Fleytman <>
Acked-by: Alexander Graf <>
Signed-off-by: Stefan Hajnoczi <>

3e948fd3 04/08/2013 03:01 pm Dmitry Fleytman

vmxnet3: iPXE compatibility fixes

iPXE vmxnet3 driver makes a few assumptions regarding device operation
that were missed during testing with Linux and Windows drivers.
This patch adds following logic:
1. Additional GET commands processing added
2. Max number of RX chunks should be set to 1 when driver passes 0...

9196dd41 04/06/2013 03:53 pm Blue Swirl

Merge branch 'arm-devs.next' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'arm-devs.next' of git://git.linaro.org/people/pmaydell/qemu-arm:
    hw/nand.c: Fix nand erase operation
    cadence_uart: Flush queued characters on reset
    pl330: Don't inhibit ES bits on INTEN...
91b53e44 04/05/2013 08:52 pm Anthony Liguori

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

  1. By Peter Crosthwaite (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      xilinx_zynq: Cleanup ssi_create_slave
      petalogix_ml605_mmu: Cleanup ssi_create_slave()
      target-s390: Fix SRNMT...
54baa6f3 04/05/2013 08:52 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen-2013-04-05' into staging

  1. By Alex Bligh (2) and Felipe Franciosi (2)
  2. Via Stefano Stabellini
    • sstabellini/xen-2013-04-05:
      Allow xen guests to plug disks of 1 TiB or more
      Introduce 64 bit integer write interface to xenstore...
76534da7 04/05/2013 07:58 pm Kevin Wolf

usb-storage: Forward serial number to scsi-disk

usb-storage takes care to fetch the USB serial number from -drive
options, but it neglected to pass its own 'serial' property to the
scsi-disk it creates. With this patch, the 'serial' qdev property and
the 'serial' option in -drive behave the same and correctly apply the...

32aea752 04/05/2013 07:08 pm Wendy Liang

hw/nand.c: Fix nand erase operation

Usually, nand erase operation has only 2 or 3 address cycles.
We need to mask s->addr to zero unset stale high-order bytes in the nand address
before using it as the erase address.

This fixes the NAND erase operation in Linux....

1db8b5ef 04/05/2013 07:03 pm Peter Crosthwaite

cadence_uart: Flush queued characters on reset

Reset can be used to empty the rx-fifo. As the fifo full condition is
used to return false from can_receive, queued rx data should be flushed
on reset accordingly.

Cc: Wendy Liang <>
Cc: Jason Wu <>...

fd7f8a99 04/05/2013 06:59 pm Peter Crosthwaite

pl330: Don't inhibit ES bits on INTEN

This if-else logic inhibits setting of the event status (ES) bits
when interrupts are enabled. This is incorrect. ES should be set
regardless on INTEN state. INTEN only inhibits the signalling of
events to PL330 threads, not setting of the ES register....

9246ce88 04/05/2013 06:47 pm Felipe Franciosi

Allow xen guests to plug disks of 1 TiB or more

The current xen backend driver implementation uses int64_t variables
to store the size of the corresponding backend disk/file. It also uses
an int64_t variable to store the block size of that image. When writing...

c1a88ad1 04/05/2013 06:45 pm Alex Bligh

Xen PV backend: Disable use of O_DIRECT by default as it results in crashes.

Due to what is almost certainly a kernel bug, writes with O_DIRECT may
continue to reference the page after the write has been marked as
completed, particularly in the case of TCP retransmit. In other...

86f425db 04/05/2013 06:45 pm Alex Bligh

Xen PV backend: Move call to bdrv_new from blk_init to blk_connect

This commit delays the point at which bdrv_new (and hence blk_open
on the underlying device) is called from blk_init to blk_connect.
This ensures that in an inbound live migrate, the block device is...

10bb3c62 04/05/2013 06:37 pm Felipe Franciosi

Introduce 64 bit integer write interface to xenstore

The current implementation of xen_backend only provides 32 bit integer
functions to write to xenstore. This patch adds two functions that
allow writing 64 bit integers (one generic function and another for...

2e19a703 04/05/2013 06:18 pm Peter Maydell

hw/arm_gic_common: Use vmstate struct rather than save/load functions

Update the GIC save/restore to use vmstate rather than hand-rolled
save/load functions.

Signed-off-by: Peter Maydell <>
Reviewed-by: Igor Mitsyanko <>...

5d79b80b 04/05/2013 06:18 pm Peter Maydell

pflash_cfi01: Drop unused 'bypass' field

For pflash_cfi01 the 'bypass' field is set to zero and never changes,
so remove it (it is a leftover from pflash_cfi02, where bypass is
implemented).

Signed-off-by: Peter Maydell <>
Message-id:

d8d24fb7 04/05/2013 06:18 pm Peter Maydell

pflash_cfi01: Implement migration support

Add a vmstate to pflash_cfi01, so that it can be live migrated.

Signed-off-by: Peter Maydell <>
Message-id:

5f00679e 04/05/2013 06:17 pm Igor Mitsyanko

hw/sd.c: fix migration of dynamically allocated buffer "buf"

VMSTATE_BUFFER_UNSAFE should be used for buffers inlined in device state, not
for buffers allocated dynamically. Change to VMSTATE_BUFFER_POINTER_UNSAFE macro,
which will do migration right.

Signed-off-by: Igor Mitsyanko <>...

b79269b7 04/05/2013 06:17 pm Igor Mitsyanko

hw/onenand.c: fix migration of dynamically allocated buffer "otp"

VMSTATE_BUFFER_UNSAFE should be used for buffers inlined in device state, not
for buffers allocated dynamically. Change to VMSTATE_BUFFER_POINTER_UNSAFE macro,
which will do migration right....

c3037774 04/05/2013 06:17 pm Peter Maydell

arm_gic: Fix sizes of state fields in preparation for vmstate support

In preparation for switching to vmstate for migration support, fix
the sizes of various GIC state fields. In particular, we replace all
the bitfields (which VMState can't deal with) with straightforward...

591f73f6 04/05/2013 06:17 pm Peter Maydell

hw/arm/nseries: don't print to stdout or stderr

Remove various bits of printing to stdout or stderr from the
nseries code, replacing it with a qemu log message where there's
an appropriate log category, and just dropping the output for
some of the more debug-like printing....

e8945b4f 04/05/2013 06:17 pm Peter Maydell

pl050: Don't send always-constant is_mouse field

The is_mouse field of the pl050 state structure is constant (it tracks
whether this is a 'pl050_keyboard' or 'pl050_mouse'), so there's
no need to include it in the VMState structure.

Signed-off-by: Peter Maydell <>...

28092a23 04/05/2013 06:17 pm Peter Maydell

hw/arm_mptimer: Save the timer state

Add a missing VMSTATE_TIMER() entry to the arm_mptimer vmstate
description; this omission meant that we would probably hang on reload
when the timer failed to fire.

Signed-off-by: Peter Maydell <>...

e641080f 04/05/2013 04:04 pm Peter Crosthwaite

petalogix_ml605_mmu: Cleanup ssi_create_slave()

With the recent m25p80 cleanup there is no need to use
ssi_create_slave_no_init() anymore. Just use ssi_create_slave().

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Stefan Hajnoczi <>

f1922e36 04/05/2013 04:04 pm Peter Crosthwaite

xilinx_zynq: Cleanup ssi_create_slave

With the recent m25p80 cleanup there is no need to use
ssi_create_slave_no_init() anymore. Just use ssi_create_slave().

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Stefan Hajnoczi <>

dab86234 04/05/2013 03:23 am Laszlo Ersek

extract/unify the constant 0xfee00000 as APIC_DEFAULT_ADDRESS

A common dependency of the constant's current users:
- hw/apic_common.c
- hw/i386/kvmvapic.c
- target-i386/cpu.c
is "target-i386/cpu.h".

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>...

3a4a4697 04/05/2013 03:23 am Laszlo Ersek

Introduce IO_APIC_DEFAULT_ADDRESS for 0xfec00000

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

c5a98cf3 04/05/2013 03:23 am Laszlo Ersek

pc_acpi_init(): don't bail as soon as failing to find default DSDT

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

cb88a4ea 04/05/2013 03:23 am Laszlo Ersek

change element type from "char" to "unsigned char" in ACPI table data

The data is binary, not textual.

Also, acpi_table_add() abuses the "char *f" pointer -- which normally
points to file names to load -- to poke into the table. Introduce "char
unsigned *table_start" for that purpose....

445d9cae 04/05/2013 03:23 am Laszlo Ersek

acpi_table_add(): report fatal errors through an internal Error object

The upcoming changes will need a cleanup section at the end of the
function, plus OptsVisitor reports errors via Error. For now keep
channeling any Errors to stderr.

Signed-off-by: Laszlo Ersek <>...

0c764a9d 04/05/2013 03:23 am Laszlo Ersek

acpi_table_add(): accept QemuOpts and parse it with OptsVisitor

As one consequence, strtok() -- which modifies its argument -- is replaced
with g_strsplit().

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>...

e980f2bf 04/05/2013 03:23 am Laszlo Ersek

acpi_table_add(): extract and reimplement internals

The new function acpi_table_install() installs any blob the caller passes
in. In the next patches this function will be promoted from helper role to
extern.

Reimplementing the logic should make it easier to understand. It also...

23084327 04/05/2013 03:23 am Laszlo Ersek

like acpi_table_install(), acpi_table_add() should propagate Errors

Signed-off-by: Laszlo Ersek <>
Reviewed-by: Anthony Liguori <>
Message-id:
Signed-off-by: Anthony Liguori <>

b9936159 04/05/2013 03:21 am Hans de Goede

ipoctal232: Convert to use chardev properties directly

Signed-off-by: Hans de Goede <>
Signed-off-by: Anthony Liguori <>
Signed-off-by: Alberto Garcia <>
Message-id: ...

44c473de 04/05/2013 03:21 am Hans de Goede

qemu-char: Add qemu_chr_fe_claim / _release helper functions

Add qemu_chr_fe_claim / _release helper functions for properly dealing with
avail_connections.

Signed-off-by: Hans de Goede <>
Message-id: ...

456d6069 04/05/2013 03:21 am Hans de Goede

qemu-char: Call fe_claim / fe_release when not using qdev chr properties

chardev-frontends need to explictly check, increase and decrement the
avail_connections "property" of the chardev when they are not using a
qdev-chardev-property for the chardev.

This fixes things like:...

4dbb9ed3 04/04/2013 01:55 am Peter Crosthwaite

xilinx_axienet: pump events as appropriate

When the conditions blocking receiving are cleared, check for buffered rx
packets.

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

560e6396 04/03/2013 11:06 pm Bruce Rogers

acpi: initialize s4_val used in s4 shutdown

While investigating why a 32 bit Windows 2003 guest wasn't able to
successfully perform a shutdown /h, it was discovered that commit
afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4 inadvertently dropped the
initialization of the s4_val used to handle s4 shutdown....

c24e4aac 04/03/2013 12:39 pm Gerd Hoffmann

usb-hub: limit chain length

USB supports up to 5 hubs chained.
Catch attempts to chain more.

Signed-off-by: Gerd Hoffmann <>

a309ee6e 04/03/2013 12:39 pm Gerd Hoffmann

usb-hub: report status changes only once

Signed-off-by: Gerd Hoffmann <>

aa1c9e97 04/03/2013 12:39 pm Hans de Goede

usb-tablet: Don't claim wakeup capability for USB-2 version

Our ehci code does not implement wakeup support, so claiming support for
it with usb-tablet in USB-2 mode causes all tablet events to get lost.

http://bugzilla.redhat.com/show_bug.cgi?id=929068...

4b7b2afa 04/03/2013 12:39 pm Gerd Hoffmann

xhci: zap unused name field

Signed-off-by: Gerd Hoffmann <>

c94a7c69 04/03/2013 10:55 am Gerd Hoffmann

xhci: fix numintrs sanity checks

Make sure numintrs is a power of two, msi requires this.

https://bugzilla.redhat.com/show_bug.cgi?id=918035

Signed-off-by: Gerd Hoffmann <>

61803996 04/03/2013 10:55 am Gerd Hoffmann

xhci: remove leftover debug printf

Signed-off-by: Gerd Hoffmann <>

0ab966cf 04/03/2013 10:55 am Gerd Hoffmann

xhci: remove unimplemented printfs

Replace them with a tracepoint, so they don't spam stderr by default.

Signed-off-by: Gerd Hoffmann <>

3713e148 04/03/2013 10:55 am Hans de Goede

usb-redir: Fix crash on migration with no client connected

If no client is connected on the src side, then we won't receive a
parser during migrate, in this case usbredir_post_load() should be a nop,
rather then to try to derefefence the NULL dev->parser pointer....

c874ea97 04/03/2013 10:55 am Hans de Goede

usb-redir: Add flow control support

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

c707582b 04/02/2013 04:15 pm Wenchao Xia

VMXNET3: initialize rx_ridx to eliminate compile warning

Gcc report "hw/vmxnet3.c:972: error: ‘rx_ridx’ may be used
uninitialized in this function", so fix it.

Signed-off-by: Wenchao Xia <>
Message-id: ...

b1ee5829 04/02/2013 04:15 pm Anthony Liguori

qdev: only send deleted event if device was realized

Reported-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>
Message-id:

6dcfdbad 04/01/2013 10:35 pm Alex Williamson

vfio: cleanup includes

Starting to get messy, put the back in alphabetical order.

Signed-off-by: Alex Williamson <>

c29029dd 04/01/2013 10:35 pm Alex Williamson

vfio: Add bootindex support

Signed-off-by: Alex Williamson <>

ba661818 04/01/2013 10:35 pm Alex Williamson

vfio-pci: Move devices to D0 on reset

Guests may leave devices in a low power state at reboot, but we expect
devices to be woken up for the next boot. Make this happen.

Signed-off-by: Alex Williamson <>

82ca8912 04/01/2013 10:34 pm Alex Williamson

vfio-pci: Add extra debugging

Often when debugging it's useful to be able to disable bypass paths
so no interactions with the device are missed. Add some extra debug
options to do this. Also add device info on read/write BAR accesses,
which is useful when debugging more than one assigned device. A...

7076eabc 04/01/2013 10:34 pm Alex Williamson

qemu vfio-pci: Graphics device quirks

Graphics cards have a number of different backdoors. Some of these
are alternative ways to get PCI BAR addresses, some of them are
complete mirrors of PCI config space available through MMIO and
I/O port access. These quirks cover a number of ATI Radeon and...

f15689c7 04/01/2013 10:33 pm Alex Williamson

qemu vfio-pci: Add support for VGA MMIO and I/O port access

Most VGA cards need some kind of quirk to fully operate since they
hide backdoors to get to other registers outside of PCI config space
within the registers, but this provides the base infrastructure. If...

4b5d5e87 04/01/2013 08:50 pm Alex Williamson

vfio-pci: Generalize PCI config mangling

Kernel-side vfio virtualizes all of config space, but some parts are
unique to Qemu. For instance we may or may not expose the ROM BAR,
Qemu manages MSI/MSIX, and Qemu manages the multi-function bit so that
single function devices can appear as multi-function and vica versa....

96adc5c7 04/01/2013 08:50 pm Alex Williamson

vfio-pci: Add PCIe capability mangling based on bus type

Windows seems to pay particular interest to the PCIe header type of
devices and will fail to load drivers if we attach Endpoint devices or
Legacy Endpoint devices to the Root Complex. We can use
pci_bus_is_express and pci_bus_is_root to determine the bus type and...

c7b4c367 04/01/2013 06:36 pm Anthony Liguori

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

  1. By Dunrong Huang (1) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      hw/tcx: Remove unused 'addr' field and the property that sets it
      hw/i386/pc: format load_linux function...
a86f200a 04/01/2013 05:08 pm Peter Maydell

musicpal: qdevify musicpal-misc

Make musicpal-misc into its own (trivial) qdev device, so we
can get rid of the abuse of sysbus_add_memory().

Signed-off-by: Peter Maydell <>
Reviewed-by: Peter Crosthwaite <>...

20cf850c 04/01/2013 05:08 pm Peter Maydell

milkymist-minimac2: Just expose buffers as a sysbus mmio region

Just expose the register buffers memory as a standard sysbus mmio
region which the creator of the device can map, rather than
providing a qdev property which the creator has to set to the
base address and then doing the mapping in the device's own...

c34e1205 04/01/2013 05:08 pm Peter Maydell

milkymist-softusb: Don't map RAM memory regions in the device itself

Don't map the pmem and dmem RAM memory regions in the milkymist-softusb
device itself. Instead just expose them as sysbus mmio regions which
the device creator can map appropriately. This allows us to drop the...

c31bc98e 04/01/2013 05:08 pm Peter Maydell

hw/milkymist-softusb: set buffer in softusb_read_{dmem, pmem} error path

Make sure we set the buffer to something in the softusb_read_{dmem,pmem}
error paths, since the caller will use the buffer unconditionally.
(Newer gcc is smart enough to spot this and complain about 'may be...

e63d28d7 04/01/2013 05:08 pm Peter Maydell

sysbus: Remove sysbus_add_memory and sysbus_del_memory

Remove the sysbus_add_memory and sysbus_del_memory functions. These
are trivial wrappers for mapping a memory region into the system
memory space, and have no users now. Sysbus devices should never map...