qemu-cr16/include/hw
David Gibson 3c0c47e346 spapr: Correctly set query_hotpluggable_cpus hook based on machine version
Prior to c8721d3 "spapr: Error out when CPU hotplug is attempted on older
pseries machines", attempting to use query-hotpluggable-cpus on pseries-2.6
and earlier machine types would SEGV.

That change fixed that, but due to some unexpected interactions in init
order and a brown-paper-bag worthy failure to test, it accidentally
disabled query-hotpluggable-cpus for all pseries machine types, including
the current one which should allow it.

In fact, query_hotpluggable_cpus needs to be non-NULL when and only when
the dr_cpu_enabled flag in sPAPRMachineClass is set, which makes
dr_cpu_enabled itself redundant.

This patch removes dr_cpu_enabled, instead directly setting
query_hotpluggable_cpus from the machine class_init functions, and using
that to determine the availability of CPU hotplug when necessary.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-08-08 09:45:03 +10:00
..
acpi
arm
audio
block
char
cpu
cris
display
dma
gpio
i2c
i386 x86: ioapic: add support for explicit EOI 2016-08-03 18:44:57 +02:00
ide
input
intc
ipack
ipmi
isa
kvm
lm32
m68k
mem
mips
misc
net
nvram
pci
pci-host
ppc spapr: Correctly set query_hotpluggable_cpus hook based on machine version 2016-08-08 09:45:03 +10:00
s390x
scsi
sd
sh4
smbios
sparc
ssi
timer
tricore
unicore32
usb
vfio
virtio
watchdog
xen xen: use a common function for pv and hvm guest backend register calls 2016-08-03 14:52:11 +02:00
boards.h
bt.h
compat.h
devices.h
elf_ops.h
empty_slot.h
fw-path-provider.h
hotplug.h
hw.h
ide.h
irq.h
loader.h
nmi.h
pcmcia.h
platform-bus.h
ptimer.h
qdev-core.h
qdev-dma.h
qdev-properties.h
qdev.h
register.h
stream.h
sysbus.h
usb.h