Statistics
| Branch: | Revision:

root / hw @ a8aec295

# Date Author Comment
a8aec295 07/04/2013 06:42 pm Jan Kiszka

adlib: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

CC: malc <>
Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

f487b677 07/04/2013 06:42 pm Paolo Bonzini

dma: keep a device alive while it has SGLists

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

cac3c384 07/04/2013 06:37 pm Paolo Bonzini

scsi: keep device alive while it has requests

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

1acd5a37 07/01/2013 05:03 pm Anthony Liguori

Merge remote-tracking branch 'agraf/ppc-for-upstream' into staging

  1. By Alexander Graf (12) and others
  2. Via Alexander Graf
    • agraf/ppc-for-upstream: (32 commits)
      PPC: Ignore writes to L2CR
      mac-io: Add escc-legacy memory alias region
      PPC: Newworld: Add second uninorth control register set...
cc3ac9c4 07/01/2013 12:00 pm Cornelia Huck

virtio-ccw: fix build breakage on windows

event_notifier_get_fd() is not available on windows hosts. Fix this by
moving the calls to event_notifier_get_fd() to the kvm code.

Reported-by: Stefan Weil <>
Reviewed-by: Paolo Bonzini <>...

a1014f25 07/01/2013 02:11 am Alexander Graf

PPC: Add clock-frequency export for Mac machines

Support in fwcfg has been around for exposure of the clock-frequency
CPU property. OpenBIOS reads it, we just never exposed it.

Since Mac OS X is very picky about its clock frequency values, let's
just take a known good value and always expose that....

4e46dcdb 07/01/2013 02:11 am Alexander Graf

PPC: Newworld: Add uninorth token register

Mac OS X expects the uninorth control register set to contain one
register that always reads back what it writes in. Expose that.

This is just a temporary hack. Eventually, we want to expose the
uninorth (/uni-n in device tree) as a separate QOM device....

593c1811 07/01/2013 02:11 am Alexander Graf

PPC: Newworld: Add second uninorth control register set

Mac OS X requires a second uninorth register set to be mapped a few
bytes above the first one. Let's just expose it to make it happy.

Signed-off-by: Alexander Graf <>

0d54a502 07/01/2013 02:11 am Alexander Graf

mac-io: Add escc-legacy memory alias region

Mac OS X's debugging serial driver accesses the ESCC through a different
register layout, called "escc-legacy". This layout differs from the normal
escc register layout purely by the location of the respective registers....

210b580b 07/01/2013 02:11 am Anthony Liguori

spapr-rtas: add CPU argument to RTAS calls

RTAS is a hypervisor provided binary blob that a guest loads and
calls into to execute certain functions. It's similar to the
vsyscall page in Linux or the short lived VMCI paravirt interface
from VMware.

The QEMU implementation of the RTAS blob is simply a passthrough...

ec4936e1 07/01/2013 02:11 am Stefan Weil

pseries: Fix compiler warning (conversion of pointer to integral value)

This kind of type cast must use uintptr_t or target_ulong to be portable
for hosts with sizeof(void *) != sizeof(long).

Here the value is assigned to a variable of type target_ulong....

ab8131af 07/01/2013 02:11 am Bharat Bhushan

booke_ppc: limit booke timer to max when timeout overflow

Limit watchdog and fit timer to maximum timeout value which
qemu timer can support (INT64_MAX). This maximum timeout will be
hundreds of years, so limiting to max timeout is pretty safe.

Signed-off-by: Bharat Bhushan <>...

cbe72019 07/01/2013 02:11 am Andreas Färber

intc/openpic: Convert to QOM realize

Split qdev initfn into instance_init and realize functions.
Change one occurrence of "klass" while at it.

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

dd49c038 07/01/2013 02:11 am Andreas Färber

intc/openpic_kvm: Fix QOM and build issues

Signed-off-by: Andreas Färber <>
Signed-off-by: Alexander Graf <>

1f1a83f4 07/01/2013 02:11 am Andreas Färber

mpc8544_guts: Fix MemoryRegion name

6544 -> 8544

Signed-off-by: Andreas Färber <>
Signed-off-by: Alexander Graf <>

43f691e9 07/01/2013 02:11 am Andreas Färber

mpc8544_guts: QOM'ify

Introduce type constant, cast macro and rename parent field.

Signed-off-by: Andreas Färber <>
Signed-off-by: Alexander Graf <>

7587ea5b 07/01/2013 02:11 am Andreas Färber

mpc8544_guts: Turn qdev initfn into instance_init

SysBus can deal with NULL SysBusDeviceClass::init since 4ce5dae.

Signed-off-by: Andreas Färber <>
Signed-off-by: Alexander Graf <>

159f8286 07/01/2013 02:11 am David Gibson

target-ppc: Change default machine for 64-bit

Currently, for qemu-system-ppc64, the default machine type is 'mac99'.
The mac99 machine is not being actively maintained, and represents a
bizarre hybrid of components that never actually existed as a real system....

8935a442 07/01/2013 02:11 am Scott Wood

openpic: factor out some common defines into openpic.h

...for use by the KVM in-kernel irqchip stub.

Signed-off-by: Scott Wood <>
Signed-off-by: Alexander Graf <>

82fc73b6 07/01/2013 02:11 am Scott Wood

PPC: e500: factor out mpic init code

KVM in-kernel MPIC support is going to expand this even more,
so let's keep it contained.

Signed-off-by: Scott Wood <>
Signed-off-by: Alexander Graf <>

cb925cf9 07/01/2013 02:11 am Alexander Graf

KVM: PIC: Only commit irq routing when necessary

The current logic updates KVM's view of our interrupt map every time we
change it. While this is nice and bullet proof, it slows things down
badly for me. QEMU spends about 3 seconds on every start telling KVM what...

d85937e6 07/01/2013 02:11 am Scott Wood

kvm/openpic: in-kernel mpic support

Enables support for the in-kernel MPIC that thas been merged into the
KVM next branch. This includes irqfd/KVM_IRQ_LINE support from Alex
Graf (along with some other improvements).

Note from Alex regarding kvm_irqchip_create():...

e1766344 07/01/2013 02:11 am Andreas Färber

intc/openpic: QOM'ify

Introduce type constant and cast macro.

Signed-off-by: Andreas Färber <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Alexander Graf <>

26a8ec07 06/28/2013 10:01 pm Kevin Wolf

multiboot: Calculate upper_mem in the ROM

The upper_mem field of the Multiboot information struct doesn't really
contain the RAM size - 1 MB like we used to calculate it, but only the
memory from 1 MB up to the first (upper) memory hole.

In order to correctly retrieve this information, the multiboot ROM now...

8a9c98ae 06/28/2013 07:48 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/qom-cpu' into staging

  1. By Andreas Färber
  2. Via Andreas Färber
    • afaerber/qom-cpu: (24 commits)
      cpu: Turn cpu_unassigned_access() into a CPUState hook
      hwaddr: Make hwaddr type usable beyond softmmu
      cpu: Change qemu_init_vcpu() argument to CPUState...
721da65c 06/28/2013 04:46 pm Mark Cave-Ayland

cmd646: fix build when DEBUG_IDE is enabled.

Make sure we use the correct TARGET/PRI macros in the debug statements.

Signed-off-by: Mark Cave-Ayland <>
CC: Kevin Wolf <>
Signed-off-by: Kevin Wolf <>

c658b94f 06/28/2013 02:25 pm Andreas Färber

cpu: Turn cpu_unassigned_access() into a CPUState hook

Use it for all targets, but be careful not to pass invalid CPUState.
cpu_single_env can be NULL, e.g. on Xen.

Signed-off-by: Andreas Färber <>

dd1750d7 06/28/2013 02:25 pm Andreas Färber

kvm: Change kvm_cpu_synchronize_state() argument to CPUState

It no longer relies on CPUArchState since 20d695a.

Reviewed-by: liguang <>
Acked-by: Paolo Bonzini <>
Reviewed-by: Richard Henderson <>...

cb446eca 06/28/2013 02:25 pm Andreas Färber

kvm: Change cpu_synchronize_state() argument to CPUState

Change Monitor::mon_cpu to CPUState as well.

Reviewed-by: liguang <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

60a3e17a 06/28/2013 02:25 pm Andreas Färber

cpu: Change cpu_exit() argument to CPUState

It no longer depends on CPUArchState, so move it to qom/cpu.c.

Prepares for changing GDBState::c_cpu to CPUState.

Signed-off-by: Andreas Färber <>

3e508732 06/25/2013 10:14 pm Anthony Liguori

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

  1. By Peter Crosthwaite (3) and others
  2. Via Peter Maydell
    • pmaydell/arm-devs.for-upstream:
      nand: Don't inherit from Sysbus
      block/nand: Convert Sysbus::init to Device::realize...
9e49c8c5 06/25/2013 10:14 pm Anthony Liguori

Merge remote-tracking branch 'cohuck/virtio-ccw-upstr' into staging

  1. By Cornelia Huck (2) and Christian Borntraeger (1)
  2. Via Cornelia Huck
    • cohuck/virtio-ccw-upstr:
      virtio-ccw: Wire up guest and host notifies.
      virtio-ccw: Wire up ioeventfd.
      s390/virtio-ccw: Fix virtio reset...
7426aa72 06/25/2013 09:15 pm Peter Crosthwaite

nand: Don't inherit from Sysbus

Nand chips are not sysbus devices - they do not have any sense of MMIO,
nor interrupts. Re-parent to TYPE_DEVICE accordingly.

Cc:

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

d47a5d9b 06/25/2013 09:15 pm Peter Crosthwaite

block/nand: Convert Sysbus::init to Device::realize

The prescribed transition from Sysbus::init function to a
Device::realize.

Cc:

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

e12078cc 06/25/2013 09:06 pm Peter Crosthwaite

block/nand: QOM casting sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST and
direct -> style casting.

Cc:

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

f3c8fac2 06/25/2013 08:42 pm Stefan Weil

i.MX31: Fix PRCS bit test

cppcheck detected a condition which was always false.

According to the MCIMX31 Reference Manual, the PRCS bits have to be 01
to select the Frequency Pre-Multiplier (FPM). PRCS uses bits 1 and 2,
so we have to test for 2.

Signed-off-by: Stefan Weil <>...

2acafb1a 06/25/2013 08:34 pm John Rigby

ARM: Allow dumping of device tree

By calling qemu_devtree_dumpdtb near the end of load_dtb.

Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>

5ec694b5 06/25/2013 08:34 pm Jean-Christophe DUBOIS

i.MX: Implement a more complete version of the GPT timer.

  • implement compare 1 2 and 3 registers
  • simplify Debug printf

Signed-off-by: Jean-Christophe DUBOIS <>
Message-id:
Reviewed-by: Peter Chubb <>...

67110c3e 06/25/2013 08:34 pm Jean-Christophe DUBOIS

i.MX: Rework functions/types name and use new style initialization

  • use dynamic cast whenever possible
  • Change function names to some more meaningful prefix
  • Change type names to a more meaningful one
  • use new style device initialization

Signed-off-by: Jean-Christophe DUBOIS <>...

c23045de 06/25/2013 08:34 pm Peter Maydell

arm/boot: Free dtb blob memory after use

The dtb blob returned by load_device_tree() is in memory allocated
with g_malloc(). Free it accordingly once we have copied its
contents into the guest memory. To make this easy, we need also to
clean up the error handling in load_dtb() so that we consistently...

320ce850 06/25/2013 06:11 pm Cornelia Huck

virtio-ccw: Wire up guest and host notifies.

Guest and host notifiers are needed by vhost. We use ioeventfds for
the guest notifiers, but need to fall back on qemu injecting interrupts
for the host notifiers.

Signed-off-by: Cornelia Huck <>

6504a930 06/25/2013 06:11 pm Christian Borntraeger

s390/virtio-ccw: Fix virtio reset

On virtio reset we must reset the indicator to avoid stale interrupts,
e.g. after a reset.

Signed-off-by: Christian Borntraeger <>
Cc:
Signed-off-by: Cornelia Huck <>

b4436a0b 06/25/2013 06:11 pm Cornelia Huck

virtio-ccw: Wire up ioeventfd.

On hosts that support ioeventfd, make use of it for host-to-guest
notifications via diagnose 500.

Signed-off-by: Cornelia Huck <>

39ae4972 06/25/2013 03:00 pm Paul Durrant

Move hardcoded initialization of xen-platform device.

Creation of the xen-platform device is currently hardcoded into machine
type pc's initialization code, guarded by a test for the whether the xen
accelerator is enabled. This patch moves the creation of xen-platform into...

a97d6fe6 06/25/2013 03:00 pm Paul Durrant

Allow use of pc machine type (accel=xen) for Xen HVM domains.

Xen HVM domains normally spawn QEMU with a dedicated xenfv machine type. The
initialization code for this machine type can easily be pulled into the
generic pc initialization code and guarded with a test for whether the xen...

fc744bb1 06/25/2013 02:59 pm Stefano Stabellini

Revert "xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)"

This reverts commit 9f24a8030a70ea4954b5b8c48f606012f086f65f.

The start of the PCI hole is actually set to 0xf0000000 by hvmloader.
In order to retain ABI compatibility with Xen we leave the start of the...

baf8673c 06/24/2013 10:33 pm Anthony Liguori

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

  1. By Kevin Wolf (22) and Fam Zheng (1)
  2. Via Stefan Hajnoczi
    • stefanha/block: (23 commits)
      vmdk: refuse to open higher version than supported
      block: Always enable discard on the protocol level...
9fbbf0d1 06/24/2013 10:33 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v71' into staging

  1. By Gerd Hoffmann (1) and Hans de Goede (1)
  2. Via Gerd Hoffmann
    • spice/spice.v71:
      spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850)
      qxl: fix Coverity scan SIGN_EXTENSION error...
89f204d2 06/24/2013 10:33 pm Anthony Liguori

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

  1. By Andreas Färber (3) and others
  2. Via Gerd Hoffmann
    • kraxel/usb.84:
      usb: fix serial number for hid devices
      usb: add serial bus property
      usb-host-libusb: set USB_DEV_FLAG_IS_HOST
      usb/host-libusb: Fix building with libusb git master code...
21ca4a5b 06/24/2013 10:32 pm Anthony Liguori

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

  1. By Stefan Weil (5) and others
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      configure: Add signed*signed check to [u]int128_t test
      Makefile: pass include directives to dtc via CPPFLAGS, not CFLAGS...
b52df465 06/24/2013 05:26 pm Edgar E. Iglesias

cadence_uart: Handle backend tx errors

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

92a6a6f6 06/24/2013 11:25 am Kevin Wolf

ide: Convert DMA read/write commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

63a82e6a 06/24/2013 11:25 am Kevin Wolf

ide: Convert READ NATIVE MAX ADDRESS to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

785f6320 06/24/2013 11:25 am Kevin Wolf

ide: Convert CHECK POWER MDOE to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

ee03398c 06/24/2013 11:25 am Kevin Wolf

ide: Convert SET FEATURES to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

9afce429 06/24/2013 11:25 am Kevin Wolf

ide: Convert FLUSH CACHE to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

61fdda37 06/24/2013 11:25 am Kevin Wolf

