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=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 4FD98C43331 for ; Fri, 3 Apr 2020 14:49:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20AFE206E9 for ; Fri, 3 Apr 2020 14:49:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SvteODAS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390915AbgDCOt1 (ORCPT ); Fri, 3 Apr 2020 10:49:27 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:24493 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727431AbgDCOt0 (ORCPT ); Fri, 3 Apr 2020 10:49:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585925365; 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=2yQcmseEyeVg6GPm96uWfFnmAMUahKPoXBAjzFAW3yI=; b=SvteODAShmkpdQg4Zz/rFbjlTBB194bWfG7pr8s2eejjrN/sL3jRy218fwL2D8OjCYGYzE wiZlZi6E4U/7dLfcROjFe2juAtQDHSqgtDurI0O5eUma2kqhdIFZNRqZm7S4tee+BgIro+ soTlzD/6gdwxJl55RQNCeURJgeu/6mo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-38--4MazU2GN-akwzbiQ9G4fw-1; Fri, 03 Apr 2020 10:49:23 -0400 X-MC-Unique: -4MazU2GN-akwzbiQ9G4fw-1 Received: by mail-wm1-f71.google.com with SMTP id j18so2144466wmi.1 for ; Fri, 03 Apr 2020 07:49:23 -0700 (PDT) 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=2yQcmseEyeVg6GPm96uWfFnmAMUahKPoXBAjzFAW3yI=; b=mHe2FsrOLi/ZStUqzp15H/Lw1JBD0J9Xm0Gv2yRr6yd7nrmTSxcsHFd5gOAFrF1EB7 9OXzjhappBW6psgoLIbUSkLdygHYHHJZlbxCCEr5sWLhE6fU44D3ah5rBybmfTozRGoO Eu0sToyEdpDHBaLaeUMvWJRtcDEJpQdKSyPy/bmWeUlppWa2EToQ5/nBQUa4i3U1MGc0 2QMe0/OskfU42YWvxtl0b2xgP85eOobp9TnuOiR+qL+8yMNIGm0CA7cZzLfH8PoK3Ajx 6hDL/Um4Yof+F4Nq+aNM24FjBc5LZRZZzcibigCLuvCKOB1Omk//SI1oVZEQhD1cCnuU K/Nw== X-Gm-Message-State: AGi0PuakjTP6316aNT9Cb1Zfps1z1XLTEAc2BI4+t1BacdxhodoLdB3H Z3jdbKU4Li7EmqQSRcd1uX1LsFSLpLQ/jHK9ujn/UR1+E4/TINn8ATyzyyfpD8LDQE1FM1f9L3W wNHi1UfZYomdD X-Received: by 2002:a5d:4844:: with SMTP id n4mr1876788wrs.314.1585925362128; Fri, 03 Apr 2020 07:49:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0AZHkfLKjPMnhj2b2pI772WnqimjJzNleJGck0W25rIEhP0qlqVTo5gotJo7M/k58Z4J98w== X-Received: by 2002:a5d:4844:: with SMTP id n4mr1876773wrs.314.1585925361963; Fri, 03 Apr 2020 07:49:21 -0700 (PDT) Received: from xz-x1 ([2607:9880:19c0:32::3]) by smtp.gmail.com with ESMTPSA id a13sm12168426wrh.80.2020.04.03.07.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:49:21 -0700 (PDT) Date: Fri, 3 Apr 2020 10:49:16 -0400 From: Peter Xu To: Liu Yi L Cc: qemu-devel@nongnu.org, alex.williamson@redhat.com, eric.auger@redhat.com, pbonzini@redhat.com, mst@redhat.com, david@gibson.dropbear.id.au, kevin.tian@intel.com, jun.j.tian@intel.com, yi.y.sun@intel.com, kvm@vger.kernel.org, hao.wu@intel.com, jean-philippe@linaro.org, Jacob Pan , Yi Sun , Richard Henderson , Eduardo Habkost Subject: Re: [PATCH v2 22/22] intel_iommu: modify x-scalable-mode to be string option Message-ID: <20200403144916.GM103677@xz-x1> References: <1585542301-84087-1-git-send-email-yi.l.liu@intel.com> <1585542301-84087-23-git-send-email-yi.l.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1585542301-84087-23-git-send-email-yi.l.liu@intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Sun, Mar 29, 2020 at 09:25:01PM -0700, Liu Yi L wrote: > Intel VT-d 3.0 introduces scalable mode, and it has a bunch of capabilities > related to scalable mode translation, thus there are multiple combinations. > While this vIOMMU implementation wants simplify it for user by providing > typical combinations. User could config it by "x-scalable-mode" option. The > usage is as below: > > "-device intel-iommu,x-scalable-mode=["legacy"|"modern"|"off"]" > > - "legacy": gives support for SL page table > - "modern": gives support for FL page table, pasid, virtual command > - "off": no scalable mode support > - if not configured, means no scalable mode support, if not proper > configured, will throw error > > Note: this patch is supposed to be merged when the whole vSVA patch series > were merged. > > Cc: Kevin Tian > Cc: Jacob Pan > Cc: Peter Xu > Cc: Yi Sun > Cc: Paolo Bonzini > Cc: Richard Henderson > Cc: Eduardo Habkost > Signed-off-by: Liu Yi L > Signed-off-by: Yi Sun Reviewed-by: Peter Xu -- Peter Xu 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=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,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 2A29AC43331 for ; Fri, 3 Apr 2020 14:50:17 +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 E8173206F5 for ; Fri, 3 Apr 2020 14:50:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BDmknDBb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8173206F5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:56546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNeC-0002Gx-2I for qemu-devel@archiver.kernel.org; Fri, 03 Apr 2020 10:50:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44780) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNdO-0001qf-GI for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKNdN-0000dv-GH for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:49:26 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:40985 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKNdN-0000cd-CB for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:49:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585925364; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XqIFfPaja508cOpcL0/rROrYdrZZLRizsRZBk78lhoE=; b=BDmknDBbOyjNot7EUg6+cj1OscRKkKOT6t3nJvqKIlYDzPlzH0hq/UhfTc4DN6UAPz8WNg GeNd/HAK0RqLqLuUFO7L63PAjIRTlF3z1NPbI5Kgt3Ysw/F//X8V+jQX+3LOM4E9CQp6uz BtuASV+oVvjamU70vrwCnFuGh7I488g= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-231--ByamJX3M62NIlSO_wUiOw-1; Fri, 03 Apr 2020 10:49:23 -0400 X-MC-Unique: -ByamJX3M62NIlSO_wUiOw-1 Received: by mail-wm1-f71.google.com with SMTP id e16so2134563wmh.5 for ; Fri, 03 Apr 2020 07:49:23 -0700 (PDT) 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=2yQcmseEyeVg6GPm96uWfFnmAMUahKPoXBAjzFAW3yI=; b=L+FWs31GqQ/Cbedh44ifHhH9Q+aqSYk+tOhKSYZLQ0Etwd+arqvOPWVMxrM01ZnUBS useC/fOMQ98PBag50Df48kx93Clriqe1bJc+ib7lrMeL0FK5US7vXiBGarsH/nNfbay7 weBvkF23bVGY4DkhMaOV0fZ+SF1gW/WTsMtCTZJBvJCPWE8i0uMDVNlN55zvtAtP/jVo HFoH9ZxnEnilMqtXlC85KA+w5qoIxClle1YKmePJJ+aJ6/vQFa+aXhV161ASmh909LXh DWJRNn6IEqEHZ95u+YoiO3QD6SPH79ENdXcVgIMIPPY+pnCh8xH2WlvU/u9WVjB3WXyX TeSw== X-Gm-Message-State: AGi0PuZrp5WjQ7m3LbPatTj6Pa7r1zZeY2MRHS1WffrW45Oc6FnmKNZD +bBSBuKU8Z3bOyIuzwb7XN4/5cA+No8QfkYJA8nOaEoJAjmo4nT8VDZk6PzO4JciOvsYuTqovF3 qW+ricUi8ZgUjMpM= X-Received: by 2002:a5d:4844:: with SMTP id n4mr1876789wrs.314.1585925362129; Fri, 03 Apr 2020 07:49:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0AZHkfLKjPMnhj2b2pI772WnqimjJzNleJGck0W25rIEhP0qlqVTo5gotJo7M/k58Z4J98w== X-Received: by 2002:a5d:4844:: with SMTP id n4mr1876773wrs.314.1585925361963; Fri, 03 Apr 2020 07:49:21 -0700 (PDT) Received: from xz-x1 ([2607:9880:19c0:32::3]) by smtp.gmail.com with ESMTPSA id a13sm12168426wrh.80.2020.04.03.07.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:49:21 -0700 (PDT) Date: Fri, 3 Apr 2020 10:49:16 -0400 From: Peter Xu To: Liu Yi L Subject: Re: [PATCH v2 22/22] intel_iommu: modify x-scalable-mode to be string option Message-ID: <20200403144916.GM103677@xz-x1> References: <1585542301-84087-1-git-send-email-yi.l.liu@intel.com> <1585542301-84087-23-git-send-email-yi.l.liu@intel.com> MIME-Version: 1.0 In-Reply-To: <1585542301-84087-23-git-send-email-yi.l.liu@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 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: jean-philippe@linaro.org, kevin.tian@intel.com, Jacob Pan , Yi Sun , Eduardo Habkost , kvm@vger.kernel.org, mst@redhat.com, jun.j.tian@intel.com, qemu-devel@nongnu.org, eric.auger@redhat.com, alex.williamson@redhat.com, pbonzini@redhat.com, hao.wu@intel.com, yi.y.sun@intel.com, Richard Henderson , david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Sun, Mar 29, 2020 at 09:25:01PM -0700, Liu Yi L wrote: > Intel VT-d 3.0 introduces scalable mode, and it has a bunch of capabiliti= es > related to scalable mode translation, thus there are multiple combination= s. > While this vIOMMU implementation wants simplify it for user by providing > typical combinations. User could config it by "x-scalable-mode" option. T= he > usage is as below: >=20 > "-device intel-iommu,x-scalable-mode=3D["legacy"|"modern"|"off"]" >=20 > - "legacy": gives support for SL page table > - "modern": gives support for FL page table, pasid, virtual command > - "off": no scalable mode support > - if not configured, means no scalable mode support, if not proper > configured, will throw error >=20 > Note: this patch is supposed to be merged when the whole vSVA patch seri= es > were merged. >=20 > Cc: Kevin Tian > Cc: Jacob Pan > Cc: Peter Xu > Cc: Yi Sun > Cc: Paolo Bonzini > Cc: Richard Henderson > Cc: Eduardo Habkost > Signed-off-by: Liu Yi L > Signed-off-by: Yi Sun Reviewed-by: Peter Xu --=20 Peter Xu