Statistics
| Branch: | Revision:

root / hw @ 0200db65

# Date Author Comment
0200db65 10/16/2011 01:42 pm Max Filippov

target-xtensa: add Avnet LX60/LX110/LX200 boards

These boards carry similar hardware: SDRAM (48M for LX110, 64M for LX60,
96M for LX200), 16 Mbyte FLASH, FPGA, 10/100 Mbps Ethernet PHY and 16550
UART. FPGA may be loaded with almost any Tensilica processor. It is also...

342407fd 10/16/2011 01:42 pm Max Filippov

hw: add OpenCores 10/100 Mbps Ethernet controller

This is OpenCores Ethernet MAC + subset of National Semiconductors
DP83838C PHY.
OpenCores Ethernet MAC project: http://opencores.org/project,ethmac

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

5e408573 10/16/2011 01:40 pm Max Filippov

target-xtensa: rename dc232b board to sim

This is to get aligned with the linux name for this machine.

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

b8929a54 10/16/2011 01:39 pm Max Filippov

target-xtensa: implement external interrupt mapping

Xtensa cores may have different mapping of external interrupt pins to
internal IRQ numers. Implement API to acquire core IRQ by its external
interrupt number.

Signed-off-by: Max Filippov <>...

63f95e4c 10/16/2011 01:39 pm Max Filippov

target-xtensa: remove hand-written xtensa cores implementations

Signed-off-by: Max Filippov <>
Signed-off-by: Blue Swirl <>

890c6333 10/16/2011 12:03 am Max Filippov

target-xtensa: fix guest hang on masked CCOMPARE interrupt

QEMU timer is used to post CCOMPARE interrupt when the core is halted.
If that CCOMPARE interrupt is masked off then the timer must be rearmed
in the callback, otherwise it will be rearmed next time the core goes to...

e9a07334 10/15/2011 08:39 pm Jan Kiszka

Move graphic-related coalesced MMIO flushes to affected device models

This is conceptually cleaner and will allow us to drop the nographic
timer. Moreover, it will be mandatory to fully exploit future per-device
coalesced MMIO rings.

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

2a22e6eb 10/14/2011 08:36 pm Anthony Liguori

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

210b3a70 10/14/2011 06:47 pm Anthony Liguori

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

bdc792d3 10/14/2011 06:46 pm Anthony Liguori

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

36f490b1 10/14/2011 06:44 pm Anthony Liguori

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

47601f22 10/14/2011 04:39 pm Andreas Färber

arm_pic: Fix typo

interrput -> interrupt

Cc: Paul Brook <>
Signed-off-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

80cf7cf7 10/13/2011 02:16 pm Gerd Hoffmann

usb-hub: don't trigger assert on packet completion.

Calling usb_packet_complete() recursively when passing up the completion
event up the chain for devices connected via usb hub will trigger an
assert. So don't do that, make the usb hub emulation call the upstream...

d3ac1a87 10/13/2011 01:58 pm Gerd Hoffmann

usb-storage: fix NULL pointer dereference.

When a usb packet is canceled we need to check whenever we actually have
a scsi request in flight before we try to cancel it.

Signed-off-by: Gerd Hoffmann <>

3393bc10 10/13/2011 01:58 pm Gerd Hoffmann

usb-hub: need to check dev->attached

commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a did that for all host
controllers, the usb hub was left out by accident.

Signed-off-by: Gerd Hoffmann <>

e0b8e72d 10/13/2011 01:58 pm Gerd Hoffmann

usb: fix port reset

commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a removed the implicit
detach before (re-)attaching in usb_attach(). Some usb host controllers
used that behavior though to do a port reset by a detach+attach
sequence.

This patch establishes old behavior by adding a new usb_reset() function...

8d11b78c 10/13/2011 01:58 pm Peter Maydell

hw/usb-ohci: Fix OHCI_TD_T1 bit position definition

The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25;
fix an error which accidentally overlaid them both on the same bit.

Signed-off-by: Peter Maydell <>
Signed-off-by: Gerd Hoffmann <>

905fb034 10/13/2011 01:58 pm Peter Maydell

hw/usb-ohci: Honour endpoint maximum packet size

Honour the maximum packet size for endpoints; this applies when
sending non-isochronous data and means we transfer only as
much as the endpoint allows, leaving the transfer descriptor
on the list for another go next time around. This allows...

3a3286bf 10/13/2011 01:58 pm Gerd Hoffmann

usb-hid: activate usb tablet / mouse after migration.

qemu uses the ps/2 mouse by default. The usb tablet (or mouse) is
activated as soon as qemu sees some guest activity on the device,
i.e. polling for HID events. That used to work fine for both fresh...

23af670e 10/11/2011 04:57 pm Richard Henderson

pc: Convert port92 to isa_register_ioport

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

f75317b4 10/11/2011 04:57 pm Richard Henderson

vmport: Convert to isa_register_ioport

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

4a91d3b3 10/11/2011 04:57 pm Richard Henderson

ide: Convert to isa_register_portio_list

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

0d959524 10/11/2011 04:57 pm Richard Henderson

isa: Remove isa_init_ioport_range and isa_init_ioport

All users have been converted to either isa_register_ioport
or isa_register_old_portio_list.

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

212ec7ba 10/11/2011 04:57 pm Richard Henderson

fdc: Convert to isa_register_portio_list

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

d7adb96f 10/11/2011 04:57 pm Richard Henderson

gus: Convert to isa_register_portio_list

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

9936d6e4 10/11/2011 04:57 pm Richard Henderson

m48t59: Convert to isa_register_ioport

The sysbus interface is as yet unconverted.

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

b2c5009b 10/11/2011 04:57 pm Richard Henderson

rtc: Convert to isa_register_ioport

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

a5028520 10/11/2011 04:57 pm Richard Henderson

ne2000: Convert to isa_register_ioport

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

1922abd0 10/11/2011 04:57 pm Richard Henderson

parallel: Convert to isa_register_portio_list

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

42c1a22d 10/11/2011 04:57 pm Richard Henderson

sb16: Convert to isa_register_portio_list

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

0a039dc7 10/11/2011 04:57 pm Richard Henderson

vga: Convert to isa_register_portio_list

[jan: fix cut'n'paste errors]
[avi: adjust pci variants not to use isa functions]

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

d7500734 10/11/2011 04:57 pm Avi Kivity

isa: Add isa_register_portio_list()

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

9fb118e6 10/11/2011 10:42 am Luiz Capitulino

scsi: Support I/O status

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

50fb1900 10/11/2011 10:42 am Luiz Capitulino

ide: Support I/O status

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

af239a62 10/11/2011 10:42 am Luiz Capitulino

virtio: Support I/O status

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

f0cdd7a9 10/10/2011 04:29 pm Peter Maydell

hw/lan9118.c: Convert to MemoryRegion

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

ced52fa6 10/10/2011 04:29 pm Avi Kivity

palm: convert to memory API

Signed-off-by: Avi Kivity <>

d7973c77 10/10/2011 04:29 pm Avi Kivity

petalogix_ml605: convert to memory API

Signed-off-by: Avi Kivity <>

589f0aad 10/10/2011 04:29 pm Avi Kivity

petalogix_s2adsp1800: convert to memory API

Signed-off-by: Avi Kivity <>

a682fd5c 10/10/2011 04:29 pm Avi Kivity

ppc405_boards: convert to memory API

Signed-off-by: Avi Kivity <>

dd236a50 10/10/2011 04:29 pm Peter Maydell

hw/arm11mpcore: Clean up to avoid using sysbus_mmio_init_cb2

Clean up the initialisation of the realview_mpcore device to avoid
using sysbus_init_mmio_cb2(): we can pass through the MemoryRegion
of the private arm11mpcore_priv device directly now.

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

7d6e771f 10/10/2011 04:29 pm Peter Maydell

hw/versatile_pci: Expose multiple sysbus mmio regions

Clean up versatile_pci to expose the various PCI mmio regions
properly as separate mmio regions rather than as a single mmio
which uses callbacks to map and unmap everything.

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

febbd7c2 10/10/2011 04:29 pm Avi Kivity

ppc_newworld: convert to memory API

Signed-off-by: Avi Kivity <>

ebf47c24 10/10/2011 04:29 pm Richard Henderson

isa: Tidy support code for isabus_get_fw_dev_path

