Skip to contentSkip to conversation

docs: Specify VCPU hotplug procedure for HVMlite guests

PATCH In review Boris Ostrovsky 2 participants 2 messages Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Specify VCPU hotplug procedure for HVMlite guests

HVMlite VCPUs can be added and removed by toggling 'availability' value of VCPU's xenstore entry.

---

I am not sure this is really needed since it's no different from how we do hotplug for PV or HVM/qemu-trad guests.

I may have been a bit too grandiose by describing yesterday's patch as "add CPU hotplug support". It was really enabling existing functionality.

 docs/misc/hvmlite.markdown | 5 +++++
 1 file changed, 5 insertions(+)
docs/misc/hvmlite.markdown +5 -0
index c1b75c6..1a2e866 100644
@@ -80,3 +80,8 @@ are used in order to bring up secondary vCPUs:
  * `VCPUOP_down` is used to bring down a vCPU.
 
  * `VCPUOP_is_up` is used to scan the number of available vCPUs.
+
+## VCPU hotplug ##
+
+VCPUs can be hot-plugged or hot-removed by writing "online" or "offline" to
+xenstore's /local/domain/<domain_id>/cpu/<vcpu_id>/availability entry
Signature · 1 line
2.1.0
#1 lore raw
Quoted 9 lines · Boris Ostrovsky

HVMlite VCPUs can be added and removed by toggling 'availability' value of VCPU's xenstore entry.

---

I am not sure this is really needed since it's no different from how we do hotplug for PV or HVM/qemu-trad guests.

There is no harm to have more document. Not everyone who wants to implement PVH support is familiar with PV and / or want to look at Linux and libxl code (for various reasons). ;-)

Wei.

Quoted 22 lines

I may have been a bit too grandiose by describing yesterday's patch as "add CPU hotplug support". It was really enabling existing functionality.

 docs/misc/hvmlite.markdown | 5 +++++
 1 file changed, 5 insertions(+)
docs/misc/hvmlite.markdown +5 -0
index c1b75c6..1a2e866 100644
@@ -80,3 +80,8 @@ are used in order to bring up secondary vCPUs:
  * `VCPUOP_down` is used to bring down a vCPU.
 
  * `VCPUOP_is_up` is used to scan the number of available vCPUs.
+
+## VCPU hotplug ##
+
+VCPUs can be hot-plugged or hot-removed by writing "online" or "offline" to
+xenstore's /local/domain/<domain_id>/cpu/<vcpu_id>/availability entry
Signature · 1 line
2.1.0