Skip to contentSkip to conversation

libxl: Add CPU hotplug support for HVM domains without device model

PATCH Applied Boris Ostrovsky 3 participants 3 messages Feb 2, 2016 – Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: Add CPU hotplug support for HVM domains without device model

HVMlite domains add/remove VCPUs by toggling "availability" property in xenstore.

---
 tools/libxl/libxl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/libxl/libxl.c +1 -0
index 94b5656..ae8bbd8 100644
@@ -5557,6 +5557,7 @@ int libxl_set_vcpuonline(libxl_ctx *ctx, uint32_t domid, libxl_bitmap *cpumap)
     case LIBXL_DOMAIN_TYPE_HVM:
         switch (libxl__device_model_version_running(gc, domid)) {
         case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL:
+        case LIBXL_DEVICE_MODEL_VERSION_NONE:
             rc = libxl__set_vcpuonline_xenstore(gc, domid, cpumap, &info);
             break;
         case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN:
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Boris Ostrovsky

HVMlite domains add/remove VCPUs by toggling "availability" property in xenstore.

If this is how it is supposed to work:

However, I would like to ask for a follow-up patch to documentation xen.git hvmlite.markdown (or whichever file you see fit).

Quoted 19 lines
---
 tools/libxl/libxl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/libxl/libxl.c +1 -0
index 94b5656..ae8bbd8 100644
@@ -5557,6 +5557,7 @@ int libxl_set_vcpuonline(libxl_ctx *ctx, uint32_t domid, libxl_bitmap *cpumap)
     case LIBXL_DOMAIN_TYPE_HVM:
         switch (libxl__device_model_version_running(gc, domid)) {
         case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL:
+        case LIBXL_DEVICE_MODEL_VERSION_NONE:
             rc = libxl__set_vcpuonline_xenstore(gc, domid, cpumap, &info);
             break;
         case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN:
Signature · 1 line
1.7.1
Applied
#2 lore raw
Quoted 9 lines · Wei Liu
Quoted 4 lines · Boris Ostrovsky

HVMlite domains add/remove VCPUs by toggling "availability" property in xenstore.

If this is how it is supposed to work:

Applied.

Quoted 2 lines

However, I would like to ask for a follow-up patch to documentation xen.git hvmlite.markdown (or whichever file you see fit).

Yes, please.