From nobody Sun Dec 14 06:17:14 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1750244086; cv=none; d=zohomail.com; s=zohoarc; b=V7X8OMYfWtJsyxatGEWsNLVgJFAwNMT91vxv/UkZqn+J6t1shfLFQfId6dZNgTZjJsw9wdopG4kuDl2y1+QuvbiKyIPZxbqS92CKmiX70hFN5hbzhcIu5Tb2wq4Ho8YhY5pMlnZ0+xVaoBrVM0uvWS4uash3ZDRIEGzLREtoIO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750244086; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=VBR/xnhip0DPO24OMB/E+1ic5Uk3HaFAtwRk1p5k1I4=; b=n0y2+sNtZWIMta0tF66uC4Il+R5pVZxCL006WzSvT62Nvhfylyi1p/Be/V2yS8YBwb7fk6uKHohQSIqxjND8LRiQVaL44cUn1cavaa9UO38j8UdhJOc3PyVKYYmPBNW1AU0m3G2Ci7K/xEAL/75rEQoh5KG0SOePcHaqKyso41A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1750244086153773.7438298020869; Wed, 18 Jun 2025 03:54:46 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 3ECBC11B1; Wed, 18 Jun 2025 06:54:45 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id DD7491399; Wed, 18 Jun 2025 06:49:59 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 527EB1298; Wed, 18 Jun 2025 06:49:52 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 7ED6612B2 for ; Wed, 18 Jun 2025 06:49:36 -0400 (EDT) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-_XNUDByFMKSjYMMQHCclNg-1; Wed, 18 Jun 2025 06:49:35 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 34B7F18089B7 for ; Wed, 18 Jun 2025 10:49:34 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.226.79]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5267F18003FC for ; Wed, 18 Jun 2025 10:49:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1750243776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1nbmjGsCayE+dUps/0HtFiEnxYvjqljfeFpg3zkxLII=; b=EZR5yBbahFwVsTrTj5g1Egr7v/UiSCWzxTKtYnY2LUVx3N84AhtinXpfi0n/faeqtmZuu6 pQQ+sKXYvsBxbtTvYsTAEnsDmMTFq2YiRZtcVSuloV38iExG9gigAb+3N4fJfpoWB36/8M tVxPWgV3PyTeRn9JxTVgQJQ5oxzpMlY= X-MC-Unique: _XNUDByFMKSjYMMQHCclNg-1 X-Mimecast-MFC-AGG-ID: _XNUDByFMKSjYMMQHCclNg_1750243774 To: devel@lists.libvirt.org Subject: [libvirt PATCH v2 7/7] qemu: format pt and xstup on the command line Date: Wed, 18 Jun 2025 12:46:23 +0200 Message-ID: <33430dbdec9a46481ee023836582d8a9f9063f11.1750243583.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: j402GkCUiV_LGWFvFB7Mty8EoEn-QLYdIJLYxNg3mEs_1750243774 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: QXVM7CP75VZLDGSQVEWATB7ZZP2W6MHU X-Message-ID-Hash: QXVM7CP75VZLDGSQVEWATB7ZZP2W6MHU X-MailFrom: jtomko@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: =?utf-8?q?J=C3=A1n_Tomko_via_Devel?= Reply-To: =?UTF-8?q?J=C3=A1n=20Tomko?= X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1750244087570116600 Content-Type: text/plain; charset="utf-8" From: J=C3=A1n Tomko Signed-off-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa --- src/qemu/qemu_command.c | 2 ++ tests/qemuxmlconfdata/amd-iommu.x86_64-latest.args | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6fae9b1f5a..b752a828ba 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6227,6 +6227,8 @@ qemuBuildIOMMUCommandLine(virCommand *cmd, "s:driver", "amd-iommu", "s:pci-id", iommu->info.alias, "S:intremap", qemuOnOffAuto(iommu->intre= map), + "T:pt", iommu->pt, + "T:xtsup", iommu->xtsup, "T:device-iotlb", iommu->iotlb, NULL) < 0) return -1; diff --git a/tests/qemuxmlconfdata/amd-iommu.x86_64-latest.args b/tests/qem= uxmlconfdata/amd-iommu.x86_64-latest.args index 36244edb3a..20d7e379e6 100644 --- a/tests/qemuxmlconfdata/amd-iommu.x86_64-latest.args +++ b/tests/qemuxmlconfdata/amd-iommu.x86_64-latest.args @@ -27,7 +27,7 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -no-shutdown \ -boot strict=3Don \ -device '{"driver":"AMDVI-PCI","id":"iommu0","bus":"pcie.0","addr":"0x1"}'= \ --device '{"driver":"amd-iommu","pci-id":"iommu0","intremap":"on","device-i= otlb":true}' \ +-device '{"driver":"amd-iommu","pci-id":"iommu0","intremap":"on","pt":true= ,"xtsup":true,"device-iotlb":true}' \ -audiodev '{"id":"audio1","driver":"none"}' \ -global ICH9-LPC.noreboot=3Doff \ -watchdog-action reset \ --=20 2.49.0