From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CDCEC433C1 for ; Mon, 29 Mar 2021 23:24:11 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E7BD60241 for ; Mon, 29 Mar 2021 23:24:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E7BD60241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CpWvUZ7tP1Bf140StI42amxMP8LGfqqinQc+kj2HYb8=; b=QCOxhvTPN3q5NiWuoUQE38aiF 7ClFwymF+HanQLUALEr/tzeLy2JLjKgjKewiCOh8D2YPO/pAfUqDJCuwGD9xJYVE44y31F0VR6zVW 125ig6Zw1NU55XO44bieIMGhBE7QO7vBUJq7F13cH+V5YLvzoDtLvAWzlsh2JqJsU9xeQqv230MtC o/afgBpoc78bysw4OhhavbXXaLHTWVNyXfem/ijdrLCj/tprKMOufL/0a1ov82IHaZpKyqmx8PtWg hPr+ZB+rBglZnuWUmfXg+5NvouCa2yC+vlw6IRDYUnUISgSXsIOrRRDcGCu/+FjvS2+hoPE8IWpiT K8CIn/THQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lR1BK-001thD-Aq; Mon, 29 Mar 2021 23:20:27 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lQufl-000lB6-7Q for linux-arm-kernel@lists.infradead.org; Mon, 29 Mar 2021 16:23:28 +0000 Received: by mail-wm1-x331.google.com with SMTP id m20-20020a7bcb940000b029010cab7e5a9fso8818689wmi.3 for ; Mon, 29 Mar 2021 09:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=KPclp6vfsh1l0llxq/9bcQXpgR0clJ6jmS6dVL/hig8=; b=bj77tl0OjsgCgZLbOb3u3k145orUo71nkMcisB/6plOzX/M2mg3Z4Yb5uDisu9c4pB Y53SOJe4s4v6Mhp+CFbq6aMAtV0YnUliuYDu7EDJkfI1uYn+lEi44BJeUdxqKS/tx3ru OfU2m9joLw9o3CyDSRJhRXWyX6CADErtPac4qLPNqMsBYAMl4Ls7CdOHxBs62aYJ4XaJ yUgTz5aupJxIno4XKcDiaBivqeoEJ6rRqOkSeKzkD+lCKQV3ESKONlrbQU0ZLjQ3/915 /Mff3SI799c/P5lsfxlGS62u7OScJZG9l13uwvkzhwn9CM6+aup1yF/Jf4SM0qj4lLMj WW+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=KPclp6vfsh1l0llxq/9bcQXpgR0clJ6jmS6dVL/hig8=; b=LPjEe9coWUut7FCEwWiTURVs0dm7f/Wgu0FAEWeuOtjwSxJiyLtV9QW8pgnxRaXsFP WsKI3+55VbJtwoQXqgjyNWuKxJQB7hCj7F2FlNFkMl4c6eAHwzjmIyj92SZyGo11zImw QNjL6OWlmMeU8sFV6jjiUmq+/plzMR93BEU8PCL7tvygQR1VRvVgrmoOfNSASkGZw6EK I8o0JvFzNO7jaWkpcFBrxFYth1MdsoJUj0CNotWYcvxK369IK33RNLVBVvrvWaBet2E3 JkfkOA+pP3ENVuzH2aacfCQ9SlTkFGm+oN+nhO0Jo81Ck1ZxqS2ocMp9ys7QnIhjrXkF 3gRw== X-Gm-Message-State: AOAM533Lc4dH1Nq1UxIb3zsS/UiFDwV9QPR9mIDoC0OpT9wxDI193MRr CNVflbft3AulYAj/kZYZLe0d8g== X-Google-Smtp-Source: ABdhPJwFilW/ot1hZMhT/JWnG2uNUr6y5QBKqC9sEGMBX6tvcW+gfCS/ourdvz2bsJ56tuVkYTAQEw== X-Received: by 2002:a7b:c2f7:: with SMTP id e23mr26138332wmk.30.1617035001094; Mon, 29 Mar 2021 09:23:21 -0700 (PDT) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id i8sm29594538wrx.43.2021.03.29.09.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 09:23:20 -0700 (PDT) Date: Mon, 29 Mar 2021 18:23:02 +0200 From: Jean-Philippe Brucker To: Vivek Kumar Gautam Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, joro@8bytes.org, will.deacon@arm.com, mst@redhat.com, robin.murphy@arm.com, eric.auger@redhat.com, alex.williamson@redhat.com, kevin.tian@intel.com, jacob.jun.pan@linux.intel.com, yi.l.liu@intel.com, lorenzo.pieralisi@arm.com, shameerali.kolothum.thodi@huawei.com Subject: Re: [PATCH RFC v1 15/15] iommu/virtio: Update fault type and reason info for viommu fault Message-ID: References: <20210115121342.15093-1-vivek.gautam@arm.com> <20210115121342.15093-16-vivek.gautam@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-TUID: vOigyBwZv6w+ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210329_172326_402996_E67FE754 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 12, 2021 at 06:39:05PM +0530, Vivek Kumar Gautam wrote: > To complete the page request we would also need to send the response back to > the host from virtio backend when handling page request. So the virtio > command should also be accompanied with a vfio api to send the page request > response back to the host. Isn't it? > This is where the host smmuv3 can send PRI_RESP command to the device to > complete the page fault. It looks like Eric already has this in the VFIO series: https://lore.kernel.org/linux-iommu/20210223210625.604517-14-eric.auger@redhat.com/ Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel