From patchwork Sun Dec 15 19:05:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 851010 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp2523271wry; Sun, 15 Dec 2024 11:15:52 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU7utNmGJFY6rFHxURyHOEBDbfHhnvlor9xGrq7mBzPevgXyngVW9VtdhkZcVtHB1xO83vWAQ==@linaro.org X-Google-Smtp-Source: AGHT+IE+M51xbyEXvytrccJZmZdhnxpaT4KAQXEgc5Pi3h3QjSkIAzpXogKuJOy8Q8vycaW1M1rC X-Received: by 2002:a05:6214:4115:b0:6d4:180e:e7a with SMTP id 6a1803df08f44-6dc8ca8efa2mr196294426d6.24.1734290152160; Sun, 15 Dec 2024 11:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734290152; cv=none; d=google.com; s=arc-20240605; b=SnKssEhUSK3+2aD9ki36OI0v9LlfAQrFbSVYktAGlXWwtUkKgott2KAK/6zpKRTmpB I3dHSYlSXBjSx6SQ2CbFooKnoCSXE8L8FqFhG5x+qe16xW5Gd460HRYh3dhQCCvvhPId gm5ZvolFh+4WjCumenX5uW1eEHRA661QUdASvDvDiXe5lC7meucChQYrvvDwwnuFbmzO fsf2lUKUCvpaEeoG1NJ+GTPNq0AbS0BwFCKALma9NV/tgmQ9vIrOeLHx6AjnU/b6lu82 JQZYdUtAgKB+FbfWC75qvqH6gGecLiZUObBETVgH6+7/7gxTN7yXkqEG/9OFN5Hfiks0 ErUg== 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; fh=I2hSNBlDKVAGYD8LQLmqSRQVeeUH8epvzOkwBVrCdV0=; b=LRiBwNa9BCmKVE/+0oHxjc5QrJcVBacNd1wIOiCzGKaZMSNuqgANsdOs4jVKkm7Z2s /jyilo8dxBYohefd1pLTKnGpnjUkaUu+K+0eAsYOnLQwf/zwN5OD8cPD2ZVG0x0P4Q2c G/h4a5clCd11Dp0dbiqGsn9ACl1pZLzf3Dq+kl/8X0I/PfexZ/gE0Dozvv1cDxTVDDhj IV77/2Oj9laT9bccDsmPWqWihecqTQuQfmYcy12ZsOGu73n9BhPdnx64maZuYH79e5bB 1x5KZ0AiTSOBVf+HEd5jipJA/mb8FrWvcWJyHkmqjaLadM4d7wUL2MIiojMUjM/cNJED UXhw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yxJiUXA1; 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-6dccd395f58si49391606d6.418.2024.12.15.11.15.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Dec 2024 11:15:52 -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=yxJiUXA1; 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 1tMu0e-0005Ol-SY; Sun, 15 Dec 2024 14:10:33 -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 1tMu08-00043k-7k for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:10:00 -0500 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMu06-0001YM-Dn for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:09:59 -0500 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3eb8db8ae9aso1573122b6e.1 for ; Sun, 15 Dec 2024 11:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734289797; x=1734894597; 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; b=yxJiUXA1fdGsUmK/HijnJyPjO5C39iggNKuTWUwuqynzKwLTdYCh9gKNZ+RZcIkupT gTK5bm5SQ8Uyfef0bpvCH4TSrikRM+38l8igt7qOPrB14wZEZW9aNJKIgJNO0/2NKjfj P9e9yrpPn0cnrEqUnSKvveodW5qO0D1eI4kC5QlouXGqac+TuGhw/jaCpxs984JdyhNo lqBz1IUHWoJ24BqigOGl11b703L+oCjT5758hoG6UEW7LzwbapnsNfYBuIIIsT7Hqk+p OHIC4rLDOOd/XPltnqLz3mVgfbZyaQGCgNDF41deu/+hRLsBzQN9A4Qjl/VY2EDcnfCJ M3og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734289797; x=1734894597; 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=gKgQK+6ZUCTVplJd6G9s9xqdYnMK41SpV7U5E5JQQwQ=; b=axsVY5I25+cobJJ6Jzm6JW5zw71CB3y5X7h3NKN8trDRFrbb/I+CMvoeA+PqRj20lz ESDCUBtcJzfmEkHN+9fkuc21EopRC2WSKvCjrf5mUjzScpEytg7GNg4FFVmPe+PUf1gT qw7MhG7o3XeQo6HfOm+tBtsRYA1MtBGJejSwrEHx9kD0JSJxRFxgCBRj+oBLbyjm53Tx 3k2tXZ0HGzgvwZ1ilTfuL39A7ViNg8sod6wEi/sDe3LwIWlNyXudLbohZH1KfxrtP3GV CHCkMuA0zWu4yzksFdqbEYlPkvj2/Ix9Fsano8JK31gyqmZHpkngFelJIvg8H6JTqL6+ 466Q== X-Gm-Message-State: AOJu0YwXRDjPym5WFRO9rXzi1MPhFCmwdxasGb/9vkpm+6Zreo8lq69d 2BAQR8KpYnm+9VNtd7/xrCpKx19cixaOUW58qsc0OA2pLr1O9KWTF+DgpBeCSvqmQaIw0A8XBhx pJFNaOXCa X-Gm-Gg: ASbGncv1K/k7JDEJwztOk9uXedv+UdiJ6wm73j5p2cpPsCwLd3hZUjh7fTxh66CRSYM K5Fb48WdBe0wSAobWzIuDCXunwqI2cq5q6PMZ8BRJrwEbpDoXRi2K5VbiVZyVdOLWbQ5KFx0Moz 6AdflO/IjJ144pTYSXUUuSjxjW+HnYwWwD70OAoEkv0CvrdamFPOY50OClMIUFf3pOdyLjBY31z NJSOy+2rp4jizKB1RriLXpx9Oxd8CiTlWRuHl6H0eVxAQtxhSbEDzGGlFZQSd+WnB+EttIwp9DV i+1PAAph7cnDT+bEVsgFSgkz28HSKl84b+ErIcyasiI= X-Received: by 2002:a05:6808:23d4:b0:3e6:5f6:c2b5 with SMTP id 5614622812f47-3eba69108e5mr5216975b6e.26.1734289796866; Sun, 15 Dec 2024 11:09:56 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e4836f8c2sm1015316a34.34.2024.12.15.11.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2024 11:09:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 62/67] hw/vfio: Constify all Property Date: Sun, 15 Dec 2024 13:05:28 -0600 Message-ID: <20241215190533.3222854-63-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=2607:f8b0:4864:20::22d; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22d.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: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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),