Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5077235pjb; Mon, 27 Jul 2020 12:19:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/jQCS0r6Vt21FDMrDCSk+1aA7NMVK4foy1INuMclt3qM4sfIRMt/MTO5H0NAq09re6aGw X-Received: by 2002:a17:906:a10a:: with SMTP id t10mr21880921ejy.377.1595877550908; Mon, 27 Jul 2020 12:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595877550; cv=none; d=google.com; s=arc-20160816; b=Y428HqJ6TQdsst0cFTj+K4mJ+sjqLxOeo2F4bF320QpAHLStxIuDUXm86En6mhXkui Oq0+Ntyw6MuVRjZWnNHAH+jJ9XKmurxCS1KGWB3Ob4N8MTMx+/N92GgdDosHkf/P76Q+ rxQXEFwi6LU5Sj5/CbHqtAYce10bUyit7EpijOZZ81GXdwqrwAlddL7IWZMzjaxEYnfo J4UCE0PypOx4kodZuE2pWhI9tTLUUc3c4KZPj0m7qccGrHWHPU9sX/T9l0/L+wE/B1Xg c5pxh0ukYMnu52aXQqxEfO5cJr6VSG9o3M0Pa4enI8P+kdJLE6vgqHJjUKztBy90fc0T 4wIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sXW4wIH6TKVJpwsY/Gv5v2EmllUcRHvd/yXgwriXB10=; b=UlAbNq0b+54Bmk8OpQOkMb7q9mrJfI+ji193P9zUocYn9teNWpovpssk53CAjIUQbQ gzd0LTpzkPxMXyvInTDMy24HtpvmXbE+hTbzoiFP8N6jKDt+CJpjV6J68tn5Tpsjyz2w rsW++906Gj1DPnDJrVSuYHzg2vhVRgyTRgR6gj+Qb3z5te43hTNumMfJ4CdeSvullQ6C vGl7lBYp97Me5EI6U6j1j6mRYEJTx3MV3UzZ9FRMAXNJjYUzDlQqeFeBSuqw1eZpTU4T Hvutj/YEZU7IfHhM2KNmzR08Qay29w86tbnNpztIMbmZGC8MI3ktnOFjaVlO8arTTeHt dOeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HXwoh2Er; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si4777248eji.43.2020.07.27.12.18.48; Mon, 27 Jul 2020 12:19:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HXwoh2Er; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731052AbgG0SlK (ORCPT + 99 others); Mon, 27 Jul 2020 14:41:10 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58137 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728424AbgG0SlJ (ORCPT ); Mon, 27 Jul 2020 14:41:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595875268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sXW4wIH6TKVJpwsY/Gv5v2EmllUcRHvd/yXgwriXB10=; b=HXwoh2Er7QvidkCkD13MofqQUSVFQM+BP9oV/tBAJBBENknu5ah1veDa9dGVqoC8R/4hvn qf9SY3yf7rUitMN3vDkdRRNkwOgEoWfLay9BV6CNy15EwLjctsGM+m6ipyDJff82V2Gnlb hLwyYWTuz8JHp79EyqAl1ufXRwG6/js= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-276-teTdsiu6NcCTsZ5b6CfZJA-1; Mon, 27 Jul 2020 14:41:00 -0400 X-MC-Unique: teTdsiu6NcCTsZ5b6CfZJA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CB74A1DE2; Mon, 27 Jul 2020 18:40:59 +0000 (UTC) Received: from horse.redhat.com (ovpn-115-13.rdu2.redhat.com [10.10.115.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AFAD10013C4; Mon, 27 Jul 2020 18:40:54 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id A4750220264; Mon, 27 Jul 2020 14:40:53 -0400 (EDT) Date: Mon, 27 Jul 2020 14:40:53 -0400 From: Vivek Goyal To: Vitaly Kuznetsov , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs-list , pbonzini@redhat.com, sean.j.christopherson@intel.com Subject: Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error Message-ID: <20200727184053.GB39559@redhat.com> References: <20200720211359.GF502563@redhat.com> <20200727135603.GA39559@redhat.com> <87ft9dlz2b.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ft9dlz2b.fsf@vitty.brq.redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 06:09:32PM +0200, Vitaly Kuznetsov wrote: > Vivek Goyal writes: > > > On Mon, Jul 20, 2020 at 05:13:59PM -0400, Vivek Goyal wrote: > >> Page fault error handling behavior in kvm seems little inconsistent when > >> page fault reports error. If we are doing fault synchronously > >> then we capture error (-EFAULT) returned by __gfn_to_pfn_memslot() and > >> exit to user space and qemu reports error, "error: kvm run failed Bad address". > > > > Hi Vitaly, > > > > A gentle reminder. How does this patch look now? > > > > Sorry, I even reviewd it but never replied. It looks good to me! > > Reviewed-by: Vitaly Kuznetsov Thanks Vitaly. Paolo, what do you think about this patch. Do you have concerns with this. Can this be merged. Thanks Vivek