On 3/4/20 6:43 PM, David Hildenbrand wrote: > On 04.03.20 12:42, Janosch Frank wrote: >> For protected guests, we need to put the STSI emulation results into >> the SIDA, so SIE will write them into the guest at the next entry. >> >> Signed-off-by: Janosch Frank >> Acked-by: David Hildenbrand >> --- >> target/s390x/kvm.c | 15 ++++++++++++--- >> 1 file changed, 12 insertions(+), 3 deletions(-) >> >> diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c >> index cdcd538b4f..43fc0c088b 100644 >> --- a/target/s390x/kvm.c >> +++ b/target/s390x/kvm.c >> @@ -1797,11 +1797,16 @@ static int handle_tsch(S390CPU *cpu) >> >> static void insert_stsi_3_2_2(S390CPU *cpu, __u64 addr, uint8_t ar) >> { >> + CPUS390XState *env = &cpu->env; >> SysIB_322 sysib; >> int del; >> >> - if (s390_cpu_virt_mem_read(cpu, addr, ar, &sysib, sizeof(sysib))) { >> - return; >> + if (env->pv) { >> + s390_cpu_pv_mem_read(cpu, 0, &sysib, sizeof(sysib)); >> + } else { > > else if please (not sure if I mentioned that already) Ack > >> + if (s390_cpu_virt_mem_read(cpu, addr, ar, &sysib, sizeof(sysib))) { >> + return; > > With that, you can convert the ack to a > > Reviewed-by: David Hildenbrand Thanks!