From patchwork Sun Dec 15 19:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850985 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2521283wry; Sun, 15 Dec 2024 11:10:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWNAdEYIwSR5+JfPSpmDgiiHItoozcEG2xpzOLEPJm2SoOaiy8m9qFcTXTPUq2JuByNACaHgw==@linaro.org X-Google-Smtp-Source: AGHT+IGFXKDcsyNKCTGq62d+XVQakqWXdHNN72A14a/JMvmf3JzBPrtqPo1bLu9tLdETxK8sYDRi X-Received: by 2002:a05:620a:1925:b0:7b6:d5cb:43b0 with SMTP id af79cd13be357-7b6fbf3b8bdmr1294980285a.39.1734289809024; Sun, 15 Dec 2024 11:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734289809; cv=none; d=google.com; s=arc-20240605; b=cj+T7Yms9/zioGT5cB7XKRzaetddk1rRwlwWYluUUOsDRxC3iq3X/ibPAMEQ/OYUBD 6ENBwOiy8pnpodj4UzBjY3a9Cewdnwnf0GOVh53l9L/tdnZc5KCT9f/aiKnZMbtgt7+Y 36TBWxgbF0nmbCuXq3pCDZETAINU2kMqSIGBIvoycagrvt173hgKI8qCHOmAFo0GJSKW jJAYUm0LZ8Dx90WXM5oHvu+c9AEdnKE/d4yaKtzwQCpctyW8RDr1USGlDUBQhb4K7EUX BCrpOBfCNrXkc6Z+NDxsb3luwSgo8hrBHuQaxsewdP8B7ZUtbViSL0JcjTdC+uid+wwL a1AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; fh=vkIKEHcwKJya0eJ7ZEuSZlQ+z9UQVjOKAU0iaZuC/Ks=; b=VdhkeueCdzWTlaoIYEd3mDMn3mR6WHodwdVxIf2q8CnTKFUBzUoIHb5Px0o4q/IFp6 wJU2W0tqZwKpndscOj1sEBgSCqnCS6S+3MN7kUP55UmvSAqj1PiGbPKLYnoyeqvf3m3a XVsu60zqlld4/o61gyl9PDnjxTNqJ5rgs4ClZc8aLFvQ1nh5RbYpOn1v7R7oDPJBffXb MYEqDuTV9elr7qeXP0urr/8q1z6YKiflfPCR0Il1oRaVDbLJq5V2OQa//csZ4PelueEy KHXvkZbE1qrtj7wQnQ9rkn6qrV/EuqixqQ1xhTx6nIixox1ZDXtSXWrH+7/wL8z6al/c IzRg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsXtiugm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b7048c01f2si507977885a.249.2024.12.15.11.10.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:10:09 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=DsXtiugm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtwm-0001br-94; Sun, 15 Dec 2024 14:06:32 -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 1tMtwc-0001MV-7Q for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:22 -0500 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtwa-0001Bu-DR for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:21 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-2a3d8857a2bso799143fac.1 for ; Sun, 15 Dec 2024 11:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289578; x=1734894378; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; b=DsXtiugmRaKyUvqp4JfXvlKY0pKoGOO0ckAieOrPXmpsOgcv8YislfzVerAXPlf3wA D9PJppfAYshghRNX3W+L/95WjXUVCXcZ2Sj2MaQApRkmi8BDsvXlYK5rDukLjl9hUOlZ XwssevfJ23nLhIkC4ZVVOyjqnb+/Nj6KatHaf3t1IKAGqzGn06/zfoBlKfbYSX1j4FPu cIQnGhoobgaJ8mXc+Ah30bxDoU9X6zeU9fhyOKa9iL9ZqL3u6e8/nAsLsd0tWEDBdK+P A/y2/2RidU0wdL7sWCY4AsPBkRQWILsBaTOSJ9KDN9zQJiOFS7e/SKGOTxLn1NaSjxyk sXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289578; x=1734894378; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=; b=kOYyKNE7JJvLzxQoOYqZ4pA4qa5NfRtRsAUqlYanBo8bN47nKeliuvnwwIKy9RlBvj siE0wfVxpgqFXVnTmJVCAIEkKeITsiEBk5t1qc/v9xfph4/J6mBO5QzigNOMfzMJJlVr vv38WgeZfn1moud4WxkkSq6BfuPLyyjaGuYRqRGHUWGRoq/zHP1OukuztEaAf88zZHty 1Mq20LeveiTmILfzpxHlizKOIt1E99lMiuPzlgESWRw1EAi1jM9xRyCBupdaaDonNRYb ufjUtBGYNNrFtaR/C2n6fNpPpIvdu7mKSL8YJJOECTaO5KcGwGUUnqyL2zNwx6hWq65S 86gg== X-Gm-Message-State: AOJu0YyGumXe/4P3etUx14biTiV8bixaYHzOkd5KLcCpVB1K0Xy5idUN 7ELawpDdUzESKpuXJHLiuoRrc5i9dW0T0TgF6Zt1tMzuV15CM2lUrcWUi6gRbUKzKJ68/I+y3RF 0+clTUDiz X-Gm-Gg: ASbGncvJ52bcJHnvTlv7c+zOV0An5Jimnk80WJxNjA6XJr/gXqIy+umTZ9N66p//orU HjKoqGgIzXzdxRicmlXpbp6EvloJBF+tLl96Q4L8PobWeqdZ+5iOoSw3DZC4214G8kyxvF+HaWg x8U58mHZxpcqgApZyJMFi6fxG3d20v1tf8T5yXpNwPQiWOxMwo1Lsm1BjORhSD19jhcKKBCeRTH dNeTZGqpZdOpl3L/uwhL468TF8aU3qmdUuxxapY9GRobjJ+RbZP0kg+N9qzAFL0jhHu1nwwzl1y qGIIfciMt18ZLSYPyHuWbVfoYLB9aw29Qw49Wv0iFEU= X-Received: by 2002:a05:6870:8a0e:b0:29e:4d0e:a2b6 with SMTP id 586e51a60fabf-2a3ac61dc80mr5238322fac.10.1734289578074; Sun, 15 Dec 2024 11:06:18 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:06:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 28/67] hw/i386: Constify all Property Date: Sun, 15 Dec 2024 13:04:54 -0600 Message-ID: <20241215190533.3222854-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org> References: <20241215190533.3222854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x34.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 2 +- hw/i386/kvm/clock.c | 2 +- hw/i386/kvm/i8254.c | 2 +- hw/i386/kvm/ioapic.c | 2 +- hw/i386/sgx-epc.c | 2 +- hw/i386/vmmouse.c | 2 +- hw/i386/vmport.c | 2 +- hw/i386/x86-iommu.c | 2 +- hw/i386/xen/xen_pvdevice.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index af0f4da1f6..ca3e62a244 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1668,7 +1668,7 @@ static void amdvi_sysbus_realize(DeviceState *dev, Error **errp) amdvi_init(s); } -static Property amdvi_properties[] = { +static const Property amdvi_properties[] = { DEFINE_PROP_BOOL("xtsup", AMDVIState, xtsup, false), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 4c0d1d7d47..a5b268342f 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3404,7 +3404,7 @@ static const MemoryRegionOps vtd_mem_ops = { }, }; -static Property vtd_properties[] = { +static const Property vtd_properties[] = { DEFINE_PROP_UINT32("version", IntelIOMMUState, version, 0), DEFINE_PROP_ON_OFF_AUTO("eim", IntelIOMMUState, intr_eim, ON_OFF_AUTO_AUTO), diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 40aa9a32c3..71150ed2e0 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -305,7 +305,7 @@ static const VMStateDescription kvmclock_vmsd = { } }; -static Property kvmclock_properties[] = { +static const Property kvmclock_properties[] = { DEFINE_PROP_BOOL("x-mach-use-reliable-get-clock", KVMClockState, mach_use_reliable_get_clock, true), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index baa4b39582..2933d3f458 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -287,7 +287,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp) kpc->parent_realize(dev, errp); } -static Property kvm_pit_properties[] = { +static const Property kvm_pit_properties[] = { DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", KVMPITState, lost_tick_policy, LOST_TICK_POLICY_DELAY), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c index 2907b08164..217ff43b98 100644 --- a/hw/i386/kvm/ioapic.c +++ b/hw/i386/kvm/ioapic.c @@ -133,7 +133,7 @@ static void kvm_ioapic_realize(DeviceState *dev, Error **errp) qdev_init_gpio_in(dev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS); } -static Property kvm_ioapic_properties[] = { +static const Property kvm_ioapic_properties[] = { DEFINE_PROP_UINT32("gsi_base", KVMIOAPICState, kvm_gsi_base, 0), DEFINE_PROP_END_OF_LIST() }; diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c index d664829d35..c232e825e0 100644 --- a/hw/i386/sgx-epc.c +++ b/hw/i386/sgx-epc.c @@ -19,7 +19,7 @@ #include "target/i386/cpu.h" #include "exec/address-spaces.h" -static Property sgx_epc_properties[] = { +static const Property sgx_epc_properties[] = { DEFINE_PROP_UINT64(SGX_EPC_ADDR_PROP, SGXEPCDevice, addr, 0), DEFINE_PROP_UINT32(SGX_EPC_NUMA_NODE_PROP, SGXEPCDevice, node, 0), DEFINE_PROP_LINK(SGX_EPC_MEMDEV_PROP, SGXEPCDevice, hostmem, diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index 76130cd46d..da9c35c1ec 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -317,7 +317,7 @@ static void vmmouse_realizefn(DeviceState *dev, Error **errp) vmport_register(VMPORT_CMD_VMMOUSE_DATA, vmmouse_ioport_read, s); } -static Property vmmouse_properties[] = { +static const Property vmmouse_properties[] = { DEFINE_PROP_LINK("i8042", VMMouseState, i8042, TYPE_I8042, ISAKBDState *), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 7cc75dbc6d..cab6e72089 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -252,7 +252,7 @@ static void vmport_realizefn(DeviceState *dev, Error **errp) } } -static Property vmport_properties[] = { +static const Property vmport_properties[] = { /* Used to enforce compatibility for migration */ DEFINE_PROP_BIT("x-read-set-eax", VMPortState, compat_flags, VMPORT_COMPAT_READ_SET_EAX_BIT, true), diff --git a/hw/i386/x86-iommu.c b/hw/i386/x86-iommu.c index 60af896225..155f6262ea 100644 --- a/hw/i386/x86-iommu.c +++ b/hw/i386/x86-iommu.c @@ -125,7 +125,7 @@ static void x86_iommu_realize(DeviceState *dev, Error **errp) } } -static Property x86_iommu_properties[] = { +static const Property x86_iommu_properties[] = { DEFINE_PROP_ON_OFF_AUTO("intremap", X86IOMMUState, intr_supported, ON_OFF_AUTO_AUTO), DEFINE_PROP_BOOL("device-iotlb", X86IOMMUState, dt_supported, false), diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c index ed621531d8..e71483e6e3 100644 --- a/hw/i386/xen/xen_pvdevice.c +++ b/hw/i386/xen/xen_pvdevice.c @@ -115,7 +115,7 @@ static void xen_pv_realize(PCIDevice *pci_dev, Error **errp) &d->mmio); } -static Property xen_pv_props[] = { +static const Property xen_pv_props[] = { DEFINE_PROP_UINT16("vendor-id", XenPVDevice, vendor_id, PCI_VENDOR_ID_XEN), DEFINE_PROP_UINT16("device-id", XenPVDevice, device_id, 0xffff), DEFINE_PROP_UINT8("revision", XenPVDevice, revision, 0x01),