[pve-devel] qemu2.7: cpu hotplug && hot-unplug v1

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Oct 12 16:18:06 CEST 2016


FYI a first 2.7 build is on pvetest now

On Tue, Sep 06, 2016 at 12:41:52PM +0200, Alexandre Derumier wrote:
> Hi,
> This patch series implement new qemu 2.7 cpu hotplug framework, with device_add|device_del
> 
> hot-unplug is working now !
> 
> config example:
> ---------------
> cpu: kvm64
> sockets:2
> cores:2
> 
> generate cmdline
> ----------------
> -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce
> -smp 1,sockets=2,cores=2,maxcpus=4
> -device kvm64-x86_64-cpu,id=cpu2,socket-id=0,core-id=1,thread-id=0 
> -device kvm64-x86_64-cpu,id=cpu3,socket-id=1,core-id=0,thread-id=0 
> -device kvm64-x86_64-cpu,id=cpu4,socket-id=1,core-id=1,thread-id=0 
> 
> 
> First core is not hotpluggable (-smp 1). (socket-id=0,core-id=0)
> Others cores are added with -device, with cpumodel,socket-id && core-id.
> 
> cpuflags are defined globally in -cpu , and are auto applied on hotplug
> 
> Tested with debian jessie, kernel 3.16.
> 
> This new config is only apply with machine 2.7+cpu hotplug enabled, as it break live migration.
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list