Received: by 2002:a17:906:3588:b0:a45:b507:d90a with SMTP id o8csp1151740ejb; Thu, 7 Mar 2024 05:49:27 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUhYvXkLJC2vzMRdP5sao8vNzp7Wwm4Q1XZ8iLV3zdyqaQqs1OkFRMilJdG6DHshbkDs9nYvvGGSRZDI0U3hrU8LRMefMic X-Google-Smtp-Source: AGHT+IFC3/Tto8OzWoGRp9Mez8vL50yB4XDA8CpRwImxpr2bD/rKM74sZgUKpdcylrJf0T8LOKnC X-Received: by 2002:a05:620a:4410:b0:788:3dff:c17e with SMTP id v16-20020a05620a441000b007883dffc17emr2176725qkp.12.1709819366968; Thu, 07 Mar 2024 05:49:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709819366; cv=none; d=google.com; s=arc-20160816; b=SeCazJ9GR5jyq9/eaKDJAEKNfdWwmzbuvBu+m4AJMlHcPfqhSYPX1OFTl430duPW1g 8SbulZa4gvUJqfWlOwX/nTiRgoYUWo9t6ymXK5Im5djSS6Duv4z4NwCwOuIjqticT36n nB9R/wXDiaFnxYDhpsRk07l8jjQ05+LjSIH4P6NqqnOkcyGhGzaEhFuDTH2g8NK9f3e3 rYjABJ5WqQr2NdwqFObIj/nj7yhFqdLZWVV+KgFhWuDr5DqeroR8OhLLiyFqHjglLItg dEY9M9hFDary0pu3PyqPIHC+gplB+Q91LG6PliP63kPyXMHxJRrpCrXFGycSLUHwmXUN oKZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LuqhxuaXHnZuXhFECH4rZglZe6XiMM07102AtConlIs=; fh=RVuuaU7Ghp1omAcM/aHHQKcSvJxs+IjfJSTvOY2eDr8=; b=DDhXl2mCXDeDPZoWhrBQMpkO4VDnEVumYJdVzO5ciyvye59R9z47aaCXbO3inVgE8U s2MmCwmc4YeyuexTJAmTTL/ehUYS7HD1/959O/k7OIwOue/UZM7f0y3ZNEATGToWqOle Uxwxc7WH5r+yHRG4n6oHSjhTkG6F9GWXDU+iQEJg7UdnE2gxk3tZbme1fhQWpi5/IfvD n0NlnSQ/0ySv4AVJaqfF8hqCQ8kaTakbngLJw/wYKJCAJCPvtwqIwibIGQIXxtVkWES7 PeVVRO15d+KNPhsYYyu6/yG1+XZM1F+OSih5wOCY66MgOt2mar+xwF3ULJ8oCkb8RJKl 8DIw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OmzbtbaJ; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id po25-20020a05620a385900b007883f9bb7f8si3190126qkn.579.2024.03.07.05.49.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2024 05:49:26 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OmzbtbaJ; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riE7H-0006mp-8s; Thu, 07 Mar 2024 08:48:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riE4H-00057V-FY for qemu-arm@nongnu.org; Thu, 07 Mar 2024 08:46:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riE3i-0007FH-7W for qemu-arm@nongnu.org; Thu, 07 Mar 2024 08:45:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709819110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LuqhxuaXHnZuXhFECH4rZglZe6XiMM07102AtConlIs=; b=OmzbtbaJu50uxMiOgzPKANnNyEOV/aN/sZn9L+GEB4rXIyOFkDyTGizkozILC9we0Y1EM9 2vE3QrSdLywnwm6bisunXQ+NgZaNG4YLcoAaVnNTqcR8K+0hfS2s9eqGbHWiBzlDU4p8q8 QaHmy8MgcoT2sAozwr1MTiMyrJnfvE8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-163-RnpKO7mYM_aTOKBwda9c8g-1; Thu, 07 Mar 2024 08:45:07 -0500 X-MC-Unique: RnpKO7mYM_aTOKBwda9c8g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0909E101CC70; Thu, 7 Mar 2024 13:45:07 +0000 (UTC) Received: from laptop.redhat.com (unknown [10.39.193.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C22B17AA8; Thu, 7 Mar 2024 13:45:03 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, mst@redhat.com, jean-philippe@linaro.org, imammedo@redhat.com, peter.maydell@linaro.org, clg@redhat.com, yanghliu@redhat.com, zhenzhong.duan@intel.com Cc: alex.williamson@redhat.com, jasowang@redhat.com, pbonzini@redhat.com, berrange@redhat.com Subject: [PATCH v8 4/9] qemu-options.hx: Document the virtio-iommu-pci granule option Date: Thu, 7 Mar 2024 14:43:05 +0100 Message-ID: <20240307134445.92296-5-eric.auger@redhat.com> In-Reply-To: <20240307134445.92296-1-eric.auger@redhat.com> References: <20240307134445.92296-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Received-SPF: pass client-ip=170.10.129.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.583, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: Q1oRqcFke1Rx We are missing an entry for the virtio-iommu-pci device. Add the information on which machine it is currently supported and document the new granule option. Signed-off-by: Eric Auger --- v7 -> v8 - precise x86_64 and ARM --- qemu-options.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 9a47385c15..379792a215 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1172,6 +1172,14 @@ SRST Please also refer to the wiki page for general scenarios of VT-d emulation in QEMU: https://wiki.qemu.org/Features/VT-d. +``-device virtio-iommu-pci[,option=...]`` + This is only supported by ``-machine q35`` (x86_64) and ``-machine virt`` (ARM). + It supports below options: + + ``granule=val`` (possible values are 4k, 8k, 16k, 64k and host; default: host) + This decides the default granule to be be exposed by the + virtio-iommu. If host, the granule matches the host page size. + ERST DEF("name", HAS_ARG, QEMU_OPTION_name, -- 2.41.0