On Wed, 8 Nov 2017 09:41:41 +0100 Christian Borntraeger <borntraeger@xxxxxxxxxx> wrote: > From: David Hildenbrand <david@xxxxxxxxxx> > > We will not see -ENOMEM (gfn_to_hva() will return KVM_ERR_PTR_BAD_PAGE > for all errors). So we can also get rid of special handling in the > callers of pin_guest_page() and always assume that it is a g2 error. > > As also kvm_s390_inject_program_int() should never fail, we can > simplify pin_scb(), too. > > Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> > Message-Id: <20170901151143.22714-1-david@xxxxxxxxxx> > Signed-off-by: Christian Borntraeger <borntraeger@xxxxxxxxxx> > --- > arch/s390/kvm/vsie.c | 50 +++++++++++++++++------------------------------- > include/linux/kvm_host.h | 1 + > virt/kvm/kvm_main.c | 4 ++-- > 3 files changed, 21 insertions(+), 34 deletions(-) Acked-by: Cornelia Huck <cohuck@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html