Statistics
| Branch: | Revision:

root @ 61fcb628

# Date Author Comment
39594968 07/25/2013 04:12 pm Paolo Bonzini

mips_r4k: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

ee77854f 07/25/2013 04:12 pm Paolo Bonzini

mips_malta: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

68501502 07/25/2013 04:12 pm Paolo Bonzini

ppc440_bamboo: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

bdb75c79 07/25/2013 04:12 pm Paolo Bonzini

mipssim: do not use isa_mmio

Untested, this board does not support PCI so it cannot run endianness-test.
It should fix endianness bugs in I/O port access.

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

e37b80fa 07/25/2013 04:12 pm Paolo Bonzini

mips_fulong2e: do not use isa_mmio

This board is little-endian, but still isa_mmio should die. :)

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

5519ad0c 07/25/2013 04:12 pm Paolo Bonzini

sparc64: remove indirection for I/O port access

This fixes endianness bugs in I/O port access.

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

0a70e094 07/25/2013 04:12 pm Paolo Bonzini

ebus: do not use isa_mmio

This is untested, because ebus does not have a libqos module.

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

61fcb628 07/25/2013 04:12 pm Paolo Bonzini

isa_mmio: delete

It is not used anymore.

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

2b1096e0 07/25/2013 04:12 pm Paolo Bonzini

ppc_newworld: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

66aab867 07/25/2013 04:12 pm Alexey Kardashevskiy

spapr_pci: remove indirection for I/O port access

This fixes endianness bugs in I/O port access.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Paolo Bonzini <>
Reviewed-by: Anthony Liguori <>
Message-id: ...

921f8040 07/25/2013 04:12 pm Paolo Bonzini

prep: fix I/O port endianness

Do not swap endianness here, it will happen during cpu_{in,out}{b,w,l}.

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

f51100cc 07/25/2013 04:12 pm Paolo Bonzini

mips_jazz: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

4759ab6b 07/25/2013 04:12 pm Paolo Bonzini

sh4: do not use isa_mmio

This fixes endianness bugs in I/O port access (for sh4eb).

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

7d52857e 07/25/2013 04:12 pm Paolo Bonzini

ppc_oldworld: do not use isa_mmio

This fixes endianness bugs in I/O port access.

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

0cd8eaa0 07/23/2013 11:45 pm Stefan Weil

po/Makefile: Use macro quiet-command for nice looking messages

Suppress also the "... done" message from msgmerge.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

18e12d49 07/23/2013 11:45 pm Stefan Weil

po/Makefile: Fix and improve help message

The help message contains single quotes which got lost in the output.
Fix also a typo and use two instead of three lines.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

00134a62 07/23/2013 11:45 pm Stefan Weil

po/Makefile: Fix *.mo generation for out-of-tree builds (regression)

Commit f84756554e32d97db3aa949db1dd58c7eea62375 added a wildcard search
for *.po files. This search found no files for out of tree builds, so
those builds no longer created and installed *.mo files....

1fa44923 07/23/2013 11:45 pm Stefan Weil

