docs: Constify all Property in examples

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2024-12-13 14:54:14 +00:00
parent 869e7146b7
commit fd363a14f6
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ was done::
The relevant parts for migration are:: The relevant parts for migration are::
@@ -1281,7 +1284,8 @@ static Property virtio_blk_properties[] = { @@ -1281,7 +1284,8 @@ static const Property virtio_blk_properties[] = {
#endif #endif
DEFINE_PROP_BIT("request-merging", VirtIOBlock, conf.request_merging, 0, DEFINE_PROP_BIT("request-merging", VirtIOBlock, conf.request_merging, 0,
true), true),
@ -395,7 +395,7 @@ the old behaviour or the new behaviour::
index 8a87ccc8b0..5153ad63d6 100644 index 8a87ccc8b0..5153ad63d6 100644
--- a/hw/pci/pci.c --- a/hw/pci/pci.c
+++ b/hw/pci/pci.c +++ b/hw/pci/pci.c
@@ -79,6 +79,8 @@ static Property pci_props[] = { @@ -79,6 +79,8 @@ static const Property pci_props[] = {
DEFINE_PROP_STRING("failover_pair_id", PCIDevice, DEFINE_PROP_STRING("failover_pair_id", PCIDevice,
failover_pair_id), failover_pair_id),
DEFINE_PROP_UINT32("acpi-index", PCIDevice, acpi_index, 0), DEFINE_PROP_UINT32("acpi-index", PCIDevice, acpi_index, 0),

View File

@ -101,7 +101,7 @@ manually instantiated:
VirtIOBlock vdev; VirtIOBlock vdev;
}; };
static Property virtio_blk_pci_properties[] = { static const Property virtio_blk_pci_properties[] = {
DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0), DEFINE_PROP_UINT32("class", VirtIOPCIProxy, class_code, 0),
DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags,
VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),