ide: Convert SEEK to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

ee425c78 06/24/2013 11:25 am Kevin Wolf

ide: Convert ATAPI commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

6b1dd744 06/24/2013 11:25 am Kevin Wolf

ide: Convert CF-ATA commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

ff352677 06/24/2013 11:25 am Kevin Wolf

ide: Convert SMART commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

dfe1ea8f 06/24/2013 11:25 am Kevin Wolf

ide: Clean up ide_exec_cmd()

All commands are now converted to ide_cmd_table handlers, so it can be
unconditional now and the old switch block can go.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

a0436e92 06/24/2013 11:25 am Kevin Wolf

ide: Add handler to ide_cmd_table

As a preparation for moving all IDE commands into their own function
like in the ATAPI code, introduce a 'handler' callback to ide_cmd_table.

Commands using this new infrastructure get some things handled
automatically:...

4286434c 06/24/2013 11:25 am Kevin Wolf

ide: Convert WIN_DSM to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

1c66869a 06/24/2013 11:25 am Kevin Wolf

ide: Convert WIN_IDENTIFY to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

b300337e 06/24/2013 11:25 am Kevin Wolf

ide: Convert cmd_nop commands to ide_cmd_table handler

cmd_nop handles all commands that don't really do anything in our
implementation except setting status register flags.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

413860cf 06/24/2013 11:25 am Kevin Wolf

ide: Convert verify commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

adf3a2c4 06/24/2013 11:25 am Kevin Wolf

ide: Convert read/write multiple commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

0e6498ed 06/24/2013 11:25 am Kevin Wolf

ide: Convert PIO read/write commands to ide_cmd_table handler

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

93c8e4dc 06/24/2013 09:41 am Gerd Hoffmann

usb: fix serial number for hid devices

commit 7b074a22dab4bdda9864b933f1bc811a3db42845 changed the serial
number of hid devices. Add compat properties to keep the old serial
number for qemu 0.12 and older.

Signed-off-by: Gerd Hoffmann <>

71938a09 06/24/2013 09:41 am Gerd Hoffmann

usb: add serial bus property

This patch adds a serial property for all usb devices, which can be
used to set the serial number of a usb device (as listed by lsusb -v)
to a specific value. Applies to emulated devices only.

Signed-off-by: Gerd Hoffmann <>

628e5485 06/24/2013 09:40 am Gerd Hoffmann

usb-host-libusb: set USB_DEV_FLAG_IS_HOST

... like host-{linux,bsd}.c do.

Cc:
Signed-off-by: Gerd Hoffmann <>

cc8d6a84 06/24/2013 09:33 am Kuo-Jung Su

usb/hcd-ehci: Replace PORTSC macros with variables

Replace PORTSC macros with variables which could then be
configured in ehci_xxxx_class_init(...)

Signed-off-by: Kuo-Jung Su <>
Signed-off-by: Andreas Färber <>
Signed-off-by: Gerd Hoffmann <>

4e3d8b4b 06/24/2013 09:33 am Kuo-Jung Su

usb/hcd-ehci: Add Faraday FUSBH200 support

Add Faraday FUSBH200 support, which is slightly different from EHCI spec.
(Or maybe simply a bad/wrong implementation...)

Signed-off-by: Kuo-Jung Su <>
Signed-off-by: Andreas Färber <>...

bc45de8c 06/24/2013 09:33 am Hans de Goede

usb/host-libusb: Fix building with libusb git master code

The next libusb release will deprecate libusb_get_port_path, and since
we compile with -Werror, this breaks the build.

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

08f4c90b 06/24/2013 09:23 am Andreas Färber

usb/hcd-ehci-sysbus: Convert to QOM realize

The SysBus qdev initfn merely calls SysBusDeviceClass::init, so we can
replace it with a realizefn already. This avoids getting into any initfn
ambiguity with the upcoming Faraday EHCI implementation.