The only user of ISADevice.ioports is isabus_get_fw_dev_path, and it
only looks at the first entry of the array. Which suggests that this
entire array+sort operation can be replaced by a simple minimum.
...

ebffe2af 10/10/2011 04:21 pm Anthony Liguori

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

057643f6 10/10/2011 04:09 pm Anthony Liguori

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

8acbc9b2 10/09/2011 06:04 pm malc

Restore consistent formatting
Signed-off-by: malc <>

df2921d3 10/09/2011 02:11 pm Avi Kivity

Merge remote-tracking branch 'upstream' into memory/batch

  • upstream: (87 commits)
    target-alpha: Fix compilation errors for 32 bit hosts
    target-alpha: Add high-resolution access to wall clock and an alarm.
    target-alpha: Implement HALT IPR.
    target-alpha: Implement WAIT IPR....
02d6516c 10/09/2011 11:18 am Stefan Weil

target-alpha: Fix compilation errors for 32 bit hosts

On i386, these errors were reported:

qemu/hw/alpha_dp264.c: In function ‘clipper_init’:
qemu/hw/alpha_dp264.c:158: error: integer constant is too large for ‘unsigned long’ type

qemu/hw/alpha_typhoon.c: In function ‘typhoon_init’:...

9a7242f7 10/08/2011 07:03 pm Blue Swirl

Merge branch 'axp-system-7' of git://repo.or.cz/qemu/rth

  • 'axp-system-7' of git://repo.or.cz/qemu/rth:
    target-alpha: Add high-resolution access to wall clock and an alarm.
    target-alpha: Implement HALT IPR.
    target-alpha: Implement WAIT IPR.
    target-alpha: Add CLIPPER emulation....
80bb2ff7 10/08/2011 06:49 pm Richard Henderson

target-alpha: Add CLIPPER emulation.

This is a DP264 variant, SMP capable, no unusual hardware present.

The emulation does not currently include any PCI IOMMU code.
Hopefully the generic support for that can be merged to HEAD soon.

Signed-off-by: Richard Henderson <>

c781cf96 10/08/2011 06:49 pm Richard Henderson

target-alpha: Add high-resolution access to wall clock and an alarm.

The alarm is a fully general one-shot time comparator, which will be
usable under Linux as a hrtimer source. It's much more flexible than
the RTC source available on real hardware.

The wall clock allows the guest access to the host timekeeping. Much...

53e62170 10/08/2011 06:40 pm Blue Swirl

Merge branch 'for-upstream' of git://git.serverraum.org/git/mw/qemu-lm32

  • 'for-upstream' of git://git.serverraum.org/git/mw/qemu-lm32:
    milkymist: new interrupt map
    milkymist_uart: support new core version
    lm32: add missing qemu_init_vcpu() call
ddd1055b 10/06/2011 10:48 am Fabien Chouteau

PPC: booke timers

While working on the emulation of the freescale p2010 (e500v2) I realized that
there's no implementation of booke's timers features. Currently mpc8544 uses
ppc_emb (ppc_emb_timers_init) which is close but not exactly like booke (for
example booke uses different SPR)....

44427c40 10/06/2011 10:48 am Alexander Graf

PPC: Clean up BookE timer code

The BookE timer code had some written-but-not-read variables. Get rid
of them.

Signed-off-by: Alexander Graf <>

e6c866d4 10/06/2011 10:48 am David Gibson

pseries: Refactor spapr irq allocation

Paulo Bonzini changed the original spapr code, which manually assigned irq
numbers for each virtual device, to allocate them automatically from the
device initialization. That allowed spapr virtual devices to be constructed...

ac26f8c3 10/06/2011 10:48 am Breno Leitao

pseries: Implement set-time-of-day RTAS function

Currently there is no implementation for set-time-of-day rtas function,
which causes the following warning "setting the clock failed (-1)" on
the guest.

This patch just creates this function, get the timedate diff and store in...

11de8b71 10/06/2011 10:48 am Alexander Graf

openpic: Unfold write_IRQreg

The helper function write_IRQreg was always called with a specific argument on
the type of register to access. Inside the function we were simply doing a
switch on that constant argument again. It's a lot easier to just unfold this...

7a880d93 10/06/2011 10:48 am Laurent Vivier

ppc: move ADB stuff from ppc_mac.h to adb.h

Allow to use ADB in non-ppc macintosh

Signed-off-by: Laurent Vivier <>
Signed-off-by: Alexander Graf <>

ea0a7eb4 10/06/2011 10:48 am Alexander Graf

PPC: Fix via-cuda memory registration

Commit 23c5e4ca (convert to memory API) broke the VIA Cuda emulation layer
by not registering the IO structs.

This patch registers them properly and thus makes -M g3beige and -M mac99
work again.

Tested-by: Andreas Färber <>...

0157644c 10/06/2011 10:48 am Alexander Graf

PPC: Fix heathrow PIC to use little endian MMIO

During the memory API conversion, the indication on little endianness of
MMIO for the heathrow PIC got dropped. This patch adds it back again.

Signed-off-by: Alexander Graf <>

e5697f20 10/06/2011 10:48 am Stefan Hajnoczi

ppc405: use RAM_ADDR_FMT instead of %08lx

The RAM_ADDR_FMT macro hides the type of ram_addr_t so that format
strings can be safely used. Make sure to use RAM_ADDR_FMT so that the
build works on 32-bit hosts with Xen enabled. Whether Xen should affect
ppc TCG targets is questionable but a separate issue....

8d3a8c1e 10/06/2011 10:48 am Alexander Graf

openpic: Unfold read_IRQreg

The helper function read_IRQreg was always called with a specific argument on
the type of register to access. Inside the function we were simply doing a
switch on that constant argument again. It's a lot easier to just unfold this...

f5b6ffcf 10/06/2011 10:48 am Paolo Bonzini

vscsi: send the CHECK_CONDITION status down together with autosense data

I introduced this bug in commit 05751d3 (vscsi: always use get_sense,
2011-08-03) because at the time there was no way to expose a sense
condition to SLOF and Linux manages to work around the bug. However,...

827200a2 10/06/2011 10:48 am David Gibson

pseries: Add real mode debugging hcalls

PAPR systems support several hypercalls intended for use in real mode
debugging tools. These implement reads and writes to arbitrary guest
physical addresses. This is useful for real mode software because it
allows access to IO addresses and memory outside the RMA without going...

68722054 10/06/2011 10:48 am Nishanth Aravamudan

pseries: use macro for firmware filename

For some time we've had a nicely defined macro with the filename for our
firmware image. However we didn't actually use it in the place we're
supposed to. This patch fixes it.

Signed-off-by: Nishanth Aravamudan <>...

93dd5e85 10/06/2011 10:48 am Scott Wood

kvm: ppc: booke206: use MMU API

Share the TLB array with KVM. This allows us to set the initial TLB
both on initial boot and reset, is useful for debugging, and could
eventually be used to support migration.

Signed-off-by: Scott Wood <>...

2bd9543c 10/06/2011 10:48 am Scott Wood

ppc: booke206: use MAV=2.0 TSIZE definition, fix 4G pages

This definition is backward compatible with MAV=1.0 as long as
the guest does not set reserved bits in MAS1/MAS4.

Also, fix the shift in booke206_tlb_to_page_size -- it's the base
that should be able to hold a 4G page size, not the shift count....

a3d0abae 10/06/2011 10:48 am David Gibson

pseries: Implement hcall-bulk hypervisor interface

This patch adds support for the H_REMOVE_BULK hypercall on the pseries
machine. Strictly speaking this isn't necessarym since the kernel will
only attempt to use this if hcall-bulk is advertised in the device tree,...

9dfef5aa 10/06/2011 10:48 am David Gibson

pseries: interrupt controller should not have a 'reg' property

The interrupt controller presented in the device tree for the pseries
machine is manipulated by the guest only through hypervisor calls. It
has no real or emulated registers for the guest to access....

f73a2575 10/06/2011 10:48 am David Gibson

pseries: More complete WIMG validation in H_ENTER code

Currently our implementation of the H_ENTER hypercall, which inserts a
mapping in the hash page table assumes that only ordinary memory is ever
mapped, and only permits mapping attribute bits accordingly (WIMG==0010)....

1e3debf0 10/06/2011 10:48 am Alexander Graf

MPC8544DS: Generate CPU nodes on init

With this patch, we generate CPU nodes in the machine initialization, giving
us the freedom to generate as many nodes as we want and as the machine supports,
but only those.

