]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: vsie: use common code functions for pinning
authorDavid Hildenbrand <david@redhat.com>
Fri, 1 Sep 2017 15:11:43 +0000 (17:11 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 9 Nov 2017 08:49:47 +0000 (09:49 +0100)
commitf7a6509fe002e3909cb41c09e807b7f3ca4a361b
tree0c6202bf569de39623b15f0b93a632ff0a131d02
parentba850a8e64fbbd5f6407d5931124d00ced0528cc
KVM: s390: vsie: use common code functions for pinning

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@redhat.com>
Message-Id: <20170901151143.22714-1-david@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/vsie.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c