Rename internal usb_ehci_initfn() to usb_ehci_realize() to allow to...

d4614cc3 06/24/2013 09:23 am Andreas Färber

usb/hcd-ehci: Split off instance_init from realize

This makes the mem MemoryRegion available to derived instance_inits.

Keep the bus in realize for now since naming breaks in instance_init.

Signed-off-by: Andreas Färber <>
Signed-off-by: Gerd Hoffmann <>

20c57043 06/24/2013 09:23 am Andreas Färber

usb/hcd-ehci: Add Tegra2 SysBus EHCI device

This prepares an EHCI device for the Nvidia Tegra2 SoC family.
Values based on patch by Vincent Palatin and verified against TRM v01p.

Cc: Vincent Palatin <>
Signed-off-by: Andreas Färber <>...

bfc10122 06/24/2013 09:23 am Gerd Hoffmann

qxl: fix Coverity scan SIGN_EXTENSION error

Cc: Markus Armbruster <>
Signed-off-by: Gerd Hoffmann <>

90527d2a 06/21/2013 09:52 pm Stefan Weil

kvm: Fix potential resource leak (missing fclose)

This leak was detected by cppcheck.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

329f97fc 06/21/2013 09:52 pm Anthony PERARD

qxl: Fix QXLRam initialisation.

The qxl driver expect NULL for QXLRam.memory_configs, but this is never
initialized.

If memory is set to 0xc2c2.., it leads to a spice-critical error when
trying to start qxl.

Signed-off-by: Anthony PERARD <>...

1984745e 06/21/2013 09:52 pm Peter Crosthwaite

block/nand: Formatting sweep

Make this code closer to passing checkpatch. Mostly missing braces, but
a few rogue tabs in there as well.

Cc:

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Michael Tokarev <>

6790f59d 06/21/2013 09:52 pm liguang

sd: pass bool parameter for sd_init

Signed-off-by: liguang <>
Signed-off-by: Michael Tokarev <>

df32fd1c 06/20/2013 05:39 pm Paolo Bonzini

dma: eliminate DMAContext

The DMAContext is a simple pointer to an AddressSpace that is now always
already available. Make everyone hold the address space directly,
and clean up the DMA API to use the AddressSpace directly.

Reviewed-by: Peter Maydell <>...

7dca8043 06/20/2013 05:39 pm Alexey Kardashevskiy

memory: give name to every AddressSpace

The "info mtree" command in QEMU console prints only "memory" and "I/O"
address spaces while there are actually a lot more other AddressSpace
structs created by PCI and VIO devices. Those devices do not normally
have names and therefore not present in "info mtree" output....

96478592 06/20/2013 05:32 pm Paolo Bonzini

spapr_vio: take care of creating our own AddressSpace/DMAContext

Fetch the root region from the sPAPRTCETable, and use it to build
an AddressSpace and DMAContext.

