qemu/hw/i386
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
..
kvm cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
xen include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
acpi-build.c hw/i386: AMD IOMMU IVRS table 2016-09-24 01:02:01 +03:00
acpi-build.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
amd_iommu.c intel_iommu, amd_iommu: allow UNMAP notifiers 2016-09-27 11:57:28 +02:00
amd_iommu.h hw/i386: Introduce AMD IOMMU 2016-09-24 01:02:00 +03:00
intel_iommu_internal.h intel_iommu: support all masks in interrupt entry cache invalidation 2016-07-21 20:44:19 +03:00
intel_iommu.c intel_iommu, amd_iommu: allow UNMAP notifiers 2016-09-27 11:57:28 +02:00
kvmvapic.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
Makefile.objs hw/i386: Introduce AMD IOMMU 2016-09-24 01:02:00 +03:00
multiboot.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc_piix.c pc: Add 2.8 machine 2016-09-09 20:58:34 +03:00
pc_q35.c pc: Add 2.8 machine 2016-09-09 20:58:34 +03:00
pc_sysfw.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
pc.c pc: apic: fix touch LAPIC when irqchip is split 2016-09-14 12:25:14 +02:00
pci-assign-load-rom.c pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c 2016-06-29 14:03:47 +02:00
trace-events hw/i386/trace-events: Add AMD IOMMU trace events 2016-09-23 19:03:56 +03:00
x86-iommu.c hw/i386: AMD IOMMU IVRS table 2016-09-24 01:02:01 +03:00