summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMarcel Apfelbaum2015-02-04 16:43:53 +0100
committerMichael S. Tsirkin2015-03-11 18:17:11 +0100
commit6cabe7fa6deeffeed9a3e6d996d6107c94965948 (patch)
tree8e9b6e6ad7552825a67bfd8df5b9b94a538d83fa /hw
parentmachine: query kvm-shadow-mem machine property (diff)
downloadqemu-6cabe7fa6deeffeed9a3e6d996d6107c94965948.tar.gz
qemu-6cabe7fa6deeffeed9a3e6d996d6107c94965948.tar.xz
qemu-6cabe7fa6deeffeed9a3e6d996d6107c94965948.zip
machine: query phandle-start machine property
Commit e79d5a6 ("machine: remove qemu_machine_opts global list") removed the global option descriptions and moved them to MachineState's QOM properties. Query phandle-start by accessing machine properties through designated wrappers. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/core/machine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 0ad5b12781..5ad24093ad 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -420,6 +420,11 @@ int machine_kvm_shadow_mem(MachineState *machine)
return machine->kvm_shadow_mem;
}
+int machine_phandle_start(MachineState *machine)
+{
+ return machine->phandle_start;
+}
+
static const TypeInfo machine_info = {
.name = TYPE_MACHINE,
.parent = TYPE_OBJECT,