qemu/hw
Alex Bennée e0eeb4a21a cpus: pass CPUState to run_on_cpu helpers
CPUState is a fairly common pointer to pass to these helpers. This means
if you need other arguments for the async_run_on_cpu case you end up
having to do a g_malloc to stuff additional data into the routine. For
the current users this isn't a massive deal but for MTTCG this gets
cumbersome when the only other parameter is often an address.

This adds the typedef run_on_cpu_func for helper functions which has an
explicit CPUState * passed as the first parameter. All the users of
run_on_cpu and async_run_on_cpu have had their helpers updated to use
CPUState where available.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
[Sergey Fedorov:
 - eliminate more CPUState in user data;
 - remove unnecessary user data passing;
 - fix target-s390x/kvm.c and target-s390x/misc_helper.c]
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au> (ppc parts)
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> (s390 parts)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <1470158864-17651-3-git-send-email-alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-09-27 11:57:29 +02:00
..
9pfs 9pfs: fix potential segfault during walk 2016-09-19 11:39:48 +02:00
acpi hw/i386: AMD IOMMU IVRS table 2016-09-24 01:02:01 +03:00
alpha trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
arm xlnx-zynqmp: Set the number of priority queues 2016-09-22 18:13:07 +01:00
audio pcspk: adding vmstate for save/restore 2016-09-15 15:10:06 +02:00
block virtio-blk: rename virtio_device_info to virtio_blk_info 2016-09-13 11:00:56 +01:00
bt hw/bt/hci: spelling fix: endianness 2016-09-13 18:12:34 +03:00
char hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all 2016-09-13 19:09:42 +02:00
core loader: Add AddressSpace loading support to targphys 2016-09-22 18:13:08 +01:00
cpu cpu: Abstract CPU core type 2016-06-17 16:33:48 +10:00
cris cris: Fix broken header guard in hw/cris/boot.h 2016-07-12 16:20:46 +02:00
display vmstateify ssd0323 display 2016-09-22 18:13:08 +01:00
dma hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
gpio hw/gpio: QOM'ify zaurus.c 2016-06-14 15:59:13 +01:00
i2c i2c: fix migration regression introduced by broadcast support 2016-08-03 18:44:56 +02:00
i386 cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
ide portio: keep references on portio 2016-09-08 18:05:21 +04:00
input adb.c: prevent NO_KEY value from going to guest 2016-09-23 10:29:40 +10:00
intc x86: ioapic: boost default version to 0x20 2016-09-27 11:57:28 +02:00
ipack ipack: Update e-mail address 2016-05-18 15:04:27 +03:00
ipmi vl: Switch qemu_uuid to QemuUUID 2016-09-23 11:42:52 +08:00
isa portio: keep references on portio 2016-09-08 18:05:21 +04:00
lm32 Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
m68k hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
mem nvdimm: fix memory leak in error code path 2016-07-20 19:30:26 +03:00
microblaze Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
mips error: Strip trailing '\n' from error string arguments (again) 2016-08-08 09:00:44 +02:00
misc imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
moxie hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
net ppc patch queue 2016-09-23 2016-09-23 14:26:12 +01:00
nvram vl: Switch qemu_uuid to QemuUUID 2016-09-23 11:42:52 +08:00
openrisc hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
pci trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
pci-bridge hw/pci-bridge: Convert pxb initialization functions to Error 2016-07-29 00:07:09 +03:00
pci-host apb: convert init to realize 2016-07-29 00:07:09 +03:00
pcmcia hw: Clean up includes 2016-01-29 15:07:25 +00:00
ppc cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
s390x Couple of s390x patches: 2016-09-19 12:41:28 +01:00
scsi spapr_vscsi: convert to trace framework instead of DPRINTF 2016-09-23 10:29:40 +10:00
sd vmstateify ssi-sd 2016-09-22 18:13:08 +01:00
sh4 sh4: fix broken link to documentation 2016-09-15 15:32:22 +03:00
smbios vl: Switch qemu_uuid to QemuUUID 2016-09-23 11:42:52 +08:00
sparc trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
sparc64 util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
ssi imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
timer imx: Use 'const char', not 'char const' 2016-09-22 18:13:09 +01:00
tpm Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tricore tricore: remove useless cast 2016-09-15 15:32:22 +03:00
unicore32 hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
usb usb-mtp: add support for files larger than 4g (gsoc) 2016-09-15 14:56:36 +01:00
vfio memory: introduce IOMMUNotifier and its caps 2016-09-27 08:59:16 +02:00
virtio virtio: handle virtqueue_get_head() errors 2016-09-23 19:03:56 +03:00
watchdog nmi: remove x86 specific nmi handling 2016-05-23 16:53:46 +02:00
xen Xen: fix converity warning of xen_pt_config_init() 2016-08-12 16:38:18 -07:00
xenpv vl: Switch qemu_uuid to QemuUUID 2016-09-23 11:42:52 +08:00
xtensa target-xtensa: xtfpga: fix FLASH interface width 2016-07-14 13:59:44 +03:00
Makefile.objs Add a base IPMI interface 2015-12-22 18:39:19 +02:00