summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kurz2019-06-17 16:10:33 +0200
committerDavid Gibson2019-07-02 01:43:58 +0200
commitd9b9e6f6b91ed96d8e882d48ae83403b3a5c2b87 (patch)
tree33a65277e88fbf7bfa9cc4bd0cafca924e73a404
parenttarget/ppc: fix compile error in kvmppc_define_rtas_kernel_token() (diff)
downloadqemu-d9b9e6f6b91ed96d8e882d48ae83403b3a5c2b87.tar.gz
qemu-d9b9e6f6b91ed96d8e882d48ae83403b3a5c2b87.tar.xz
qemu-d9b9e6f6b91ed96d8e882d48ae83403b3a5c2b87.zip
xics: Add comment about CPU hotplug
So that no one is tempted to drop that code, which is never called for cold plugged CPUs. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <156078063349.435533.12283208810037409702.stgit@bahia.lan> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--hw/intc/xics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index 29f7d39781..978d7f0886 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -351,6 +351,7 @@ static void icp_realize(DeviceState *dev, Error **errp)
return;
}
+ /* Connect the presenter to the VCPU (required for CPU hotplug) */
if (kvm_irqchip_in_kernel()) {
icp_kvm_realize(dev, &err);
if (err) {