From: David Hildenbrand Subject: Re: [PATCH v1 4/4] KVM: s390: vsie: use common code functions for pinning Date: Fri, 1 Sep 2017 15:18:34 +0200 Message-ID: References: <20170830160603.5452-1-david@redhat.com> <20170830160603.5452-5-david@redhat.com> <1fe98513-327e-8f12-81cd-9ff733f535d5@de.ibm.com> <1efcb979-fa41-1fba-6095-71405a39cf2f@redhat.com> <7caeb543-0239-eb6e-b2a1-23e9b9bb6cc9@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Cornelia Huck To: Christian Borntraeger , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49464 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdIANSh (ORCPT ); Fri, 1 Sep 2017 09:18:37 -0400 In-Reply-To: Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: >> Guess I am getting lost in abstraction layers :) >> >> I think you're right, is_error_noslot_pfn() in kvm_pfn_to_page() should >> convert all such errors to KVM_ERR_PTR_BAD_PAGE. >> >> -ENOMEM was a theoretical case at that point either way in my opinion. >> >> So, this would boil down to: >> >> >> From a2cf5d109fc6342df12e361b665c92b73f66cfee Mon Sep 17 00:00:00 2001 >> From: David Hildenbrand >> Date: Thu, 3 Aug 2017 22:30:40 +0200 >> Subject: [PATCH v2 1/1] 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 > > Can you send it as a new patch please? > Sure, will do. -- Thanks, David