From patchwork Wed Aug 11 08:58:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 495151 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4766473jap; Wed, 11 Aug 2021 02:00:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8HFx9Jn0deDQ32lhHtNJZyH4UMNnPgsdYrGvGKbNzzH3f5jLlW27exPHj0zy77+4bSFDt X-Received: by 2002:a05:622a:14ca:: with SMTP id u10mr10078502qtx.338.1628672459442; Wed, 11 Aug 2021 02:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628672459; cv=none; d=google.com; s=arc-20160816; b=MlJfbG6MSdTCXgyfJPMFE/kGvwrikXGCKeGNaXkZbcS/H9xHt2quErIT83LnI86qoq opJGG3Ee1uAoUbBa40CsHzqHLhoVEFlg5qbO1lqLqKrr/WMEEBYSo9PhcOYtJy7flwH9 0oJR+S+V0EYb/qoJPK+6Gk+dMJ8/phuaFAZVEBpH/rw9cH8PF3nVYWNlOxCuioo8xxRp wxgnHmdXwe5AtFLSsdSX2vbjbpb6yeYn+PMSEEzs0N0HmxTfpm6SMr+cn8FpVQ5I9fuf HwoVO7qSirpuiPfsuiTte7ntZmIy2ZWI67qH49fjJU+WjX+9xS6+4W7mNgc7E3CC79+o sOmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=3qQBizcAPL+RunXn7IZ+1jfP3LDXeGB0/ACl5DPnxpE=; b=n0WbB/gpBNMBKCS0SrUTBo3rgAOxfDlD17Whi/uiUsjdK3OZyZi3E5Al1bC7RVWNX1 SFWnD8Bn12+kY3kb1vLYu3HaIppKl3FUndLw+ysuar9pDdZ6SzXcZkhQQcCcOGOjxcTD +2SHyRRNkmsAvF/aOwTl2xWmeNlxuMpSk9GURd1sntFbuMwRqqRn2KzqImmICZY8/iU6 goa418Zw2dJ0rksEQtGvI91yuucnt6lYFdD/PqtL3O4mj0sMS3S68XohMZBYWYhy+xpa waiVG2L6P9SFrGT+Oli5bLm20UQjrv+caqMBCvbEQ77oRSL/rNbo1z9Xfaxd/bwQr+qx bEeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dptSZxwV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q26si7703386qtr.55.2021.08.11.02.00.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Aug 2021 02:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dptSZxwV; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDk6c-00052Y-Rc for patch@linaro.org; Wed, 11 Aug 2021 05:00:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDk5q-000528-7L for qemu-devel@nongnu.org; Wed, 11 Aug 2021 05:00:10 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:44847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDk5o-0003vJ-LR for qemu-devel@nongnu.org; Wed, 11 Aug 2021 05:00:09 -0400 Received: by mail-wr1-x42c.google.com with SMTP id x12so1965465wrr.11 for ; Wed, 11 Aug 2021 02:00:07 -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:mime-version :content-transfer-encoding; bh=3qQBizcAPL+RunXn7IZ+1jfP3LDXeGB0/ACl5DPnxpE=; b=dptSZxwVF/YvsHzNAFeZw2PzFBqbivgpS8X5MDTo3MHSNDhOm2FZm19pgvv4bdr7g3 hxxpEk0+P/6JaIsxrMjC3fF0dfeJfr9Ub7pHJ9ylNROr94RN4MBonD6yLyNcFyueu7P9 DbFU8N7MNSw6sry+m5F/nZaah5Xroe4/+g3DIjV+rDA9oVKA5/CCbwtpPkJhmZCDmJTm Ok7CxT21e/nDm8ME2a+oYDZR/8T1e+RcVVyK9v15qnQ1OSP5UiT+rVCyUJvmOGEDINoJ A5GLXeVKBpI5L452B3ngly+iMHG12I41dGu6j3d3Gee8ccY9SsQT3C46zYwJ1qolEgDh klPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3qQBizcAPL+RunXn7IZ+1jfP3LDXeGB0/ACl5DPnxpE=; b=Krcp9FsXalAtEmKStnt38dPTok9ne8+GSr8Qd1ZvJ4aULgPBRKUmRC9v3bDR6DUfjW C5jTnBnvlhdDtEjNLxN8YcAASLclTd5FIRi7La7ms3dIha5Y/OiYRxfXy5lKbAFQCnTQ DRR2aQKS8RmKNQDcsU4WGK3ETzDqZ8AzniuRoLaiqjWG0cWi9xXPvxvV2Vt1BLGGqRdW NyYptC87M/JBUkUTJ9yA/I6XeZXwFI4w//B31Km6wnZ0lkhcJpHsfwdMvasWajx1vN2f fmhodpfQE2XkXQRxKwiisn2jzTg41L7JjDStGdd34qFVSeE09B2cSDMC+Qr47bHvBwHy h0Nw== X-Gm-Message-State: AOAM530fyVbTIJPBvSnguMTu3X+IGOTmBQvcIZWvnR1vqJbf2dTlpKUn rjv0//9LnlinJ307JFZzUuRjrg== X-Received: by 2002:a5d:4846:: with SMTP id n6mr18611226wrs.91.1628672406410; Wed, 11 Aug 2021 02:00:06 -0700 (PDT) Received: from localhost.localdomain (adsl-84-226-111-173.adslplus.ch. [84.226.111.173]) by smtp.gmail.com with ESMTPSA id q5sm26227538wrx.33.2021.08.11.02.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 02:00:05 -0700 (PDT) From: Jean-Philippe Brucker To: pbonzini@redhat.com Subject: [PATCH 1/2] hw/arm/virt: Rename default_bus_bypass_iommu Date: Wed, 11 Aug 2021 10:58:42 +0200 Message-Id: <20210811085842.2511545-1-jean-philippe@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=jean-philippe@linaro.org; helo=mail-wr1-x42c.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=ham 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 , armbru@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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=on qemu-system-aarch64: Property 'virt-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: 6d7a85483a06 ("hw/arm/virt: Add default_bus_bypass_iommu machine option") Signed-off-by: Jean-Philippe Brucker --- hw/arm/virt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.32.0 Reviewed-by: Eric Auger Tested-by: Eric Auger diff --git a/hw/arm/virt.c b/hw/arm/virt.c index b4598d3fe6..7075cdc15e 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2671,10 +2671,10 @@ static void virt_machine_class_init(ObjectClass *oc, void *data) "Set the IOMMU type. " "Valid values are none and smmuv3"); - 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 bus");