diff options
| author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2026-11-05 16:37:01 +0100 |
|---|---|---|
| committer | Christian Borntraeger <borntraeger@linux.ibm.com> | 2026-11-12 15:10:57 +0100 |
| commit | f53542298e5a66fa4ac73c6861df33deebe984b8 (patch) | |
| tree | e1640bbe1d28133d0ecc8a09274b91dba5ac8bf0 /tools/perf/scripts/python | |
| parent | ff662d60374cd8858d1209f678f5f01b1b0be7c1 (diff) | |
KVM: s390: Fix UCONTROL inconsistencies
For UCONTROL VMs, when a vCPU segment entry is mapped but unallocated,
the tl field was set to 1. This collides with the present bit, which
means that other parts of gmap would mistake the entry for a present
one.
Refactor the code to use a different combination of flags to indicate a
mapped but unallocated segment.
The new flags combination will result in several functions returning
-EFAULT when used on UCONTROL guests. This is fine, since those
interfaces should not be used for UCONTROL guests to begin with.
Proper fencing of the interfaces that are not allowed for UCONTROL
guests is outside the scope of this patch.
Fixes: a2c17f9270cc ("KVM: s390: New gmap code")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: stable@vger.kernel.org # 7.0+
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