This is a first step towards a much cleaner device tree generation...

a2a67420 10/06/2011 10:48 am Alexander Graf

PPC: E500: Bump CPU count to 15

Now that we have everything in place, make the machine description
aware of the fact that we can now handle 15 virtual CPUs!

Signed-off-by: Alexander Graf <>


v1 -> v2:

- Max cpus is 15 because of MPIC
f61b4bed 10/06/2011 10:48 am Alexander Graf

PPC: Enable to use PAPR with PR style KVM

When running PR style KVM, we need to tell the kernel that we want
to run in PAPR mode now. This means that we need to pass some more
register information down and enable papr mode. We also need to align
the HTAB to htab_size boundary....

0a8b2938 10/06/2011 10:48 am Alexander Graf

PPC: SPAPR: Use KVM function for time info

One of the things we can't fake on PPC is the timer speed. So
we need to extract the frequency information from the host and
put it back into the guest device tree.

Luckily, we already have functions for that from the non-pseries...

cc67b9c8 10/06/2011 10:48 am David Gibson

pseries: Bugfixes for interrupt numbering in XICS code

The implementation of the XICS interrupt controller contains several
(difficult to trigger) bugs due to the fact that we were not 100%
consistent with which irq numbering we used. In most places, global...

0c103f8e 10/06/2011 10:48 am David Gibson

pseries: Add a phandle to the xicp interrupt controller device tree node

Future devices we will be adding to the pseries machine (e.g. PCI) will
need nodes in the device tree which explicitly reference the top-level
interrupt controller via interrupt-parent or interrupt-map properties....

10f25a46 10/06/2011 10:48 am Alexander Graf

PPC: E500: Update cpu-release-addr property in cpu nodes

The guest OS wants to know where the guest spins, so let's tell him while
updating the CPU nodes with the frequencies anyways.

Signed-off-by: Alexander Graf <>


v1 -> v2:

- use new spin table address
5c145dac 10/06/2011 10:47 am Alexander Graf

PPC: E500: Add PV spinning code

CPUs that are not the boot CPU need to run in spinning code to check if they
should run off to execute and if so where to jump to. This usually happens
by leaving secondary CPUs looping and checking if some variable in memory...

621d05e3 10/06/2011 10:43 am Alexander Graf

PPC: E500: Update freqs for all CPUs

Now that we can so nicely find out the host's frequencies, we should also
make sure that we get them into all virtual CPUs' device tree nodes.

Signed-off-by: Alexander Graf <>

66bc7e00 10/06/2011 10:43 am Alexander Graf

PPC: E500: Remove unneeded CPU nodes

We should only keep CPU nodes in the device tree around that we really have
virtual CPUs for. So remove all superfluous entries that we just keep there
in case someone wants to create a lot of vCPUs.

Signed-off-by: Alexander Graf <>

a489f7f7 10/06/2011 10:43 am Alexander Graf

PPC: bamboo: Move host fdt copy to target

We have some code in generic kvm_ppc.c that is only used by 440. Move to
the 440 specific device code.

Signed-off-by: Alexander Graf <>

911d6e7a 10/06/2011 10:43 am Alexander Graf

PPC: E500: Use generic kvm function for freq

Now that we have generic KVM functions to read out the host tb and clock
frequencies, let's use them in the e500 code!

Signed-off-by: Alexander Graf <>

66ae7902 10/06/2011 10:43 am Alexander Graf

PPC: E500: Remove mpc8544_copy_soc_cell

We don't need mpc8544_copy_soc_cell anymore, since we're explicitly reading
host values and writing guest values respectively.

Signed-off-by: Alexander Graf <>

7dadd40c 10/06/2011 10:43 am Alexander Graf

PPC: bamboo: Use kvm api for freq and clock frequencies

Now that we have nice and shiny APIs to read out the host's clock and timebase
frequencies, let's use them in the bamboo code as well!

Signed-off-by: Alexander Graf <>

704c7e5d 10/06/2011 10:43 am Alexander Graf

PPC: Add CPU local MMIO regions to MPIC

The MPIC exports a register set for each CPU connected to it. They can all
be accessed through specific registers or using a shadow page that is mapped
differently depending on which CPU accesses it.

This patch implements the shadow map, making it possible for guests to access...

