All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] pc-bios/s390 fixes for reboot-to-vfio-ccw
@ 2020-11-20 16:01 Eric Farman
  2020-11-20 16:01 ` [PATCH v2 1/2] pc-bios: s390x: Ensure Read IPL memory is clean Eric Farman
  2020-11-20 16:01 ` [PATCH v2 2/2] pc-bios: s390x: Clear out leftover S390EP string Eric Farman
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Farman @ 2020-11-20 16:01 UTC (permalink / raw)
  To: Thomas Huth, Cornelia Huck
  Cc: Jason Herne, Eric Farman, Janosch Frank, Matthew Rosato,
	qemu-devel, Christian Borntraeger, qemu-s390x

Thomas, Conny,

Here is the updated series for the re-IPL fixes mentioned yesterday [1]

I've updated the reviews/acks to Patch 1 (Thank you Conny, Janosch!),
and implemented Thomas' suggestion to clear out the memory where S390EP
exists early in our processing. This both preserves the delicate balance
we have today, and fixes the scenario I've been wrestling with.

For this second patch, I opted to #define the address x10008 and use it
in both the new memset and existing memcmp, rather than having the
address used directly in two places. I put this definition in s390-arch.h
as it's shared by both files, even though it's not strictly an
"s390 architecture" thing. Considering its importance, it seems like a
reasonable fit.

Tested with my permutations of virtio/vfio/chreipl/install things,
but surely missing some others that I don't have readily configured.

[1] https://lore.kernel.org/qemu-devel/20201119165729.63351-1-farman@linux.ibm.com/

Eric Farman (2):
  pc-bios: s390x: Ensure Read IPL memory is clean
  pc-bios: s390x: Clear out leftover S390EP string

 pc-bios/s390-ccw/dasd-ipl.c  | 3 +++
 pc-bios/s390-ccw/jump2ipl.c  | 2 +-
 pc-bios/s390-ccw/main.c      | 6 ++++++
 pc-bios/s390-ccw/s390-arch.h | 3 +++
 4 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-23  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 16:01 [PATCH v2 0/2] pc-bios/s390 fixes for reboot-to-vfio-ccw Eric Farman
2020-11-20 16:01 ` [PATCH v2 1/2] pc-bios: s390x: Ensure Read IPL memory is clean Eric Farman
2020-11-20 16:01 ` [PATCH v2 2/2] pc-bios: s390x: Clear out leftover S390EP string Eric Farman
2020-11-23  7:39   ` Christian Borntraeger
2020-11-23  8:05     ` Thomas Huth
2020-11-23  8:07       ` Christian Borntraeger
2020-11-23  8:12         ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.