[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v10 13/16] s390x: protvirt: Move IO control structures over S
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v10 13/16] s390x: protvirt: Move IO control structures over SIDA |
Date: |
Thu, 19 Mar 2020 13:23:10 +0100 |
On Wed, 18 Mar 2020 10:30:44 -0400
Janosch Frank <address@hidden> wrote:
> For protected guests, we need to put the IO emulation results into the
> SIDA, so SIE will write them into the guest at the next entry.
>
> Signed-off-by: Janosch Frank <address@hidden>
> Reviewed-by: David Hildenbrand <address@hidden>
> ---
> target/s390x/ioinst.c | 61 +++++++++++++++++++++++++++++++------------
> 1 file changed, 45 insertions(+), 16 deletions(-)
>
> @@ -260,6 +269,13 @@ void ioinst_handle_stsch(S390CPU *cpu, uint64_t reg1,
> uint32_t ipb,
> }
>
> if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {
> + /*
> + * The Ultravisor checks schid bit 16 to be one and bits 0-12
> + * to be 0 and injects a operand exception itself.
As a side remark, that also implies that the ultravisor doesn't support
MCSS-E, which is highly unsurprising :)
Do we want to fence off enabling MCSS-E in the sda chsc for pv guests?
Probably not really needed, as Linux does not support it anyway.
> + *
> + * Hence we should never end up here.
> + */
> + g_assert(!s390_is_pv());
> /*
> * As operand exceptions have a lower priority than access
> exceptions,
> * we check whether the memory area is writeable (injecting the
Reviewed-by: Cornelia Huck <address@hidden>
- Re: [PATCH v10 10/16] s390x: protvirt: Set guest IPL PSW, (continued)
- [PATCH v10 11/16] s390x: protvirt: Move diag 308 data over SIDA, Janosch Frank, 2020/03/18
- [PATCH v10 13/16] s390x: protvirt: Move IO control structures over SIDA, Janosch Frank, 2020/03/18
- Re: [PATCH v10 13/16] s390x: protvirt: Move IO control structures over SIDA,
Cornelia Huck <=
- [PATCH v10 14/16] s390x: protvirt: Handle SIGP store status correctly, Janosch Frank, 2020/03/18
- [PATCH v10 16/16] s390x: Add unpack facility feature to GA1, Janosch Frank, 2020/03/18
- [PATCH v10 15/16] docs: system: Add protvirt docs, Janosch Frank, 2020/03/18
- Re: [PATCH v10 15/16] docs: system: Add protvirt docs, Christian Borntraeger, 2020/03/18