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=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 883DBC3F2CE for ; Thu, 5 Mar 2020 02:57:16 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 4BB2820838 for ; Thu, 5 Mar 2020 02:57:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BB2820838 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:42714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9ghH-00065E-H5 for qemu-devel@archiver.kernel.org; Wed, 04 Mar 2020 21:57:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55989) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9gge-0005a8-0o for qemu-devel@nongnu.org; Wed, 04 Mar 2020 21:56:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9ggb-0007Sl-Tq for qemu-devel@nongnu.org; Wed, 04 Mar 2020 21:56:34 -0500 Received: from mga07.intel.com ([134.134.136.100]:34446) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j9ggb-00079S-Lm; Wed, 04 Mar 2020 21:56:33 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2020 18:56:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,516,1574150400"; d="scan'208";a="274920144" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 04 Mar 2020 18:56:26 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Mar 2020 18:56:26 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Mar 2020 18:56:25 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.206]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.235]) with mapi id 14.03.0439.000; Thu, 5 Mar 2020 10:56:21 +0800 From: "Tian, Kevin" To: Jean-Philippe Brucker , Auger Eric Subject: RE: [PATCH v16 00/10] VIRTIO-IOMMU device Thread-Topic: [PATCH v16 00/10] VIRTIO-IOMMU device Thread-Index: AQHV4zqd/jWB2C+M5UeA/xtNxWrsyqgucl6AgAAqcACAByzBAIAAaY+AgAFXAoCAACrFAIAAh6qAgAEu9sA= Date: Thu, 5 Mar 2020 02:56:20 +0000 Message-ID: References: <20200214132745.23392-1-eric.auger@redhat.com> <20200227111717.GG1645630@redhat.com> <431cb39d-833c-6d02-d7b3-02b3e90446e2@redhat.com> <88e3b669-2998-41c0-83f7-de42a72a73e7@redhat.com> <20200304164717.GF646000@myrica> In-Reply-To: <20200304164717.GF646000@myrica> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjM2NzUyZWEtODNmZi00N2YzLThmYjAtYjcyM2I3MjVmYzQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRExuWnlNUTJIYWtPSHVNVzJuKzZxekEwczl4MU9hNG4yTXNmaGZjNEt2UzFUYUthc0xUQVFYSll0NGJjbm9KWSJ9 dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.100 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , =?iso-8859-1?Q?Daniel_P=2E_Berrang=E9?= , "kenneth-lee-2012@foxmail.com" , "tnowicki@marvell.com" , "Michael S. Tsirkin" , "quintela@redhat.com" , "zhangfei.gao@foxmail.com" , "qemu-devel@nongnu.org" , "peterx@redhat.com" , "dgilbert@redhat.com" , "bharatb.linux@gmail.com" , "qemu-arm@nongnu.org" , "Wangzhou \(B\)" , Zhangfei Gao , "eric.auger.pro@gmail.com" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" > From: Jean-Philippe Brucker > Sent: Thursday, March 5, 2020 12:47 AM > [...] > > > > > > * We can't use DVM in nested mode unless the VMID is shared with the > > > CPU. For that we'll need the host SMMU driver to hook into the KVM > VMID > > > allocator, just like we do for the ASID allocator. I haven't yet > > > investigated how to do that. It's possible to do vSVA without DVM > > > though, by sending all TLB invalidations through the SMMU command > queue. > > > " >=20 > Hm we're already mandating DVM for host SVA, so I'd say mandate it for > vSVA as well. We'd avoid a ton of context switches, especially for the zi= p > accelerator which doesn't require ATC invalidations. The host needs to pi= n > the VMID allocated by KVM and write it in the endpoint's STE. >=20 Curious... what is DVM and how is it related to SVA? Is it SMMU specific?