Now, everywhere we have a DMAContext we also have access to the
corresponding AddressSpace (either because we create it just before...

052e87b0 06/20/2013 05:32 pm Paolo Bonzini

memory: make section size a 128-bit integer

So far, the size of all regions passed to listeners could fit in 64 bits,
because artificial regions (containers and aliases) are eliminated by
the memory core, leaving only device regions which have reasonable sizes...

06d985f5 06/20/2013 05:32 pm Avi Kivity

vfio: abort if an emulated iommu is used

vfio doesn't support guest iommus yet, indicate it to the user
by gently depositing a core on their disk.

Reviewed-by: Peter Maydell <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Paolo Bonzini <>

2b7dc949 06/20/2013 05:32 pm Paolo Bonzini

spapr: convert TCE API to use an opaque type

The TCE table is currently returned as a DMAContext, and non-type-safe
APIs are called later passing back the DMAContext. Since we want to move
away from DMAContext, use an opaque type instead, and add an accessor...

a71bfbfe 06/20/2013 05:32 pm Paolo Bonzini

spapr: make IOMMU translation go through IOMMUTLBEntry

The next step is to introduce the translation code that will be used for
IOMMU MemoryRegions, but still do the actual translation in a DMAContext.

Acked-by: David Gibson <>...

a84bb436 06/20/2013 05:32 pm Paolo Bonzini

spapr: use memory core for iommu support

Now we can stop using a "translating" DMAContext, but we do not yet modify
the sPAPRTCETable users to get an AddressSpace; they keep using the table
via a DMAContext.

Acked-by: David Gibson <>...

24addbc7 06/20/2013 05:32 pm Paolo Bonzini

dma: eliminate old-style IOMMU support

The translate function in the DMAContext is now always NULL.
Remove every reference to it.

Reviewed-by: Peter Maydell <>
Signed-off-by: Paolo Bonzini <>

e00387d5 06/20/2013 05:32 pm Avi Kivity

pci: use memory core for iommu support

Use the new iommu support in the memory core for iommu support. The only
user, spapr, is also converted, but it still provides a DMAContext
interface until the non-PCI bits switch to AddressSpace.

Reviewed-by: Michael S. Tsirkin <>...

e1123015 06/19/2013 10:10 pm Markus Armbruster

pc: Make -no-fd-bootchk stick across boot order changes

Option -no-fd-bootchk asks the BIOS to attempt booting from a floppy
even when the boot sector signature isn't there, by setting a bit in
RTC CMOS. It was added back in 2006 (commit 52ca8d6a).

Two years later, commit 0ecdffbb added monitor command boot_set....

c1990468 06/18/2013 09:44 pm Michael Roth

wdt_i6300esb: fix vmstate versioning

When this VMSD was introduced it's version fields were set to
sizeof(I6300State), making them essentially random from build to build,
version to version.

To fix this, we lock in a high version id and low minimum version id to...

3ed8a843 06/18/2013 06:06 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  1. By Paolo Bonzini (3) and others
  2. Via Paolo Bonzini
    • bonzini/scsi-next:
      iscsi: reorganize iscsi_readcapacity_sync
      iscsi: simplify freeing of tasks
      vhost-scsi: fix k->set_guest_notifiers() NULL dereference...
5b456438 06/18/2013 06:05 pm Cole Robinson

virtio-rng: Fix crash with non-default backend

'default_backend' isn't always set, but 'rng' is, so use that.

$ ./x86_64-softmmu/qemu-system-x86_64 -object rng-random,id=rng0,filename=/dev/random -device virtio-rng-pci,rng=rng0
Segmentation fault (core dumped)...

53254e56 06/18/2013 01:43 pm Paolo Bonzini

scsi-generic: fix sign extension of READ CAPACITY data

Issuing the READ CAPACITY command in the guest will cause QEMU
to update its knowledge of the maximum accessible LBA in the disk.
The recorded maximum LBA will be wrong if the disk is bigger than...

d836f8d3 06/18/2013 01:43 pm Pavel Hrdina

scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

This fixes the bug introduced by this commit ad54ae80c73f.
The bdrv_aio_ioctl() still could return null and we should return an error
in that case.

Cc:
Signed-off-by: Pavel Hrdina <>...

18e673b8 06/18/2013 01:43 pm Pavel Hrdina

scsi-disk: scsi-block device for scsi pass-through should not be removable

This patch adds a new SCSI_DISK_F_NO_REMOVABLE_DEVOPS feature. By this
feature we can set that the scsi-block (scsi pass-through) device will still
be removable from the guest side, but from monitor it cannot be removed....

0e22a2d1 06/18/2013 01:43 pm Stefan Hajnoczi

vhost-scsi: fix k->set_guest_notifiers() NULL dereference

Coverity picked up a copy-paste bug. In vhost_scsi_start() we check for
!k->set_guest_notifiers and error out. The check probably got copied
but instead of erroring we actually use the function pointer!...