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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux