Searched hist:f08ec4e5fca55843adae51d5e8dd287918d591eb (Results 1 – 1 of 1) sorted by relevance
/kvm-unit-tests/lib/s390x/ |
H A D | uv.c | f08ec4e5fca55843adae51d5e8dd287918d591eb Thu Apr 18 11:01:40 UTC 2024 Claudio Imbrenda <imbrenda@linux.ibm.com> lib: s390: fix guest length in uv_create_guest()
The current code creates secure guests with significantly more memory than expected, but since none of that memory is ever touched, everything still works.
Fix the issue by specifying the actual guest length.
The MSL does not contain the length of the guest, but the address of the last 1M block of guest memory. In order to get the length, MSO needs to be subtracted, and 1M needs to be added.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Link: https://lore.kernel.org/r/20240418110140.62406-1-imbrenda@linux.ibm.com Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
|