mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/virtio: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d3eb6f73e1
commit
1577a9180f
38 changed files with 39 additions and 39 deletions
|
@ -2349,7 +2349,7 @@ static void virtio_pci_bus_reset_hold(Object *obj, ResetType type)
|
|||
}
|
||||
}
|
||||
|
||||
static Property virtio_pci_properties[] = {
|
||||
static const Property virtio_pci_properties[] = {
|
||||
DEFINE_PROP_BIT("virtio-pci-bus-master-bug-migration", VirtIOPCIProxy, flags,
|
||||
VIRTIO_PCI_FLAG_BUS_MASTER_BUG_MIGRATION_BIT, false),
|
||||
DEFINE_PROP_BIT("migrate-extra", VirtIOPCIProxy, flags,
|
||||
|
@ -2431,7 +2431,7 @@ static const TypeInfo virtio_pci_info = {
|
|||
.abstract = true,
|
||||
};
|
||||
|
||||
static Property virtio_pci_generic_properties[] = {
|
||||
static const Property virtio_pci_generic_properties[] = {
|
||||
DEFINE_PROP_ON_OFF_AUTO("disable-legacy", VirtIOPCIProxy, disable_legacy,
|
||||
ON_OFF_AUTO_AUTO),
|
||||
DEFINE_PROP_BOOL("disable-modern", VirtIOPCIProxy, disable_modern, false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue