Statistics
| Branch: | Revision:

root / hw @ a0f42610

# Date Author Comment
a0f42610 01/12/2012 06:03 pm Avi Kivity

vga: optimize ppm_save() divisions

ppm_save() spends upwards of 50% of its time doing divisions. Replace them
with shifts.

Reviewed-by: Alon Levy <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

73a511de 01/12/2012 02:54 pm Lars Persson

etraxfs-dma: Model metadata and eop

- Send EOP flags to the out channels.
- Send data descriptor metadata to the out channels.

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

9841aee1 01/10/2012 07:47 pm Stefan Weil

wm8750: Fix calculation of number of array elements

Coverity says that the division by sizeof(*s->rate) might be wrong.
I think that coverity is right.

Signed-off-by: Stefan Weil <>
Signed-off-by: Andrzej Zaborowski <>

c7c530cd 01/10/2012 07:40 pm Stefan Weil

elf: Improve symbol lookup (optimize, fix for bsd-user)

Coverity complained about local variable key which was only partially
initiated. Only key.st_value was set. As this was also the only part
of key which was used in function symfind, the code could be optimized...

563c2bf3 01/10/2012 07:40 pm Peter Maydell

hw/integratorcp: Simplify flash remap code

Use the new memory mutator API to simplify the flash remap code;
this allows us to drop the flash_mapped flag.

Signed-off-by: Peter Maydell <>
Reviewed-by: Andreas Färber <>...

4753dea8 01/10/2012 07:39 pm Peter Maydell

hw/integratorcp: Fix sense of REMAP bit

Fix the sense of the REMAP bit: 0 should mean "map flash",
1 should mean "map RAM".

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

14763ec8 01/10/2012 07:24 pm Aurelien Jarno

Merge branch 's390-next' of git://repo.or.cz/qemu/agraf

  • 's390-next' of git://repo.or.cz/qemu/agraf:
    s390: fix cpu hotplug / cpu activity on interrupts
    s390x: add TR function for EXECUTE
    Expose drive_add on all architectures
    Add generic drive hotplugging...
c49450b9 01/09/2012 02:01 pm Avi Kivity

vhost: improve region filtering

vhost memory management doesn't care about non-memory (e.g. PIO) or non-RAM
regions. Adjust the filtering to reflect that, and move it earlier so it
applies to mem_sections too.

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

637f7a6a 01/09/2012 01:59 pm Avi Kivity

vhost: fix mem_sections memory corruption

A memset() used to delete an entry in an array did not take into account
the array element's size.

Signed-off-by: Avi Kivity <>
Acked-by: Michael S. Tsirkin <>

d743c382 01/09/2012 01:09 pm Avi Kivity

vhost: fix incorrect userspace address

MemoryListener::region_add() gives us a slice of a MemoryRegion, not a
region. Adjust the userspace address to reflect that.

Signed-off-by: Avi Kivity <>
Acked-by: Michael S. Tsirkin <>

15f43ccd 01/07/2012 11:01 pm Aurelien Jarno

Merge branch 'ppc-next' of git://repo.or.cz/qemu/agraf

  • 'ppc-next' of git://repo.or.cz/qemu/agraf:
    PPC: Add description for the Freescale e500mc core.
    pseries: Check for duplicate addresses on the spapr-vio bus
    pseries: Populate "/chosen/linux,stdout-path" in the FDT...
c2780865 01/07/2012 10:29 pm Stefan Weil

sm501: Fix size of color_reg

color_reg is expected to hold 32 bit values, so it was too small.

This bug was reported by coverity:

hw/sm501.c:624:
result_independent_of_operands:
color_reg >> 16 is 0 regardless of the values of its operands.
This occurs as the bitwise first operand of '&'....

e9b40fd3 01/07/2012 07:16 pm Stefan Weil

malta: Fix regression (i8259 interrupts did not work)

Commit 5632ae46d5bda798e971dae48ebb318ac2c3686a passes the address
of i8259 to qemu_irq_proxy. i8259 is an auto variable with undefined
value outside of mips_malta_init.

This made the interrupt proxy unusable: either QEMU crashes, or...

a2e4d53e 01/06/2012 08:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    qemu-nbd: drop loop which can never loop
    Make python mandatory
    net/socket.c: Fix fd leak in net_socket_listen_init() error paths
    gdbstub: Fix fd leak in gdbserver_open() error path...
2afee49f 01/06/2012 08:50 pm Peter Maydell

virtio-9p-proxy: Fix typo causing compile failure on 32 bit hosts

Fix a compile failure on 32 bit hosts (integer constant is too large
for 'unsigned long' type) by correcting a typo where the mask used
for filling in the second f_fsid word had too many 'F's in it....

be62a2eb 01/06/2012 05:07 pm Markus Armbruster

Strip trailing '\n' from error_report()'s first argument (again)

Commit 6daf194d got rid of them, but Hans and Gerd added some more
lately. Tracked down with this Coccinelle semantic patch:

r
expression fmt;
position p;
@@
error_report(fmt, ...)@p...

6a84cb1f 01/06/2012 05:07 pm Markus Armbruster

scsi virtio-blk usb-msd: Clean up device init error messages

Replace

error_report("DEVICE-NAME: MESSAGE");

by just

error_report("MESSAGE");

in block device init functions.

DEVICE-NAME is bogus in some cases: it's "scsi-disk" for device
scsi-hd and scsi-cd, "virtio-blk-pci" for virtio-blk-s390, and...

f40b7d11 01/06/2012 04:15 pm Anthony Liguori

Merge remote-tracking branch 'amit/master' into staging

  • amit/master:
    virtio-console: Fix failure on unconnected pty
74b728e4 01/06/2012 04:14 pm Anthony Liguori

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

  • aneesh/for-upstream:
    hw/9pfs: Add support to use named socket for proxy FS
    hw/9pfs: man page for proxy helper
    hw/9pfs: Documentation changes related to proxy fs
    hw/9pfs: Proxy getversion...
f3e8275f 01/06/2012 04:11 pm Anthony Liguori

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

  • kraxel/usb.33:
    usb-ohci: td.cbp incorrectly updated near page end
    usb-host: properly release port on unplug & exit
    usb-storage: cancel I/O on reset
    Fix parse of usb device description with multiple configurations
24a5bbe1 01/06/2012 01:36 pm Gerd Hoffmann

usb-storage: cancel I/O on reset

When resetting the usb-storage device we'll have to carefully cancel
and clear any requests which might be in flight, otherwise we'll confuse
the state machine.

Signed-off-by: Gerd Hoffmann <>

fd891c93 01/06/2012 01:36 pm Andriy Gapon

usb-ohci: td.cbp incorrectly updated near page end

The current code that updates the cbp value after a transfer looks like this:
td.cbp += ret;
if ((td.cbp & 0xfff) + ret > 0xfff) {
<handle page overflow>
because the 'ret' value is effectively added twice the check may fire too early...

c47f3223 01/04/2012 06:06 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/arm-devs.for-upstream' into staging

  • pmaydell/arm-devs.for-upstream:
    add L2x0/PL310 cache controller device
    arm: add dummy gic security registers
    arm: Set frequencies for arm_timer
    arm: add missing scu registers...
84a87cc4 01/04/2012 05:53 pm M. Mohan Kumar

hw/9pfs: Add support to use named socket for proxy FS

Add option to use named socket for communicating between proxy helper
and qemu proxy FS. Access to socket can be given by using command line
options -u and -g.

Signed-off-by: M. Mohan Kumar <>...

d090e452 01/04/2012 04:50 pm M. Mohan Kumar

hw/9pfs: Proxy getversion

Add proxy getversion to get generation number

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

d52b09e4 01/04/2012 04:50 pm M. Mohan Kumar

hw/9pfs: xattr interfaces in proxy filesystem driver

Add xattr support for proxy FS

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

ea75fc4e 01/04/2012 04:49 pm M. Mohan Kumar

hw/9pfs: File ownership and others

Add file ownership interfaces like chmod/chown, utime update, rename,
remove and truncating files for proxy FS

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

b178adc3 01/04/2012 04:49 pm M. Mohan Kumar

hw/9pfs: Add stat/readlink/statfs for proxy FS

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

39f8c32c 01/04/2012 04:48 pm M. Mohan Kumar

hw/9pfs: Create other filesystem objects

Add interfaces to create filesystem objects like directory,
device nodes, symbolic links, links for proxy filesytem driver

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

daf0b9ac 01/04/2012 04:44 pm M. Mohan Kumar

hw/9pfs: Open and create files

Add interfaces to open and create files for proxy file system driver.

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

17bff52b 01/04/2012 04:44 pm M. Mohan Kumar

hw/9pfs: File system helper process for qemu 9p proxy FS

Provide root privilege access to QEMU 9p proxy filesystem using socket
communication.

Proxy helper is started by root user as:
~ # virtfs-proxy-helper -f|--fd <socket descriptor> -p|--path <path-to-share>...

4c793dda 01/04/2012 04:43 pm M. Mohan Kumar

hw/9pfs: Add new proxy filesystem driver

Add new proxy filesystem driver to add root privilege to qemu process.
It needs a helper process to be started by root user.

Following command line can be used to utilize proxy filesystem driver
-virtfs proxy,id=<id>,mount_tag=<tag>,socket_fd=<socket-fd>...

ddca7f86 01/04/2012 04:23 pm M. Mohan Kumar

hw/9pfs: Add validation to {un}marshal code

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

99519f0a 01/04/2012 04:21 pm Aneesh Kumar K.V

hw/9pfs: Move opt validation to FsDriver callback

This remove all conditional code from common code path and
make opt validation a FSDriver callback.

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

10925bf0 01/04/2012 04:21 pm M. Mohan Kumar

hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file

Move p9 marshaling/unmarshaling code to a separate file so that
proxy filesytem driver can use these calls. Also made marshaling
code generic to accept "struct iovec" instead of V9fsPDU.

Signed-off-by: M. Mohan Kumar <>...

b9f7bc40 01/04/2012 03:41 pm Juha Riihimäki

hw/omap1.c: Separate dpll_ctl from omap_mpu_state

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

e0236681 01/04/2012 03:41 pm Peter Maydell

hw/omap1.c: Drop unused includes

Drop includes of qemu-timer.h, qemu-char.h and pc.h as they are no
longer needed.

Signed-off-by: Peter Maydell <>

0ec6dc73 01/04/2012 03:41 pm Peter Maydell

hw/omap_gpmc: Fix region map/unmap when configuring prefetch engine

When configuring the prefetch engine (and also when resetting from
a state where the prefetch engine was enabled) be careful to adhere
to the "unmap/change config fields/map" ordering, to avoid trying...

78aca8a7 01/04/2012 03:41 pm Rob Herring

arm: add missing scu registers

Add power control register to a9mpcore

Signed-off-by: Rob Herring <>
Signed-off-by: Mark Langsdorf <>
Signed-off-by: Peter Maydell <>

104a26a2 01/04/2012 03:41 pm Mark Langsdorf

arm: Set frequencies for arm_timer

Use qdev properties to allow board modelers to set the frequencies
for the sp804 timer. Each of the sp804's timers can have an
individual frequency. The timers default to 1MHz.

Signed-off-by: Mark Langsdorf <>...

b79f2265 01/04/2012 03:41 pm Rob Herring

arm: add dummy gic security registers

Implement handling for the RAZ/WI gic security registers.

Signed-off-by: Rob Herring <>
Signed-off-by: Mark Langsdorf <>
Signed-off-by: Peter Maydell <>

b2123a48 01/04/2012 03:41 pm Rob Herring

add L2x0/PL310 cache controller device

This is just a dummy device for ARM L2 cache controllers, based on the
pl310. The cache type parameter can be defined by a property value
and has a meaningful default.

Signed-off-by: Rob Herring <>...

03759534 01/04/2012 03:41 pm Juha Riihimäki

hw/omap1.c: Separate PWT from omap_mpu_state

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

c5705a77 01/04/2012 01:34 pm Avi Kivity

vmstate, memory: decouple vmstate from memory API

Currently creating a memory region automatically registers it for
live migration. This differs from other state (which is enumerated
in a VMStateDescription structure) and ties the live migration code
into the memory core....

8717d88a 01/04/2012 12:35 pm Juha Riihimäki

hw/omap1.c: Separate PWL from omap_mpu_state

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

3b204c81 01/04/2012 12:35 pm Peter Maydell

hw/omap1.c: omap_mpuio_init() need not be public

omap_mpuio_init() is only used and defined in omap1.c, so make it static.

Signed-off-by: Peter Maydell <>

128939a9 01/04/2012 12:32 pm Peter Maydell

hw/pl110.c: Add post-load hook to invalidate display

Add a post-load hook which invalidates the display. In particular, if we
don't do this and the display size we've just reloaded is larger than
the default then we will segfault trying to read off the end of the buffer....

624923be 01/04/2012 12:31 pm Peter Maydell

hw/pl181.c: Add save/load support

Add save/load support to the PL181.

Signed-off-by: Peter Maydell <>

7fa41e53 01/04/2012 03:48 am Alexander Graf

[S390] Add hotplug support

I just submitted a few patches that enable the s390 virtio bus to receive
a hotplug add event. This patch implements the qemu side of it, so that new
hotplug events can be submitted to the guest.

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

dd97aa8a 01/04/2012 03:48 am Alexander Graf

Add generic drive hotplugging

The monitor command for hotplugging is in i386 specific code. This is just
plain wrong, as S390 just learned how to do hotplugging too and needs to
get drives for that.

So let's add a generic copy to generic code that handles drive_add in a...

f3c6a169 01/03/2012 10:39 pm Anthony Liguori

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

  • qemu-kvm/memory/page_desc: (22 commits)
    Remove cpu_get_physical_page_desc()
    sparc: avoid cpu_get_physical_page_desc()
    virtio-balloon: avoid cpu_get_physical_page_desc()
    vhost: avoid cpu_get_physical_page_desc()...
2817b260 01/03/2012 07:19 pm Avi Kivity

vhost: avoid cpu_get_physical_page_desc()

This reaches into the innards of the memory core, which are being
changed. Switch to a memory API version.

Signed-off-by: Avi Kivity <>

b7c28c74 01/03/2012 07:19 pm Avi Kivity

virtio-balloon: avoid cpu_get_physical_page_desc()

This reaches into the innards of the memory core, which are being
changed. Switch to a memory API version.

Signed-off-by: Avi Kivity <>

68f3a94c 01/03/2012 04:49 pm David Gibson

pseries: Populate "/chosen/linux,stdout-path" in the FDT

There is a device tree property "/chosen/linux,stdout-path" which indicates
which device should be used as stdout - ie. "the console".

Currently we don't specify anything, which means both firmware and Linux...

9fc380d3 01/03/2012 04:49 pm Michael Ellerman

pseries: Check for duplicate addresses on the spapr-vio bus

Check that devices on the spapr vio bus aren't given duplicate
addresses. Currently we will not run with duplicate devices, the
fdt code will spot it, but the error reporting is not great. With
this patch we can report the error nicely in terms of the device...

1fc02533 01/03/2012 04:49 pm David Gibson

pseries: Remove hcalls callback

For forgotten historical reasons, PAPR hypercalls for specific virtual IO
devices (oh which there are quite a number) are registered via a callback
in the VIOsPAPRDeviceInfo structure.

This is kind of ugly, so this patch instead registers hypercalls from...

6e806cc3 01/03/2012 04:49 pm Bharata B Rao

pseries: FDT NUMA extensions to support multi-node guests

Add NUMA specific properties to guest's device tree to boot a multi-node
guests. This patch adds the following properties:

ibm,associativity
ibm,architecture-vec-5
ibm,associativity-reference-points...

05c19438 01/03/2012 04:49 pm David Gibson

pseries: Emit device tree nodes in reg order

Although in theory the device tree has no inherent ordering, in practice
the order of nodes in the device tree does effect the order that devices
are detected by software.

Currently the ordering is determined by the order the devices appear on...

98331f8a 01/03/2012 04:49 pm David Gibson

pseries: Add a routine to find a stable "default" vty and use it

In vty_lookup() we have a special case for supporting early debug in
the kernel. This accepts reg == 0 as a special case to mean "any vty".

We implement this by searching the vtys on the bus and returning the...

157feead 01/03/2012 04:48 pm Liu Yu-B13201

kvm-ppc: halt secondary cpus when guest reset

When guest reset, we need to halt secondary cpus until guest kick them.
This already works for tcg. The patch add the support for kvm.

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

ed8e5a85 12/30/2011 07:40 am Christian Borntraeger

virtio-console: Fix failure on unconnected pty

when I tried qemu with -virtio-console pty the guest hangs and attaching
on /dev/pts/<x> does not return anything if the attachment is too late.

This results in pty_chr_write() returning 0, which causes the port to...

4e1ea514 12/27/2011 04:53 pm Anthony Liguori

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

  • aneesh/for-upstream:
    scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations.
    hw/9pfs: iattr_valid flags are kernel internal flags map them to 9p values.
    hw/9pfs: Use the correct signed type for different variables...
991dfefd 12/22/2011 06:53 pm Vasilis Liaskovitis

Set numa topology for max_cpus

qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. However
SeaBIOS always expects to setup max_cpus number of SRAT cpu entries
(MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm runs...

6640422c 12/21/2011 11:00 pm Amit Shah

virtio-console: Check if chardev backends available before calling into them

For the callback functions invoked by the virtio-serial-bus code, check
if we have chardev backends registered before we call into the chardev
functions.

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

05e7af69 12/21/2011 11:00 pm Amit Shah

virtio-console: Properly initialise class methods

The earlier code really was a hack: initialising class methods in an
object init function as noted by Anthony.

The motivation for that was to not have the virtio-serial-bus call into
the callback functions if there was no chardev backend registered....

03ecd2c8 12/21/2011 11:00 pm Amit Shah

virtio-serial-bus: Ports are expected to implement 'have_data' callback

There's no need to check if ports can accept any incoming data from the
guest each time the guest sends data. Check if the port implements such
functionality during port initialisation....

2f008a8c 12/21/2011 09:07 am Aneesh Kumar K.V

hw/9pfs: Use the correct signed type for different variables

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

e4027caf 12/21/2011 09:07 am Aneesh Kumar K.V

hw/9pfs: iattr_valid flags are kernel internal flags map them to 9p values.

Kernel internal values can change, add protocol values for these constant and
use them.

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

302a0d3e 12/21/2011 09:07 am Stefan Hajnoczi

hw/9pfs: replace iovec manipulation with QEMUIOVector

The v9fs_read() and v9fs_write() functions rely on iovec[] manipulation
code should be replaced with QEMUIOVector to avoid duplicating code.
In the future it may be possible to make the code even more concise by...

3799ce4a 12/21/2011 06:04 am Andrzej Zaborowski

sd: Remember to reset .expecting_acmd on reset.

Signed-off-by: Andrzej Zaborowski <>

fcfa9351 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Clear status bits when read via response r6

Response format r6 includes a subset of the status bits;
clear the clear-on-read bits which are read by an r6 response.

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

1d06cb7a 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Correct handling of APP_CMD status bit

Fix some bugs in our implementation of the APP_CMD status bit: * the response to an ACMD should have APP_CMD set, not cleared * if an illegal ACMD is sent then the next command should be
handled as a normal command...

10a412da 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Correct handling of type B SD status bits

Correct how we handle the type B ("cleared on valid command")
status bits. In particular, the CURRENT_STATE bits in a response
should be the state of the card when it received that command,
not the state when it received the preceding command. (This is...

5b08bfe2 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Set ILLEGAL_COMMAND for ACMDs in invalid state

App commands in an invalid state should set ILLEGAL_COMMAND, not
merely return a zero response.

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

b1f517ed 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Handle CRC and locked-card errors in normal code path

Handle returning CRC and locked-card errors in the same code path
we use for other responses. This makes no difference in behaviour
but means that these error responses will be printed by the debug...

53bb8cc4 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Handle illegal commands in sd_do_command

Add an extra sd_illegal value to the sd_rsp_type_t enum so that
sd_app_command() and sd_normal_command() can tell sd_do_command()
that the command was illegal. This is needed so we can do things
like reset certain status bits only on receipt of a valid command....

e30d5938 12/21/2011 06:01 am Peter Maydell

hw/sd.c: When setting ADDRESS_ERROR bit, don't clear everything else

Fix a typo that meant that ADDRESS_ERRORs setting or clearing write
protection would clear every other bit in the status register.

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

abda1f37 12/21/2011 06:01 am Peter Maydell

hw/sd.c: On CRC error, set CRC error status bit rather than clearing it

If we fail to validate the CRC for an SD command we should be setting
COM_CRC_ERROR, not clearing it. (This bug actually has no effect currently
because sd_req_crc_validate() always returns success.)...

b8d334c8 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Add comment regarding CARD_STATUS_* defines

Add a clarifying comment about what the CARD_STATUS_[ABC]
macros are defining.

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

25881d33 12/21/2011 05:59 am Peter Maydell

hw/sd.c: Fix the set of commands which are failed when card is locked

Fix bugs in the code determining whether to accept a command when the
SD card is locked. Most notably, we had the condition completely
reversed, so we would accept all the commands we should refuse and...

d3c68e4f 12/20/2011 11:44 pm Hervé Poussineau

isa: always use provided ISA bus in isa_bus_irqs()

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

4a0f031d 12/20/2011 11:44 pm Hervé Poussineau

audio: remove unused parameter isa_pic

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

e114fead 12/20/2011 11:44 pm Peter Maydell

hw/sysbus.c: Remove unnecessary conditionals

Now that all sysbus MMIO regions are MemoryRegions, mmio[n].memory
is never NULL, and we can remove some unnecessary conditionals.

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

48a18b3c 12/20/2011 11:44 pm Hervé Poussineau

isa: give ISABus/ISADevice to isa_create(), isa_bus_irqs() and isa_get_irq() functions

NULL is a valid bus/device, so there is no change in behaviour.

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

d1a1be18 12/20/2011 11:44 pm Hervé Poussineau

isa: move ISABus structure definition to header file

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

a811f53c 12/20/2011 11:44 pm Hervé Poussineau

i8259: give ISA device to isa_register_ioport()

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

60573079 12/20/2011 11:44 pm Hervé Poussineau

pc: give ISA bus to ISA methods

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

71baa303 12/20/2011 11:44 pm Hervé Poussineau

alpha: give ISA bus to ISA methods

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

ab953e28 12/20/2011 11:44 pm Hervé Poussineau

sun4u: give ISA bus to ISA methods

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

c9940edb 12/20/2011 11:44 pm Hervé Poussineau

fulong2e: give ISA bus to ISA methods

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

142e9787 12/20/2011 11:44 pm Hervé Poussineau

malta: give ISA bus to ISA methods

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

75782268 12/20/2011 11:44 pm Hervé Poussineau

isa: always use provided ISA bus when creating an isa device

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

bc7c9ecc 12/20/2011 04:12 pm Paolo Bonzini

i440fx: remove piix3 field

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

c65adf9b 12/20/2011 02:14 pm Avi Kivity

xen, vga: add API for registering the framebuffer

Xen currently uses the name of a memory region to determine whether it
is the framebuffer. Replace with an explicit API.

Signed-off-by: Avi Kivity <>

75c9d6c2 12/20/2011 02:14 pm Avi Kivity

framebuffer: drop use of cpu_get_physical_page_desc()

cpu_get_physical_page_desc() is tied into the memory core's
innards, replace it with uses of the API.

Signed-off-by: Avi Kivity <>

dcc5cd33 12/20/2011 02:14 pm Avi Kivity

loader: remove calls to cpu_get_physical_page_desc()

cpu_get_physical_page_desc() is tied into the memory core's
innards, replace it with uses of the API.

Signed-off-by: Avi Kivity <>

c1cd0b2c 12/20/2011 02:14 pm Avi Kivity

framebuffer: drop use of cpu_physical_sync_dirty_bitmap()

Replace with memory API equivalent.

Signed-off-by: Avi Kivity <>

04097f7c 12/20/2011 02:14 pm Avi Kivity

vhost: convert to MemoryListener API

Drop the use of cpu_register_phys_memory_client() in favour of the new
MemoryListener API. The new API simplifies the caller, since there is no
need to deal with splitting and merging slots; however this is not exploited...

62ec4832 12/20/2011 02:14 pm Avi Kivity

sysbus: add sysbus_address_space()

Given a bus device, retrieves the memory address space for its bus.

Signed-off-by: Avi Kivity <>

1de81d28 12/20/2011 12:39 am Anthony Liguori

qdev: fix hotplug when no -device is specified

The peripheral[-anon] containers are initialized lazily but since they sit on
sysbus, they can not be created after realize. This was causing an abort() to
occur during hotplug if no -device option was used....