• D
    Support VCPU hotplug in QEMU guests · e8d6c289
    Daniel P. Berrange 提交于
    QEMU has a monitor command 'set_cpu' which allows a specific
    CPU to be toggled between online& offline state. libvirt CPU
    hotplug does not work in terms of individual indexes CPUs.
    Thus to support this, we iteratively toggle the online state
    when the total number of vCPUs is adjusted via libvirt
    
    NB, currently untested since QEMU segvs when running this!
    
    * src/qemu/qemu_driver.c: Toggle online state for CPUs when
      doing hotplug
    * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
      src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_json.h,
      src/qemu/qemu_monitor_text.c, src/qemu/qemu_monitor_text.h: Add
      monitor API for toggling a CPU's online status via 'set_cpu
    e8d6c289
qemu_monitor_text.h 7.1 KB