Re: [PATCH v3 2/4] KVM: s390: vsie: Fix length of facility list shadowed

From: Janosch Frank
Date: Mon Dec 04 2023 - 10:51:23 EST


On 11/8/23 18:12, Nina Schoetterl-Glausch wrote:
The length of the facility list accessed when interpretively executing
STFLE is the same as the hosts facility list (in case of format-0)
When shadowing, copy only those bytes.
The memory following the facility list need not be accessible, in which

...doesn't need to be accessible but the current implementation is possibly checking for it to be accessible.

Let's fix that by checking the length that stfle returns to KVM instead of a fixed value.


Acked-by: David Hildenbrand <david@xxxxxxxxxx>
Reviewed-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>
Signed-off-by: Nina Schoetterl-Glausch <nsg@xxxxxxxxxxxxx>
[...]