[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MINI-OS PATCH 0/6] hide struct start_info from PVH code



While working on xenstore-stubdom live update support I came across
some really unpleasant code using struct start_info even when running
in PVH mode.

Especially suspend/resume was doing some crazy stuff, including
overwriting the initial struct hvm_start_info partially.

This series is hiding struct start_info from PVH code. This didn't
result in any runtime error, but in future I'll need to access struct
hvm_start_info some time after boot, so I need to get that fixed.

Tested especially with xl suspend/resume and xl save/restore in PV and
in PVH mode.

Juergen Gross (6):
  suspend: drop crazy pfn handling for PVH
  setup: drop parameter from map_shared_info()
  x86/pv: remove global start_info
  console: drop parameter from get_console()
  xenbus: drop parameter from get_xenbus()
  x86/pv: make start_info_ptr PV-only

 arch/arm/setup.c     |  6 ++--
 arch/x86/setup.c     | 69 ++++++++++++--------------------------------
 console.c            | 10 +++----
 hypervisor.c         |  2 +-
 include/console.h    |  2 +-
 include/hypervisor.h | 14 ++-------
 include/xenbus.h     |  4 +--
 xenbus.c             | 13 ++++-----
 8 files changed, 39 insertions(+), 81 deletions(-)

-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.