Skip to content

RFC Xen hvm saving improvements

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/hvm-save: Refactor HVM_REGISTER_SAVE_RESTORExen/arch/x86/cpu/mcheck/vmce.c xen/arch/x86/hvm/hpet.c xen/arch/x86/hvm/hvm.c +11 more+51 -511 reply
2/3xen/hvm-save: Extend hvm_save_handler to take an instance parameterxen/arch/x86/cpu/mcheck/vmce.c xen/arch/x86/hvm/hpet.c xen/arch/x86/hvm/hvm.c +11 more+88 -600 replies
3/3xen/hvm-save: Adjust calling of multi-instance save handlers.xen/arch/x86/cpu/mcheck/vmce.c xen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/mtrr.c +4 more+213 -2341 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchDon Slutz
1/3
2/3
3/3Discovered-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Xen hvm saving improvements

This series is *very* RFC at the moment - it is only compile tested. I would very much appreciate review on the design. (and I shall see about sorting out some dev testing tomorrow)

The ultimate purpose is to fix that the fact that XEN_DOMCTL_gethvmcontext_partial is very unreliable at providing the correct subset of information.

All the changes are supposed to be internal to Xen. There should be no difference at all to the result of XEN_DOMCTL_gethvmcontext (which can be used as a useful dev test for the validity of the changes).

George: As for whether this is intended for 4.5, I have no idea. On the one hand, it is fixing a hypercall which doesn't function correctly, but on the other hand, it is a very large and complicated set of changes relevant to migration. Then again, the majority of the changes were largely mechanical, and there is a simple test to prove whether there are bugs or not. I shall defer to others for comments on the risk/rewards of this series.

Andrew Cooper (3):
xen/hvm-save: Refactor HVM_REGISTER_SAVE_RESTORE xen/hvm-save: Extend hvm_save_handler to take an instance parameter xen/hvm-save: Adjust calling of multi-instance save handlers.

 xen/arch/x86/cpu/mcheck/vmce.c |   34 +++---
 xen/arch/x86/hvm/hpet.c        |    8 +-
 xen/arch/x86/hvm/hvm.c         |  249 ++++++++++++++++++++--------------------
 xen/arch/x86/hvm/i8254.c       |    8 +-
 xen/arch/x86/hvm/irq.c         |   24 ++--
 xen/arch/x86/hvm/mtrr.c        |   61 +++++-----
 xen/arch/x86/hvm/pmtimer.c     |    8 +-
 xen/arch/x86/hvm/rtc.c         |    8 +-
 xen/arch/x86/hvm/vioapic.c     |    7 +-
 xen/arch/x86/hvm/viridian.c    |   31 ++---
 xen/arch/x86/hvm/vlapic.c      |   38 ++----
 xen/arch/x86/hvm/vpic.c        |   18 +--
 xen/common/hvm/save.c          |  108 ++++++++++-------
 xen/include/xen/hvm/save.h     |   65 +++++++----
 14 files changed, 337 insertions(+), 330 deletions(-)
CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Don Slutz <[email protected]>
CC George Dunlap <[email protected]>

--
1.7.10.4