From: Manish Jaggi <manish.ja...@cavium.com>

QEMU on arm systems use -machine virt -cpu host option for a VM.
Migration thus is limited between machines with same cpu.

This is a limitation if migration is desired between cpus which are of same
family and have only few difeerences like bug fixes which have no effect on
VM operation. They just differ in say MIDR values.

This patchset introduces an option -hostinvariant whic along with a new KVM
error code -KVM_EINVARIANT will enable qemu to replace migrated guests'
invariant regiters with destination machines cpu regs.

This feature is user opt-in. So user is aware of the differences in MIDR.

Changes since v1-
This patch is revised after previous RFC comments
https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg03546.html

Manish Jaggi (2):
  arm: Introduce hostinvariant command line option
  arm: program migrated guests' invariant registers with host ones

 qemu-options.hx  | 13 +++++++++++++
 target/arm/kvm.c | 15 +++++++++++++--
 vl.c             | 24 ++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 2 deletions(-)

-- 
1.8.3.1


Reply via email to