po/Makefile: Fix generation of messages.po

  • Tell xgettext that we use UTF-8 encoding (this is currently optional).
  • Set charset=UTF-8 in messages.po. This avoids warnings from msgmerge:
    warning: Charset "CHARSET" is not a portable encoding name.
  • Use filename relative to root directory (ui/gtk.c instead of ../ui/gtk.c...
f03d07d4 07/23/2013 06:57 pm Anthony Liguori

Merge remote-tracking branch 'quintela/migration.next' into staging

  1. By Michael R. Hines (8) and others
  2. Via Juan Quintela
    • quintela/migration.next:
      migration: add autoconvergence documentation
      Fix real mode guest segments dpl value in savevm
      Fix real mode guest migration...
3988982c 07/23/2013 06:57 pm Anthony Liguori

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

QOM CPUState refactorings

  • Fix NULL pointer dereference in gdbstub
  • Introduce vaddr type
  • Introduce CPUClass::set_pc()
  • Introduce CPUClass::synchronize_from_tb()
  • Introduce CPUClass::get_phys_page_debug()...
931f0adf 07/23/2013 06:56 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging

QOM device refactorings

  • Avoid TYPE_* in VMStateDescription name
  • Replace some DO_UPCAST()s and FROM_SYSBUS()s with QOM casts
  • Limit legacy SCSI command line handling to non-hotplugged devices...
9781c371 07/23/2013 04:21 pm Juan Quintela

migration: add autoconvergence documentation

This hunk got lost during merge. It is documentation.

Spotted-by: Peter Lieven <>
Signed-off-by: Juan Quintela <>

444ba679 07/23/2013 03:36 pm Orit Wasserman

Fix real mode guest migration

Older KVM versions save CS dpl value to an invalid value for real mode guests
(0x3). This patch detect this situation when loading CPU state and set all the
segments dpl to zero.
This will allow migration from older KVM on host without unrestricted guest...

3e47c249 07/23/2013 03:36 pm Orit Wasserman

Fix real mode guest segments dpl value in savevm

Older KVM version put invalid value in the segments registers dpl field for
real mode guests (0x3).
This breaks migration from those hosts to hosts with unrestricted guest support.
We detect it by checking CS dpl value for real mode guest and fix the dpl values...

29ae8a41 07/23/2013 02:06 pm Michael R. Hines

rdma: introduce MIG_STATE_NONE and change MIG_STATE_SETUP state transition

As described in the previous patch, until now, the MIG_STATE_SETUP
state was not really a 'formal' state. It has been used as a 'zero' state
(what we're calling 'NONE' here) and QEMU has been unconditionally transitioning...

ed4fbd10 07/23/2013 02:06 pm Michael R. Hines

rdma: account for the time spent in MIG_STATE_SETUP through QMP

Using the previous patches, we're now able to timestamp the SETUP
state. Once we have this time, let the user know about it in the
schema.

Reviewed-by: Juan Quintela <>
Reviewed-by: Eric Blake <>...

d58f574b 07/23/2013 02:06 pm Michael R. Hines

rdma: allow state transitions between other states besides ACTIVE

This patch is in preparation for the next ones: Until now the MIG_STATE_SETUP
state was not really a 'formal' state. It has been used as a 'zero' state
and QEMU has been unconditionally transitioning into this state when...

2da776db 07/23/2013 12:12 pm Michael R. Hines

rdma: core logic

Code that does need to be visible is kept
well contained inside this file and this is the only
new additional file to the entire patch.

This file includes the entire protocol and interfaces
required to perform RDMA migration.

Also, the configure and Makefile modifications to link...

0033b8b4 07/23/2013 12:12 pm Michael R. Hines

rdma: send pc.ram

This takes advantages of the previous patches:

1. use the new QEMUFileOps hook 'save_page'

2. call out to the right accessor methods to invoke
the iteration hooks defined in QEMUFileOps

Reviewed-by: Paolo Bonzini <>...

a5f56b90 07/23/2013 12:11 pm Michael R. Hines

rdma: update documentation to reflect new unpin support

As requested, the protocol now includes memory unpinning support.
This has been implemented in a non-optimized manner, in such a way
that one could devise an LRU or other workload-specific information...

de7b685c 07/23/2013 12:11 pm Michael R. Hines

rdma: bugfix: ram_control_save_page()

We were not checking for a valid 'bytes_sent' pointer before accessing it.

Reviewed-by: Eric Blake <>
Signed-off-by: Michael R. Hines <>
Signed-off-by: Juan Quintela <>

44c3b58c 07/23/2013 12:11 pm Michael R. Hines

rdma: introduce ram_handle_compressed()

This gives RDMA shared access to madvise() on the destination side
when an entire chunk is found to be zero.

Reviewed-by: Juan Quintela <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Chegu Vinod <>...

db6b81d4 07/23/2013 03:41 am Andreas Färber

gdbstub: Change gdb_handlesig() argument to CPUState

Prepares for changing GDBState::c_cpu to CPUState.

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

385b9f0e 07/23/2013 03:41 am Andreas Färber

gdbstub: Change gdb_{read,write}_register() argument to CPUState

Use CPUState::env_ptr for now.

Prepares for changing GDBState::g_cpu to CPUState.

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

00b941e5 07/23/2013 03:41 am Andreas Färber

cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook

Change breakpoint_invalidate() argument to CPUState alongside.

Since all targets now assign a softmmu-only field, we can drop helpers
cpu_class_set_{do_unassigned_access,vmsd}() and device_class_set_vmsd()....

f17ec444 07/23/2013 03:41 am Andreas Färber

exec: Change cpu_memory_rw_debug() argument to CPUState

Propagate X86CPU in kvmvapic for simplicity.

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

f3659eee 07/23/2013 03:41 am Andreas Färber

cpu: Introduce CPUClass::memory_rw_debug() for target_memory_rw_debug()

Make inline target_memory_rw_debug() always available and change its
argument to CPUState. Let it check if CPUClass::memory_rw_debug provides
a specialized callback and fall back to cpu_memory_rw_debug() otherwise....

2e0f2cfb 07/23/2013 03:41 am Andreas Färber

gdbstub: Change GDBState::{c,g}_cpu and find_cpu() to CPUState

Use CPUState::env_ptr where still needed.

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

eac8b355 07/23/2013 03:41 am Andreas Färber

cpu: Move gdb_regs field from CPU_COMMON to CPUState

Prepares for changing gdb_register_coprocessor() argument to CPUState.

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

22169d41 07/23/2013 03:41 am Andreas Färber

gdbstub: Change gdb_register_coprocessor() argument to CPUState

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

6f152e9b 07/23/2013 03:41 am Andreas Färber

linux-user: Use X86CPU property to retrieve CPUID family

Avoids duplicating the calculation.

Reviewed-by: Igor Mammedov <>
Signed-off-by: Andreas Färber <>

a10b978c 07/23/2013 03:41 am Andreas Färber

target-moxie: Implement CPUClass::set_pc()

This adds support for GDB's c addr (Continue) and s addr (Single Step).

Prepares for dropping cpu_pc_from_tb().

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

b42eab27 07/23/2013 03:41 am Andreas Färber

target-unicore32: Implement CPUClass::set_pc()

This adds support for GDB's c addr (Continue) and s addr (Single Step).

Prepares for dropping cpu_pc_from_tb().

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

bdf7ae5b 07/23/2013 03:41 am Andreas Färber

cpu: Introduce CPUClass::synchronize_from_tb() for cpu_pc_from_tb()

Where no extra implementation is needed, fall back to CPUClass::set_pc().

Acked-by: Michael Walle <> (for lm32)
Signed-off-by: Andreas Färber <>

ca6862a6 07/23/2013 03:41 am Richard Henderson

target-alpha: Copy singlestep_enabled to DisasContext

Prepare for removing env from DisasContext.

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

801c4c28 07/23/2013 03:41 am Richard Henderson

target-alpha: Copy implver to DisasContext

Which allows removing env from DisasContext.

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

ed2803da 07/23/2013 03:41 am Andreas Färber

cpu: Move singlestep_enabled field from CPU_COMMON to CPUState

Prepares for changing cpu_single_step() argument to CPUState.

Acked-by: Michael Walle <> (for lm32)
Signed-off-by: Andreas Färber <>

5ca666c7 07/23/2013 03:41 am Andreas Färber

gdbstub: Update gdb_handlesig() and gdb_signalled() Coding Style

In particular reindent to 4 instead of 2 spaces.

Prepares for changing cpu_single_step() argument in gdb_handlesig().

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

3825b28f 07/23/2013 03:41 am Andreas Färber

cpu: Change cpu_single_step() argument to CPUState

Use CPUState::env_ptr for now.

Needed for GdbState::c_cpu.

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

62278814 07/23/2013 03:41 am Andreas Färber

kvm: Change kvm_{insert,remove}_breakpoint() argument to CPUState

CPUArchState is no longer directly used since converting CPU loops to
CPUState.

Prepares for changing GDBState::c_cpu to CPUState.

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

9e0c5422 07/23/2013 03:41 am Andreas Färber

gdbstub: Change syscall callback argument to CPUState

Callback implementations were specific to arm and m68k, so can easily
cast to ARMCPU and M68kCPU respectively.

Prepares for changing GDBState::c_cpu to CPUState.

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

577f42c0 07/23/2013 03:41 am Andreas Färber

cpu: Introduce vaddr type

vaddr is to target_ulong what uintmax_t is to unsigned int.

Its purpose is to allow turning per-target functions with target_ulong
arguments into CPUClass hooks.

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

2be8d450 07/23/2013 03:41 am Peter Maydell

HACKING: Document vaddr type usage

Also extend documentation of target_ulong and abi_ulong.

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

f45748f1 07/23/2013 03:41 am Andreas Färber

cpu: Introduce CPUClass::set_pc() for gdb_set_cpu_pc()

This moves setting the Program Counter from gdbstub into target code.
Use vaddr type as upper-bound replacement for target_ulong.

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

e700604d 07/23/2013 03:41 am Andreas Färber

target-m68k: Implement CPUClass::set_pc()

This adds support for GDB's c addr (Continue) and s addr (Single Step).

Prepares for dropping cpu_pc_from_tb().

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

52f34623 07/23/2013 03:38 am Andreas Färber

gdbstub: Change GDBState::query_cpu to CPUState

Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed.

This resolves a NULL pointer dereference of query_cpu, introduced
with commit 182735efaf956ccab50b6d74a4fed163e0f35660 and reported by...

02f9a6f5 07/23/2013 01:37 am Hu Tao

hpet: QOM'ify some more

Introduce type constant, avoid FROM_SYSBUS().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field and renamed variable]
Signed-off-by: Andreas Färber <>

98bdc0d7 07/23/2013 01:37 am Hu Tao

kvm/clock: QOM'ify some more

Introduce type constant and avoid FROM_SYSBUS().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

940194c2 07/23/2013 01:37 am Hu Tao

fdc: Use QOM realize for fdc

Signed-off-by: Hu Tao <>
[AF: Renamed SysBusDevice variable]
Signed-off-by: Andreas Färber <>

a3ef7a61 07/23/2013 01:37 am Andreas Färber

fdc: Improve error propagation for QOM realize

Rename fdctrl_init_common() to fdctrl_realize_common() and let
fdctrl_connect_drives() propagate an Error through it.

Reviewed-by: Hu Tao <>
Reviewed-by: Stefan Hajnoczi <>...

e40b5f3e 07/23/2013 01:37 am Hu Tao

pflash_cfi01: Use QOM realize for pflash_cfi01

Signed-off-by: Hu Tao <>
[AF: Renamed argument]
Signed-off-by: Andreas Färber <>

da3bd642 07/23/2013 01:37 am Hu Tao

pflash_cfi02: Use QOM realize for pflash_cfi02

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

7acb423f 07/23/2013 01:37 am Hu Tao

ahci: Use QOM realize for ahci

Signed-off-by: Hu Tao <>
[AF: Avoided repeated SYS_BUS_DEVICE() casts]
Signed-off-by: Andreas Färber <>

56383955 07/23/2013 01:37 am Hu Tao

fw_cfg: Use QOM realize for fw_cfg

Signed-off-by: Hu Tao <>
[AF: Moved sysbus_init_mmio() to instance_init, renamed variable]
Signed-off-by: Andreas Färber <>

b09318ca 07/23/2013 01:37 am Hu Tao

scsi/esp: Use QOM realize for scsi esp

Signed-off-by: Hu Tao <>
[AF: Drop sysbus_esp_init()]
Signed-off-by: Andreas Färber <>

22d6aa03 07/23/2013 01:37 am Andreas Färber

megasas: Legacy command line handling fix

Only apply legacy command line handling when the device has not been
hot-plugged. Propagate failure of legacy command line handling.

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

caad4eb3 07/23/2013 01:37 am Andreas Färber

scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline()

Let scsi_bus_legacy_add_drive() and scsi_bus_legacy_handle_cmdline()
return an Error**. Prepare qdev initfns for QOM realize error model.

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

726887ef 07/23/2013 01:37 am Hu Tao

hpet: Use QOM realize for hpet

Signed-off-by: Hu Tao <>
[AF: Avoided SYS_BUS_DEVICE() in loop]
Signed-off-by: Andreas Färber <>

913bc638 07/23/2013 01:37 am Hu Tao

kvm/clock: Use QOM realize for kvmclock

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

c118d44b 07/23/2013 01:37 am Hu Tao

kvmvapic: Use QOM realize

Signed-off-by: Hu Tao <>
[AF: Renamed variable]
Signed-off-by: Andreas Färber <>

f5ba7523 07/23/2013 01:37 am Hu Tao

ioapic: Use QOM realize for ioapic

Signed-off-by: Hu Tao <>
[AF: Tweaked error message]
Signed-off-by: Andreas Färber <>

52785d99 07/23/2013 01:37 am Hu Tao

isa-bus: Drop isabus_bridge_init() since it does nothing

This works since commit 4ce5dae88ecf2bafa0cd663de7e923728b1b3672.

Signed-off-by: Hu Tao <>
[AF: Edited]
Signed-off-by: Andreas Färber <>

6d27a409 07/23/2013 01:37 am Andreas Färber

misc/pci-testdev: QOM parent field cleanup

Replace direct uses of PCITestDevState::dev with QOM casts and rename it
to parent_obj.

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

39d45987 07/23/2013 01:37 am Peter Crosthwaite

display/vmware_vga: QOM casting sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Renamed to TYPE_VMWARE_VGA and VMWARE_VGA()]
Signed-off-by: Andreas Färber <>

af21c740 07/23/2013 01:37 am Andreas Färber

display/vmware_vga: QOM parent field cleanup

Replace direct uses of pci_vmsvga_state_s::card with QOM casts and
rename it to parent_obj.

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

eb3fedf3 07/23/2013 01:37 am Peter Crosthwaite

misc/ivshmem: QOM Upcast Sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Simplified casts and converted two more DO_UPCAST()s]...

b7578eaa 07/23/2013 01:37 am Andreas Färber

misc/ivshmem: QOM parent field cleanup

Replace direct uses of IVShmemState::dev with QOM casts and rename it to
parent_obj.

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

51a3fe99 07/23/2013 01:37 am Peter Crosthwaite

xen/xen_platform: QOM casting sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Dropped opaque casts]
Signed-off-by: Andreas Färber <>

dc4aa51b 07/23/2013 01:37 am Andreas Färber

xen/xen_platform: QOM parent field cleanup

Replace direct uses of PCIXenPlatformState::pci_dev field with QOM casts
and rename it to parent_obj.

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

ce724398 07/23/2013 01:37 am Hu Tao

sysbus: Document SysBusDeviceClass::init and realize semantics

Signed-off-by: Hu Tao <>
[AF: Syntax and wording changes]
Signed-off-by: Andreas Färber <>

