mbox series

[kvm-unit-tests,v1,0/2] s390x: Align SIE tests to 2GB

Message ID 20231103064132.11358-1-nrb@linux.ibm.com (mailing list archive)
Headers show
Series s390x: Align SIE tests to 2GB | expand

Message

Nico Boehr Nov. 3, 2023, 6:35 a.m. UTC
Some environments on s390x require guests to be aligned to 2GB. This is a
problem when kvm-unit-tests act as a hypervisor, since guests run with MSO/MSL
there and guest memory doesn't satisfy this requirement.

This series ensures kvm-unit-tests fulfills the 2G alignment requirement.

Note that this currently breaks the mvpg-sie test case under KVM due to prefix
issues, a fix is due for upstream submission.

Nico Boehr (2):
  s390x: spec_ex-sie: refactor to use snippet API
  s390x: sie: ensure guests are aligned to 2GB

 lib/s390x/sie.c     | 42 ++++++++++++++++++++++++++++++++++++++++++
 lib/s390x/sie.h     |  2 ++
 lib/s390x/snippet.h |  9 +++------
 s390x/sie.c         |  4 ++--
 s390x/spec_ex-sie.c | 13 ++++++-------
 5 files changed, 55 insertions(+), 15 deletions(-)

Comments

Claudio Imbrenda Nov. 3, 2023, 12:14 p.m. UTC | #1
On Fri,  3 Nov 2023 07:35:45 +0100
Nico Boehr <nrb@linux.ibm.com> wrote:

> Some environments on s390x require guests to be aligned to 2GB. This is a
> problem when kvm-unit-tests act as a hypervisor, since guests run with MSO/MSL
> there and guest memory doesn't satisfy this requirement.
> 
> This series ensures kvm-unit-tests fulfills the 2G alignment requirement.
> 
> Note that this currently breaks the mvpg-sie test case under KVM due to prefix
> issues, a fix is due for upstream submission.

I disagree with the wording.

The mvpg-sie test does not break, it will fail because there is an
actual KVM bug, so the test works as intended :)

> 
> Nico Boehr (2):
>   s390x: spec_ex-sie: refactor to use snippet API
>   s390x: sie: ensure guests are aligned to 2GB
> 
>  lib/s390x/sie.c     | 42 ++++++++++++++++++++++++++++++++++++++++++
>  lib/s390x/sie.h     |  2 ++
>  lib/s390x/snippet.h |  9 +++------
>  s390x/sie.c         |  4 ++--
>  s390x/spec_ex-sie.c | 13 ++++++-------
>  5 files changed, 55 insertions(+), 15 deletions(-)
>