summaryrefslogtreecommitdiffstats
path: root/hw/xen
diff options
context:
space:
mode:
authorEduardo Habkost2019-01-07 20:30:20 +0100
committerEduardo Habkost2019-01-10 01:10:00 +0100
commit6c36bddf5340138a5fc1c97520030c915a0f1760 (patch)
tree7bd4f735453e67b123beab0b12a32851af712e05 /hw/xen
parentmachine: Eliminate unnecessary stringify() usage (diff)
downloadqemu-6c36bddf5340138a5fc1c97520030c915a0f1760.tar.gz
qemu-6c36bddf5340138a5fc1c97520030c915a0f1760.tar.xz
qemu-6c36bddf5340138a5fc1c97520030c915a0f1760.zip
machine: Use shorter format for GlobalProperty arrays
Instead of verbose arrays with 4 lines for each entry, make each entry take only one line. This makes long arrays that couldn't fit in the screen become short and readable. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190107193020.21744-4-ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/xen')
-rw-r--r--hw/xen/xen-common.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/hw/xen/xen-common.c b/hw/xen/xen-common.c
index d51148b6b3..18a9045556 100644
--- a/hw/xen/xen-common.c
+++ b/hw/xen/xen-common.c
@@ -163,21 +163,9 @@ static void xen_accel_class_init(ObjectClass *oc, void *data)
{
AccelClass *ac = ACCEL_CLASS(oc);
static GlobalProperty compat[] = {
- {
- .driver = "migration",
- .property = "store-global-state",
- .value = "off",
- },
- {
- .driver = "migration",
- .property = "send-configuration",
- .value = "off",
- },
- {
- .driver = "migration",
- .property = "send-section-footer",
- .value = "off",
- }
+ { "migration", "store-global-state", "off" },
+ { "migration", "send-configuration", "off" },
+ { "migration", "send-section-footer", "off" },
};
ac->name = "Xen";