From patchwork Fri Dec 13 19:29:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 850276 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1694226wry; Fri, 13 Dec 2024 11:32:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUtp0Xpsk5ZxocM2F5Vbf51rllWKZi2gK2DMim8FTWVx1PC/8RsMZrAzrC3s173G8Q2Djd56g==@linaro.org X-Google-Smtp-Source: AGHT+IEb/fHiTyz/B7xBK4rUocXRoyI/hcs4eySV9lx51i2yVMInRZphQ9OLRwVl95+PlzgCDbEO X-Received: by 2002:ad4:5fc8:0:b0:6d8:99cf:77b9 with SMTP id 6a1803df08f44-6dc8ca6913emr64793586d6.19.1734118362434; Fri, 13 Dec 2024 11:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734118362; cv=none; d=google.com; s=arc-20240605; b=ZZ1T5s2WvNXORof/iwfGa2o4xhH5ahefygKxGPMgZn9M6uAKZ3dLZ9grcQwe2lDn5Q Tz5VH+L1ONNLdYTH7B5Hj+HM3d60dUr9KmP6hPVItK3pVDLrNga3zXhN1ZI6V3MqBPrK Q7fC+J14uuzVbX/UZLKtfZJOGMk29lbqhzJNYK7SGxCKCZHTS3rmJVaV2xjLz1osSGnr TAIsMa1yfv2hxXNwng33VPrVzvouV8vgZilgmK2gjdP4Hst0v5Vp4/GI+S/MzJ4Pkc7f +BOfP7llhL79Jbzv8q6drUm/83ek3CNDQrbNXgNxCyOIrHDs7I4k+LOV0CC0e7PIMKQj osZw== 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; fh=d1WSEoRaafpO+glFvYZf4SwszZTAlgPRELJGnJfygwU=; b=iiqIHSoIsL4AXumzvW9QIw5FBZarbBxXZm/rITgnDqgOot167GJsudVrMQ+laYKps7 esoENqo5SoUs5qKaWNkH0jixLU/ubuCWkzu4Dy1wA+OmagU+3HXZDZl2EscKqxVe7eO9 9G7YhDlBWxLwT05GB1f51ErEZGt/cNA222ylS7fqv0mAHzbEfYw2mmzB2fqc2aRmB7aS gwhlqKGphgA6PH8BpHz0W8Ps2BFQIQ65gmo/LNXIDxAURNN7r8itnONjtWzpoL+P2g8c XXqI/YgsMDBtjgfrv/0qe0szxIhD32ZRsVh/jyPHOjXLNq+ammRR+wTpHe8s0h8cXWoX dF6A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DhsJOCgN; 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 6a1803df08f44-6dccd373d1bsi733316d6.326.2024.12.13.11.32.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 11:32:42 -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=DhsJOCgN; 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 1tMBNW-0007JM-9p; Fri, 13 Dec 2024 14:31:10 -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 1tMBMr-0006ft-Ai for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:31 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMBMl-0004ER-3F for qemu-devel@nongnu.org; Fri, 13 Dec 2024 14:30:26 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5401e6efffcso2355401e87.3 for ; Fri, 13 Dec 2024 11:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734118221; x=1734723021; 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=DhsJOCgN0GNkUIdOv/ra6++4YgPagwNnsBLurVvSbANTwZ/R20i5xU5JA4qdx6jJ9E PTosc/f4znHAiwEld/R363P4Xh/v7ojla/GI7C/aDQDFkEfdmiSSppwd8LEFy35+FGIF LMKBTUMb8p2LEJvJ6iXlAmKbFaUqjJ5c6UbaAufHCDYi0ZV8Qr98KvPHthzD0Ml6dhZm 5WK34jYe+YJVs3Hxojpkvd538btTX3nFYp7dRpcEFlDU25BieMVzL1WHICKq2cqmCymN ql0tZWSzhdXt9X4yHXW2OSxSmROWCUPDlGUOSzJtpG2/bELoVfjf7DEJeoxO4MhtkgUl cvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734118221; x=1734723021; 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=af94ntL1aP0LTF1ynUhyZnJWEdtzaUCk8WuF/T+fV+g=; b=fcXOGauDxQXW47bXjLK/mHCOI8XBm21azgwag3rMxuNtUnWPgjzB8d5wg9be37PzRs h41y5HzxSiPST7BtmARAQhvR4osq+jpsuj+ClUq+y8VkuoKhbG3vLRJpHjjgDgGE6hWG i/pHvPe36lGgw+j9Z9G3EhE/LDGEILZXNljnP/8vVrEA+70zs2JDL0cdrWivChmTGKiX 7DSvh0QVr4EllGg+PKgywoRb/5SvSJDWjG/pSXaKcnRe26ppCWUuGBpHv70FU3PkyHl3 gLVTzcxDQb5XGf09alVmH5VuFluwBnOwsEiaBzfW4ayzdtaBfdJxKtNsfu/ltt71f497 GUCg== X-Gm-Message-State: AOJu0YwuDtMyPDV97vbHRilkBb7WGfigGPnCOMQgSJR+/CqDqDeRgTld LYAbGlB0ylBzR4dZJ51ST27MTFx9r+aQl4QVp8wuocm5FCb9/YT+OVRV6YfEVTJwQV8ucjuLf6U 8CSO6X93b X-Gm-Gg: ASbGnctUc1Dpc1uJufAXL3bbfonbvHrzk7ZCMRklmbWR9ZS3qPbIGzRh/8tpWzhNDPp boRFwKQGxgkQLagtDUdW4FmxGc5y8scjA+9Mz5exOB8LAi24asKJsh33ZVYyG9uDmIlzLtMkuKK sMy9p0IdmJcqmEU/oW9HcbPZra9JRSoZuPVNQlGST8f+1zR7DVJwWqBvUybvA6JHUvHTV7yzQEa wcH5AVtvcHWkZ5CZtjZl+j7v9j3+HODaZsjhn44SXG6+31inZtKXPGnWeti0g== X-Received: by 2002:a05:6512:3d27:b0:53e:1c3e:34 with SMTP id 2adb3069b0e04-540905974b1mr1348410e87.38.1734118221148; Fri, 13 Dec 2024 11:30:21 -0800 (PST) Received: from stoup.. ([91.209.212.67]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54120c01051sm6972e87.156.2024.12.13.11.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 11:30:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Tony Krowiak , Halil Pasic , Jason Herne , Thomas Huth , Alex Williamson , =?utf-8?q?C=C3=A9dric_Le_Goat?= =?utf-8?q?er?= , Eric Farman , Matthew Rosato , qemu-s390x@nongnu.org (open list:vfio-ap) Subject: [PATCH 65/71] hw/vfio: Constify all Property Date: Fri, 13 Dec 2024 13:29:59 -0600 Message-ID: <20241213193004.2515684-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241213193004.2515684-1-richard.henderson@linaro.org> References: <20241213190750.2513964-1-richard.henderson@linaro.org> <20241213193004.2515684-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=richard.henderson@linaro.org; helo=mail-lf1-x12b.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 Signed-off-by: Richard Henderson Reviewed-by: Cédric Le Goater Reviewed-by: Eric Farman --- hw/vfio/ap.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/pci.c | 4 ++-- hw/vfio/platform.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index 4013e7b436..2e6ea2dd93 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -191,7 +191,7 @@ static void vfio_ap_unrealize(DeviceState *dev) g_free(vapdev->vdev.name); } -static Property vfio_ap_properties[] = { +static const Property vfio_ap_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOAPDevice, vdev.sysfsdev), #ifdef CONFIG_IOMMUFD DEFINE_PROP_LINK("iommufd", VFIOAPDevice, vdev.iommufd, diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index c1cd7736cd..b96ab27e12 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -655,7 +655,7 @@ static void vfio_ccw_unrealize(DeviceState *dev) } } -static Property vfio_ccw_properties[] = { +static const Property vfio_ccw_properties[] = { DEFINE_PROP_STRING("sysfsdev", VFIOCCWDevice, vdev.sysfsdev), DEFINE_PROP_BOOL("force-orb-pfch", VFIOCCWDevice, force_orb_pfch, false), #ifdef CONFIG_IOMMUFD diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 14bcc725c3..93aca850e3 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -3354,7 +3354,7 @@ static void vfio_instance_init(Object *obj) pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS; } -static Property vfio_pci_dev_properties[] = { +static const Property vfio_pci_dev_properties[] = { DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host), DEFINE_PROP_UUID_NODEFAULT("vf-token", VFIOPCIDevice, vf_token), DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev), @@ -3451,7 +3451,7 @@ static const TypeInfo vfio_pci_dev_info = { }, }; -static Property vfio_pci_dev_nohotplug_properties[] = { +static const Property vfio_pci_dev_nohotplug_properties[] = { DEFINE_PROP_BOOL("ramfb", VFIOPCIDevice, enable_ramfb, false), DEFINE_PROP_ON_OFF_AUTO("x-ramfb-migrate", VFIOPCIDevice, ramfb_migrate, ON_OFF_AUTO_AUTO), diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index a85c199c76..766e8a86ef 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -629,7 +629,7 @@ static const VMStateDescription vfio_platform_vmstate = { .unmigratable = 1, }; -static Property vfio_platform_dev_properties[] = { +static const Property vfio_platform_dev_properties[] = { DEFINE_PROP_STRING("host", VFIOPlatformDevice, vbasedev.name), DEFINE_PROP_STRING("sysfsdev", VFIOPlatformDevice, vbasedev.sysfsdev), DEFINE_PROP_BOOL("x-no-mmap", VFIOPlatformDevice, vbasedev.no_mmap, false),