Statistics
| Branch: | Revision:

root / hw / nvram @ ddf5636d

# Date Author Comment
c7bcc85d 02/14/2014 10:12 pm Paolo Bonzini

qdev: Remove hex8/32/64 property types

Replace them with uint8/32/64.

Reviewed-by: Igor Mammedov <>
Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andreas Färber <>

efec3dd6 12/23/2013 01:27 am Markus Armbruster

qdev: Replace no_user by cannot_instantiate_with_device_add_yet

In an ideal world, machines can be built by wiring devices together
with configuration, not code. Unfortunately, that's not the world we
live in right now. We still have quite a few devices that need to be...

837d3716 12/23/2013 01:27 am Markus Armbruster

sysbus: Set cannot_instantiate_with_device_add_yet

device_add plugs devices into suitable bus. For "real" buses, that
actually connects the device. For sysbus, the connections need to be
made separately, and device_add can't do that. The device would be...

a64d325d 12/20/2013 02:57 am Alexey Kardashevskiy

spapr-rtas: replace return code constants with macros

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Alexander Graf <>

6fedcaa1 12/06/2013 08:56 pm Antony Pavlov

eeprom93xx: fix coding style

scripts/checkpatch.pl reports about some style problems,
this commit fixes some of them:

ERROR: space prohibited before open square bracket '['
+ .fields = (VMStateField []) {

ERROR: space prohibited after that '!' (ctx:BxW)...

29fdedfe 11/08/2013 05:33 am Alexey Kardashevskiy

spapr: add vio-bus devices to categories

In order to get devices appear in output of
"./qemu-system-ppc64 -device ?",
they must be assigned to one of DEVICE_CATEGORY_XXXX.

This puts VIO devices classes to corresponding categories.

Signed-off-by: Alexey Kardashevskiy <>...

d87072ce 10/14/2013 05:48 pm Michael S. Tsirkin

fw_cfg: interface to trigger callback on read

Reviewed-by: Gerd Hoffmann <>
Tested-by: Gerd Hoffmann <>
Reviewed-by: Igor Mammedov <>
Tested-by: Igor Mammedov <>
Signed-off-by: Michael S. Tsirkin <>

6fdf98f2 08/07/2013 08:48 pm Paolo Bonzini

fw_cfg: the I/O port variant expects little-endian

The I/O port variant of fw_cfg is used by sparc64, which is a big-endian machine.
Firmware swaps bytes before sending them to fw_cfg, so we need to unswap them in
the device.

This is only used on sparc64 and on (little-endian) x86, so it does not affect...

14134f0e 07/29/2013 10:07 pm Andreas Färber

ds1225y: Drop bogus qdev field from NvRamState

It is not a device, and the field is not used from code either.

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

8c1892cf 07/29/2013 10:07 pm Andreas Färber

ds1225y: QOM cast cleanup for SysBusNvRamState

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 <>

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 <>

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

hw/n*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

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...

600c60b7 06/02/2013 06:14 pm Michael S. Tsirkin

fw_cfg: add API to find FW cfg object

Remove some code duplication by adding a
function to look up the fw cfg file.
This way, we don't need to duplicate same strings everywhere.
Use by both fw cfg and pvpanic device.

Signed-off-by: Michael S. Tsirkin <>

cac12210 06/02/2013 06:14 pm Michael S. Tsirkin

fw_cfg: fw_cfg is a singleton

Make sure we only have a single instance ever:
because if it isn't we can't find it so it's
useless anyway.

Signed-off-by: Michael S. Tsirkin <>

ec0503b4 06/02/2013 06:13 pm Michael S. Tsirkin

firmware_abi: move to include/hw/nvram/

firmware_abi.h with structs for OpenBIOS landed in hw/sparc/ by mistake
- move it to hw/nvram/ alongside fw_cfg.h. In addition to sparc it's
included from ppc mac_nvram.c and will need to include it from prep.c in...

3d1bba20 05/22/2013 03:40 pm Peter Crosthwaite

glib: Fix some misuses of gsize/size_t types

This unbreaks cross compile builds:

configure --target-list="i386-softmmu" --cpu=i386

When building on a 64bit machine.

Reported-by: David Holsgrove <>
Signed-off-by: Peter Crosthwaite <>...

10a584b2 04/30/2013 06:30 pm Hu Tao

pvpanic: pass configurable ioport to seabios

This lets seabios patch the corresponding SSDT entry.

Also add fw_cfg object to /machine/fw_cfg so we can reference
it elsewhere.

Signed-off-by: Hu Tao <>
Reviewed-by: Markus Armbruster <>...

fd506b4f 04/27/2013 12:02 am David Gibson

pseries: Convert VIO code to QOM style type safe(ish) casts

Curerntly the pseries VIO device code contains quite a few explicit
uses of DO_UPCAST and plain C casts. This is (obviously) type unsafe,
and not the conventional way of doing things in the QOM model. This...

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

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

Signed-off-by: Paolo Bonzini <>

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

hw: move target-independent files to subdirectories

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

Signed-off-by: Paolo Bonzini <>

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

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>