bc59d9c9 10/06/2011 10:43 am Alexander Graf

PPC: Extend MPIC MMIO range

The MPIC exports a page for each CPU that it controls. To support more than
one CPU, we need to also reserve the MMIO space according to the amount of
CPUs we want to support.

Signed-off-by: Alexander Graf <>

a675155e 10/06/2011 10:43 am Alexander Graf

PPC: Fix IPI support in MPIC

The current IPI support in the MPIC code is incomplete and doesn't work. This
code adds proper support for IPIs in MPIC by using the IDE register to remember
which CPUs IPIs are still outstanding to. New triggers through the IPI trigger...

9250fd24 10/06/2011 10:43 am Alexander Graf

PPC: Set MPIC IDE for IPI to 0

We use the IDE register with IPIs as a mask to keep track which processors
have already acknowledged the respective interrupt. So we need to initialize
it to 0 to make sure that it doesn't accidently fire an IPI on CPU0 when the...

3ee82442 10/06/2011 10:43 am Alexander Graf

PPC: MPIC: Remove read functionality for WO registers

The IPI dispatch registers are write only according to every MPIC
spec I have found. So instead of pretending you could read back something
from them, better not handle them at all.

Reported-by: Elie Richa <>...

0d33defb 10/06/2011 10:43 am Alexander Graf

PPC: MPIC: Fix CI bit definitions

The bit definitions for critical interrupt routing are in PowerPC order
(most significant bit is 0), while we end up shifting it with normal bit
order. Turn the numbers around so we actually end up fetching the
right ones....

bbc58422 10/06/2011 10:43 am Alexander Graf

PPC: Bump MPIC up to 32 supported CPUs

The MPIC emulation is now capable of handling up to 32 CPUs. Reflect that in
the code exporting the numbers out and fix an integer overflow while at it.

Signed-off-by: Alexander Graf <>


v1 -> v2:...

e61c36d5 10/06/2011 10:43 am Alexander Graf

PPC: E500: create multiple envs

When creating a VM, we should go through smp_cpus and create a virtual CPU for
every CPU the user requested. This patch adds support for that and moves some
code around to make that more convenient.

Signed-off-by: Alexander Graf <>

a915249f 10/06/2011 10:43 am Alexander Graf

PPC: E500: Generate IRQ lines for many CPUs

Now that we can generate multiple envs for all our virtual CPUs, we
also need to tell the MPIC that we have multiple CPUs connected and
connect them all to the respective virtual interrupt lines.

Signed-off-by: Alexander Graf <>

277f9acf 10/06/2011 10:43 am Paolo Bonzini

spapr: proper qdevification

Right now the spapr devices cannot be instantiated with -device,
because the IRQs need to be passed to the spapr_*_create functions.
Do this instead in the bus's init wrapper.

This is particularly important with the conversion from scsi-disk...

77c7ea5e 10/06/2011 10:43 am Paolo Bonzini

spapr: prepare for qdevification of irq

Restructure common properties for sPAPR devices so that IRQ definitions
can be added in one place.

Signed-off-by: Paolo Bonzini <>
Cc: Alexander Graf <>
Cc: David Gibson <>...

416343b1 10/06/2011 10:43 am Paolo Bonzini

spapr: make irq customizable via qdev

This also lets the user see the irq in "info qtree".

Signed-off-by: Paolo Bonzini <>
Cc: Alexander Graf <>
Cc: David Gibson <>
Signed-off-by: Alexander Graf <>

ce8d2800 10/05/2011 11:19 am Antony Pavlov

gt64xxx.c: fix length modifier in DPRINTF format string

The commit fc2bf44972349b078d8310466c3866615500e67f
changed the type of val argument of the function gt64120_writel()
from uint32_t to uint64_t, so we need to change the corresponding
length modifier from "%x" to "%" PRIx64....

f6c61065 10/05/2011 11:19 am Antony Pavlov

gt64xxx.c: remove reference to non-existing ISD_handle field

The commit fc2bf44972349b078d8310466c3866615500e67f
removed ISD_handle field from struct GT64120State,
so remove the field from DPRINTF too.

Signed-off-by: Antony Pavlov <>...

4789bc39 10/05/2011 11:19 am Jan Kiszka

lsi: Fix tag reference in debug print

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