Re: [PATCH v1 1/2] KVM: s390: gaccess: check if guest address is in memslot

Christian Borntraeger
2024-09-18T11:04:15Z

Am 17.09.24 um 17:18 schrieb Nico Boehr:
> @@ -985,6 +988,10 @@ int access_guest_real(struct kvm_vcpu *vcpu, unsigned long gra,
> gra += fragment_len;
> data += fragment_len;
> }
> +
> + if (rc > 0)
> + vcpu->arch.pgm.code = rc;

This will work but using trans_exc might be more future proof I guess?
Otherwise this looks good with the nits fixed.