[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 0/8] Fix migration issues with arbitrary cpu-hot(u
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-ppc] [PATCH 0/8] Fix migration issues with arbitrary cpu-hot(un)plug |
Date: |
Fri, 22 Jul 2016 00:56:26 +0300 |
On Thu, Jul 21, 2016 at 05:54:31PM +0200, Igor Mammedov wrote:
> Series fixes migration issues caused by unstable cpu_index which depended
> on order cpus were created/destroyed. It follows David's idea to make
> cpu_index assignable by selected boards if board supports cpu-hotplug
> with device_add and needs stable cpu_index/'migration id' but leaves
> behaviour of the same as before for users that don't care about
> cpu-hot(un)plug making changes low-risk.
>
> tested with:
> SRC -snapshot -enable-kvm -smp 1,maxcpus=3 -m 256M guest.img -monitor stdio
> \
> -device qemu64-x86_64-cpu,id=cpudel,apic-id=1 \
> -device qemu64-x86_64-cpu,apic-id=2
> (qemu) device_del cpudel
> (qemu) stop
> (qemu) migrate "exec:gzip -c > STATEFILE.gz"
>
> DST -snapshot -enable-kvm -smp 1,maxcpus=3 -m 256M guest.img -monitor stdio
> \
> -device qemu64-x86_64-cpu,apic-id=2 \
> -incoming "exec: gzip -c -d STATEFILE.gz"
>
> git tree to test with:
> https://github.com/imammedo/qemu cpu-index-stable
> to view
> https://github.com/imammedo/qemu/commits/cpu-index-stable
For PC bits:
Reviewed-by: Michael S. Tsirkin <address@hidden>
This would be nice to have in 2.7.
Who's reviewing/merging the rest? Eduardo?
> CC: Paolo Bonzini <address@hidden>
> CC: Peter Crosthwaite <address@hidden>
> CC: Richard Henderson <address@hidden>
> CC: Eduardo Habkost <address@hidden>
> CC: "Michael S. Tsirkin" <address@hidden>
> CC: David Gibson <address@hidden>
> CC: Alexander Graf <address@hidden>
> CC: Riku Voipio <address@hidden>
> CC: Bharata B Rao <address@hidden>
> CC: address@hidden
>
> David Gibson (1):
> Revert "spapr: Ensure CPU cores are added contiguously and removed in
> LIFO order"
>
> Igor Mammedov (7):
> exec: reduce CONFIG_USER_ONLY ifdeffenery
> exec: don't use cpu_index to detect if cpu_exec_init()'s been called
> for cpu
> exec: set cpu_index only if it's been explictly set
> qdev: fix object reference leak in case device.realize() fails
> pc: init CPUState->cpu_index with index in possible_cpus[]
> spapr: init CPUState->cpu_index with index relative to core-id
> Revert "pc: Enforce adding CPUs contiguously and removing them in
> opposite order"
>
> bsd-user/qemu.h | 2 --
> include/exec/exec-all.h | 12 +++++++++
> include/qemu/queue.h | 2 ++
> include/qom/cpu.h | 2 ++
> linux-user/qemu.h | 2 --
> exec.c | 65
> +++++++++----------------------------------------
> hw/core/qdev.c | 8 +++++-
> hw/i386/pc.c | 38 +++--------------------------
> hw/ppc/spapr_cpu_core.c | 25 ++++---------------
> qom/cpu.c | 2 +-
> 10 files changed, 44 insertions(+), 114 deletions(-)
>
> --
> 2.7.4
- Re: [Qemu-ppc] [PATCH 6/8] spapr: init CPUState->cpu_index with index relative to core-id, (continued)
Re: [Qemu-ppc] [Qemu-devel] [PATCH 6/8] spapr: init CPUState->cpu_index with index relative to core-id, David Gibson, 2016/07/26
[Qemu-ppc] [PATCH 4/8] qdev: fix object reference leak in case device.realize() fails, Igor Mammedov, 2016/07/21
[Qemu-ppc] [PATCH 7/8] Revert "pc: Enforce adding CPUs contiguously and removing them in opposite order", Igor Mammedov, 2016/07/21
[Qemu-ppc] [PATCH 8/8] Revert "spapr: Ensure CPU cores are added contiguously and removed in LIFO order", Igor Mammedov, 2016/07/21
Re: [Qemu-ppc] [PATCH 0/8] Fix migration issues with arbitrary cpu-hot(un)plug,
Michael S. Tsirkin <=