6fdf98f281
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
any other target. 32-bit Sparc and PPC all use memory-mapped fw_cfg.
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Message-id: 1375014954-31916-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-08-07 12:48:15 -05:00
563839557c
fw_cfg: Use QOM realize for fw_cfg
...
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
[AF: Moved sysbus_init_mmio() to instance_init, renamed variable]
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-23 00:37:35 +02:00
2ce92a1102
fwcfg: QOM'ify some more
...
Use type constant if possible and avoid DO_UPCAST().
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-23 00:37:34 +02:00
eedfac6f38
hw/n*: pass owner to memory_region_init* functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:48 +02:00
2c9b15cab1
memory: add owner argument to initialization functions
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-07-04 17:42:44 +02:00
cac122103a
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 <mst@redhat.com >
2013-06-02 18:14:14 +03:00
600c60b76d
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 <mst@redhat.com >
2013-06-02 18:14:14 +03:00
3d1bba2091
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 <david.holsgrove@xilinx.com >
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com >
Message-id: 926326e96fd8685d74e9d5bf430fe4ad97a55289.1369191585.git.peter.crosthwaite@xilinx.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-05-22 07:40:09 -05:00
10a584b287
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 <hutao@cn.fujitsu.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Message-id: 60c65d95fe2b23b12bea67099126566010a11a1a.1366945969.git.hutao@cn.fujitsu.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-30 10:30:01 -05:00
49ab747f66
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 <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00