Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1689314ybj; Fri, 20 Sep 2019 14:54:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6E9YHW1eMLN905HNCNMdiNlOSgooevE9oVSn5hoZL9exPPsGLN1XWWrAaTSS8oAN4QIZ3 X-Received: by 2002:aa7:db02:: with SMTP id t2mr24365759eds.252.1569016464624; Fri, 20 Sep 2019 14:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569016464; cv=none; d=google.com; s=arc-20160816; b=ETfCQ7eeagqLlZunKIvHpPaUysuTajrREbZ8gRMW0KGucONsYIU1+omI99E9+KYFI5 oBChia+UlAnoJE4guuakzfsQRX3pKojqGzjQAg+AmCLTbhDBd1FoA7jL4zSF4P76Piqi O50tip/4jG6vy+pQigTiY6245YQ05uGkeZKJuzjWkIo9fkrLcssfGsR/Js0sQsNKaYBu /0dXvvipBtrT7aiFPeXYHL6tqHoSZTTlk3SXQSL0SmhimVoGxExOsihpjydwJlVjgPCQ 97wtJUiZVfm/A3sunX/4emY1B+8iPRTrnWEbZyh4yLy7Ra6phzzvkjDvp/jkjHvQTELs ++7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pnJEoO7rV+UlNaekiumw/ZSaEpL4UVoCz9lNhsgxOYE=; b=cfgeE+3TAIyp/tyuviUchABekRCdcEf4NN9IdPu0ZwpTyJC6oqoJMmEgRV1Uw8LgIW 4qcLJg1JP1TaEosg50W2Mx1qI8QdYeZE3Ch7aWNhuwG/EYFJncWY4d2BSR+DNcT1/nhO U/RjuwVgQsha3pihrHzEO23rZGC5aTk0z+Ti0csbikh20ab480TTELIosM/kPeIs8bgI Wv+aLKTDFfP7UDriz9XPO3/Ndr7C9MN5LamrmSzADt6Miqnoow/rP8yiwbsXQa1yFMfR y8jy0Sekwlmc1cO6ktYWlQn1GDsD6+p/9lBA7gbCSWUmFBd9NVbTrSnWw5wrwUCq2b8+ 0PcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v5PB0Hhv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si2027921edv.199.2019.09.20.14.54.01; Fri, 20 Sep 2019 14:54:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v5PB0Hhv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388821AbfITAHy (ORCPT + 99 others); Thu, 19 Sep 2019 20:07:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388604AbfITAHx (ORCPT ); Thu, 19 Sep 2019 20:07:53 -0400 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9CBD21920 for ; Fri, 20 Sep 2019 00:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568938073; bh=KAhGCSVOVtUtAdEEuBhsqNfJhp1wcq6UJPR1rEams+Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=v5PB0HhvLmN/6ZaebrnHpnUH8NPDVNrrZqFQJxlbGHGW5BjN98ufBDZu0YRL8ANiQ BHqOCR3wlr8v5DE9t9rfG9yqZ1DCDNMv6n2DSES9zAB5DSHPlgCTPmZGM6nLPW8pkH s3npw8z3tv+lCr63gyPA3pj9qac4w4UP86/GKnD8= Received: by mail-wr1-f52.google.com with SMTP id l11so4927218wrx.5 for ; Thu, 19 Sep 2019 17:07:52 -0700 (PDT) X-Gm-Message-State: APjAAAWLSo5V/YeMBuHHBlrQdQsKiFrtKfbj3enTUyaLWOXqLsRN9lX+ OvmzS1HWrC/jkceKSfUc6aU1DYktKm8DSZM7xhQ= X-Received: by 2002:adf:fe0f:: with SMTP id n15mr9371291wrr.343.1568938071266; Thu, 19 Sep 2019 17:07:51 -0700 (PDT) MIME-Version: 1.0 References: <20190619123939.GF7767@fuggles.cambridge.arm.com> <20190624104006.lvm32nahemaqklxc@willie-the-truck> <20190912140256.fwbutgmadpjbjnab@willie-the-truck> <057a0af3-93f7-271c-170e-4b31e6894c3c@linaro.org> <20190919151844.GG1013538@lophozonia> In-Reply-To: <20190919151844.GG1013538@lophozonia> From: Guo Ren Date: Fri, 20 Sep 2019 08:07:38 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 11/14] arm64: Move the ASID allocator code in a separate file To: Jean-Philippe Brucker Cc: Will Deacon , Catalin Marinas , Palmer Dabbelt , christoffer.dall@arm.com, Atish Patra , Julien Grall , gary@garyguo.net, linux-riscv@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Mike Rapoport , aou@eecs.berkeley.edu, Arnd Bergmann , suzuki.poulose@arm.com, Marc Zyngier , Paul Walmsley , linux-arm-kernel@lists.infradead.org, Anup Patel , Linux Kernel Mailing List , iommu@lists.linux-foundation.org, james.morse@arm.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 19, 2019 at 11:18 PM Jean-Philippe Brucker wrote: > > The SMMU does support PCI Virtual Function - an hypervisor can assign a > VF to a guest, and let that guest partition the VF into smaller contexts > by using PASID. What it can't support is assigning partitions of a PCI > function (VF or PF) to multiple Virtual Machines, since there is a > single S2 PGD per function (in the Stream Table Entry), rather than one > S2 PGD per PASID context. > In my concept, the two sentences "The SMMU does support PCI Virtual Functio" v.s. "What it can't support is assigning partitions of a PCI function (VF or PF) to multiple Virtual Machines" are conflict and I don't want to play naming game :) -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/