1aa0c0c7 07/23/2013 01:37 am Hu Tao

ohci: QOM'ify some more

Introduce type constant and avoid DO_UPCAST().

Signed-off-by: Hu Tao <>
[AF: Avoid remaining OHCIPCIState::pci_dev uses, rename parent fields]
Signed-off-by: Andreas Färber <>

457215ec 07/23/2013 01:37 am Hu Tao

ohci: Use QOM realize for OHCI

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

2aedfa46 07/23/2013 01:37 am Hu Tao

i440fx: Use type-safe cast instead of direct access of parent dev

Signed-off-by: Hu Tao <>
[AF: Converted remaining accesses and renamed to parent_obj]
Signed-off-by: Andreas Färber <>

a3560fbf 07/23/2013 01:37 am Hu Tao

i440fx-pcihost: Use QOM realize for i440fx-pcihost

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

ce88812f 07/23/2013 01:37 am Hu Tao

q35: Use type-safe cast instead of direct access of parent dev

And remove variables if possible.

Signed-off-by: Hu Tao <>
[AF: Converted remaining access and renamed to parent_obj]
Signed-off-by: Andreas Färber <>

62d92e43 07/23/2013 01:37 am Hu Tao

q35: Use QOM realize for q35 host bridge

And split off MemoryRegion initialization into instance_init.

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

dd3be742 07/23/2013 01:37 am Hu Tao

fdc: QOM'ify some more

Introduce type constant and avoid DO_UPCAST(), container_of(),
and use DEVICE to avoid accessing parent qdev directly.

Signed-off-by: Hu Tao <>
[AF: Renamed parent field and avoided repeated SYS_BUS_DEVICE() casts]...

f1b44f0e 07/23/2013 01:37 am Hu Tao

pflash-cfi01: QOM'ify some more

Introduce type constant and replace FROM_SYSBUS().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

3509c396 07/23/2013 01:37 am Hu Tao

pflash-cfi02: QOM'ify some more

Introduce type constant and replace FROM_SYSBUS().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

b3b162c3 07/23/2013 01:37 am Hu Tao

ahci: QOM'ify some more

Introduce type constant and avoid DO_UPCAST().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

2ce92a11 07/23/2013 01:37 am Hu Tao

fwcfg: QOM'ify some more

Use type constant if possible and avoid DO_UPCAST().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

a71c7ec5 07/23/2013 01:37 am Hu Tao

scsi/esp: QOM'ify some more

Introduce type constant and avoid DO_UPCAST().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

52190c1e 07/23/2013 01:37 am Andreas Färber

scsi/megasas: QOM parent field cleanup

Replace direct uses of MegasasState::dev with QOM casts and rename it to
parent_obj.

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

3a15effe 07/23/2013 01:37 am Peter Crosthwaite

scsi/esp-pci: QOM Upcast Sweep

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

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

4e5dcc77 07/23/2013 01:37 am Andreas Färber

scsi/esp-pci: QOM parent field cleanup

Replace direct uses of PCIESPState::dev with QOM casts and rename it to
parent_obj.

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

fd58922c 07/23/2013 01:37 am Peter Crosthwaite

ide/ich: QOM Upcast Sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Renamed to TYPE_ICH9_AHCI and used typedef in pci_ich9_reset()]...

0d3aea56 07/23/2013 01:37 am Andreas Färber

ide/ich: QOM parent field cleanup

Replace direct uses of AHCIPCIState::card with QOM casts and rename it
to parent_obj.

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

74e445f6 07/23/2013 01:37 am Peter Crosthwaite

acpi/piix4: QOM Upcast Sweep

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

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

6a6b5580 07/23/2013 01:37 am Andreas Färber

acpi/piix4: QOM parent field cleanup

Replace direct uses of PIIX4PMState::dev with QOM casts and rename it to
parent_obj.

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

40108d0a 07/23/2013 01:37 am Peter Crosthwaite

misc/pci-testdev: QOM Upcast Sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Replaced another DO_UPCAST()]
Signed-off-by: Andreas Färber <>