Skip to contentSkip to conversation

xics: Add comment about CPU hotplug

PATCH Applied Greg Kurz 3 participants 3 messages Jun 17, 2019 – Jun 18, 2019

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

PATCH 1/1 xics: Add comment about CPU hotplug

So that no one is tempted to drop that code, which is never called for cold plugged CPUs.

---
 hw/intc/xics.c |    1 +
 1 file changed, 1 insertion(+)
hw/intc/xics.c +1 -0
index 8535e583dd41..faa976e2f8a8 100644
@@ -363,6 +363,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) {
Applied
#2 lore raw
In reply to Greg Kurz
Quoted 4 lines · Greg Kurz

So that no one is tempted to drop that code, which is never called for cold plugged CPUs.

Applied, thanks.

Quoted 17 lines
---
 hw/intc/xics.c |    1 +
 1 file changed, 1 insertion(+)
hw/intc/xics.c +1 -0
index 8535e583dd41..faa976e2f8a8 100644
@@ -363,6 +363,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) {
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson