From nobody Fri Apr 26 10:35:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 163414152654959.68847813574848; Wed, 13 Oct 2021 09:12:06 -0700 (PDT) Received: from localhost ([::1]:52188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1magrN-0003bB-Gn for importer@patchew.org; Wed, 13 Oct 2021 12:12:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1magpE-0000pC-Av for qemu-devel@nongnu.org; Wed, 13 Oct 2021 12:09:52 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1magpB-00026c-Nt for qemu-devel@nongnu.org; Wed, 13 Oct 2021 12:09:52 -0400 Received: by mail-wr1-x435.google.com with SMTP id r7so10113878wrc.10 for ; Wed, 13 Oct 2021 09:09:49 -0700 (PDT) Received: from localhost.localdomain (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id v18sm10482wrm.63.2021.10.13.09.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 09:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z51t1fm0QsaKEHQ5rRMvH9Hl6mH6z+8WE2S3J3iChmU=; b=tSBlQqCmtW3+tNkD7++WE0hGCZYdcvpBFnnCAad08v6Gu7mEOmmV2XpiOb0R2tfx0n yVzNxDNbPtagQ/1G/VOzF8nXAZlqTaUPK+A23Alo07eA9EjhdzRRw+cujoSGmyTQugfu Ervj/EZxN3ai7R6+K0UlOQ1XXtrrchUCmPwzJ7ifSh+zcKFnGKXzDywzvWrdyhwj/bIq VeM99t4N6ZnfRhKZuxkXzEn0MnXgAdmPBT0Ww7c5lfClKb5VsJNVK1BwOzxIU9maoaDd QLq7CKDW3LefU7sYcm1RUlmwL6ZPM1PYcgPqkl+hVeFo4wB74QkR2jp+kw+7KDlOtlKB 5Z9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z51t1fm0QsaKEHQ5rRMvH9Hl6mH6z+8WE2S3J3iChmU=; b=5HVeM1O3JqKDSQZ9njTSu3tY3hCkq2GtQptAfcq4kaY0JSij+gR4fo8lC0rRztHQvn 9S8FVjw1+j9ZuHwEreWLwWMjCRfFAFsOLy+uB1XAmuQOt0qSVUITUhjiuOMQgjEe2Ihp nVTcm/M+UAPpnKjLtuf+n8SpY6nM4A2NSJaFOCyIoCQ8fmwjKTW895uJ1CklVGzKrzTc H5ywTYd4KtcH76cpMreGpXzbVsZ414ocweTlv35scnf7gz9503KXkbwzwb7AVDPE4rA/ VOkwKyPbIaUuzYMUktmekL5o7Z3A3JbMHcfCH+iISHsBjhKYb6YLpsUunYkJTVysG80d U5Vw== X-Gm-Message-State: AOAM5309u/rwquw17+Vy/6YE+k3gvxiB9pyA6coCX9dxMFJUn/7CVx2z PDHM+Ji7RkOPZyRNRdz5G5h8kQ== X-Google-Smtp-Source: ABdhPJwohxGE8lqOYDCkp4r0jUpmaa8EM5UVmDFowg7JStrBAQMf3wOW56Q0eAZzF1D4cSTmSanUKg== X-Received: by 2002:adf:b1d7:: with SMTP id r23mr20474wra.145.1634141388328; Wed, 13 Oct 2021 09:09:48 -0700 (PDT) From: Jean-Philippe Brucker To: pbonzini@redhat.com, peter.maydell@linaro.org Subject: [RESEND PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Date: Wed, 13 Oct 2021 17:06:07 +0100 Message-Id: <20211013160607.649990-2-jean-philippe@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211013160607.649990-1-jean-philippe@linaro.org> References: <20211013160607.649990-1-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=jean-philippe@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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 Brucker , ehabkost@redhat.com, mst@redhat.com, qemu-devel@nongnu.org, richard.henderson@linaro.org, armbru@redhat.com, qemu-stable@nongnu.org, Eric Auger , eauger@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1634141528033100001 Content-Type: text/plain; charset="utf-8" Since commit d8fb7d0969d5 ("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, because keyval_dashify() transforms them to dashes and the parser doesn't find the parameter. This affects option default_bus_bypass_iommu which was introduced in the same release: $ qemu-system-aarch64 -M virt,default_bus_bypass_iommu=3Don qemu-system-aarch64: Property 'virt-6.1-machine.default-bus-bypass-iommu' n= ot found Rename the parameter to "default-bus-bypass-iommu". Passing "default_bus_bypass_iommu" is still valid since the underscore are transformed automatically. Fixes: 6d7a85483a06 ("hw/arm/virt: Add default_bus_bypass_iommu machine opt= ion") Reviewed-by: Eric Auger Tested-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 7170aaacd5..5fdd5aa888 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2687,10 +2687,10 @@ static void virt_machine_class_init(ObjectClass *oc= , void *data) "Set the IOMMU type. " "Valid values are none and smmuv= 3"); =20 - object_class_property_add_bool(oc, "default_bus_bypass_iommu", + object_class_property_add_bool(oc, "default-bus-bypass-iommu", virt_get_default_bus_bypass_iommu, virt_set_default_bus_bypass_iommu); - object_class_property_set_description(oc, "default_bus_bypass_iommu", + object_class_property_set_description(oc, "default-bus-bypass-iommu", "Set on/off to enable/disable " "bypass_iommu for default root b= us"); =20 --=20 2.33.0 From nobody Fri Apr 26 10:35:18 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1634141731324432.91167454112895; Wed, 13 Oct 2021 09:15:31 -0700 (PDT) Received: from localhost ([::1]:57924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1magug-0007Rp-CH for importer@patchew.org; Wed, 13 Oct 2021 12:15:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1magpG-0000sQ-Nb for qemu-devel@nongnu.org; Wed, 13 Oct 2021 12:09:54 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:39744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1magpC-00026q-ML for qemu-devel@nongnu.org; Wed, 13 Oct 2021 12:09:53 -0400 Received: by mail-wr1-x436.google.com with SMTP id r18so10124558wrg.6 for ; Wed, 13 Oct 2021 09:09:50 -0700 (PDT) Received: from localhost.localdomain (cpc92880-cmbg19-2-0-cust679.5-4.cable.virginm.net. [82.27.106.168]) by smtp.gmail.com with ESMTPSA id v18sm10482wrm.63.2021.10.13.09.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 09:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Sivj80yDIiOP5VpyG1S6/rDmp/L3z3yozBqSD5N66KA=; b=PzKhDYbYevofByY3ICIlK+du3i/exCYeCRYYQpjaxRW7OGIU+KTXJfj9gHwgs/Utbw p8peivcca/HTvFlFDHKNs5+T7iEWvf11CLAvr67YW+XiSW3mA1TMhHsXIEdbC9i71Je9 9W3BLUIV0abFh3kOM06RIBGzAh8Gcjhk9RkSPBFWqqJeemrCmNR6Whd21wsp5fDo/WG/ VmuOJAFnO5RVkk5Z2F4xCoiagXk23Q4SX6mbNjYPu5v1Ul41c++G3jeOWl4iB3eUopmF hdixWYbiwdazMf5/wrFf1RwFe5VKtSDap3zlulxBOnl+AcjpHbMlXPJvZghQ8iKxiy0W i8dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sivj80yDIiOP5VpyG1S6/rDmp/L3z3yozBqSD5N66KA=; b=hQn6yNmoZ0qFE1+9AtwrOeT9CxuQFGNOo8e9/Lbgeb84f8sSUwYL28Gan/QoNI5aP5 pJSa6+NXq9odnRFUix8ZoN7LzHMK86B2f2bfhqTWB3IasDUaifY7PYrfT9jmkTA/Cl/v kDsZLS+DRoO5SQOHtVLDGz9UJf2b5B5SA/QN2Uac3A3nbJsyizic+DsTgudJIX7/yxSr K3srg/oCFixBet5BhXXASe5Qw63Oa0aZ1LVMBaKa1F2rPwBd8wAQEIgqHGvsqauu8Ei+ o820Xr34n1zutLRVVVuHTEELptMqNA3hKN5eGdUc5btCZdxxzv1nGQIQbT4uGWk8BAFu sm1A== X-Gm-Message-State: AOAM533V74fDOd1laRMfH/qX2TFhWul79bK3nBVuZHN+jilFBBqq2Ry+ Q0HwEJ4/S9mdtpRy+YyN+xPxDg== X-Google-Smtp-Source: ABdhPJyUw1TVUfh7+rdheCbb5h7bo355erDm2PDwrfjiup2YoWUtqlPqPo4MsWlfYLsb3kOhzabH6Q== X-Received: by 2002:adf:bc14:: with SMTP id s20mr95171wrg.8.1634141389277; Wed, 13 Oct 2021 09:09:49 -0700 (PDT) From: Jean-Philippe Brucker To: pbonzini@redhat.com, peter.maydell@linaro.org Subject: [RESEND PATCH 2/2] hw/i386: Rename default_bus_bypass_iommu Date: Wed, 13 Oct 2021 17:06:08 +0100 Message-Id: <20211013160607.649990-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211013160607.649990-1-jean-philippe@linaro.org> References: <20211013160607.649990-1-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=jean-philippe@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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 Brucker , ehabkost@redhat.com, mst@redhat.com, qemu-devel@nongnu.org, richard.henderson@linaro.org, armbru@redhat.com, qemu-stable@nongnu.org, Eric Auger , eauger@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1634141733385100003 Content-Type: text/plain; charset="utf-8" Since commit d8fb7d0969d5 ("vl: switch -M parsing to keyval"), machine parameter definitions cannot use underscores, because keyval_dashify() transforms them to dashes and the parser doesn't find the parameter. This affects option default_bus_bypass_iommu which was introduced in the same release: $ qemu-system-x86_64 -M q35,default_bus_bypass_iommu=3Don qemu-system-x86_64: Property 'pc-q35-6.1-machine.default-bus-bypass-iommu' = not found Rename the parameter to "default-bus-bypass-iommu". Passing "default_bus_bypass_iommu" is still valid since the underscore are transformed automatically. Fixes: c9e96b04fc19 ("hw/i386: Add a default_bus_bypass_iommu pc machine op= tion") Reviewed-by: Eric Auger Tested-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 86223acfd3..54e4c00dce 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1718,7 +1718,7 @@ static void pc_machine_class_init(ObjectClass *oc, vo= id *data) object_class_property_add_bool(oc, "hpet", pc_machine_get_hpet, pc_machine_set_hpet); =20 - object_class_property_add_bool(oc, "default_bus_bypass_iommu", + object_class_property_add_bool(oc, "default-bus-bypass-iommu", pc_machine_get_default_bus_bypass_iommu, pc_machine_set_default_bus_bypass_iommu); =20 --=20 2.33.0