From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: ehabkost@redhat.com, mst@redhat.com, ghammer@redhat.com,
lersek@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com
Subject: [Qemu-devel] [PATCH v18 7/9] add MachineClass->default_props for setting default device properties
Date: Fri, 22 Jan 2016 14:21:00 +0100 [thread overview]
Message-ID: <1453468862-118912-8-git-send-email-imammedo@redhat.com> (raw)
In-Reply-To: <1453468862-118912-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
include/hw/boards.h | 1 +
vl.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 0f30959..d495611 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -90,6 +90,7 @@ struct MachineClass {
const char *default_machine_opts;
const char *default_boot_order;
const char *default_display;
+ GlobalProperty *default_props;
GlobalProperty *compat_props;
const char *hw_version;
ram_addr_t default_ram_size;
diff --git a/vl.c b/vl.c
index f043009..3c5a936 100644
--- a/vl.c
+++ b/vl.c
@@ -4491,6 +4491,10 @@ int main(int argc, char **argv, char **envp)
exit (i == 1 ? 1 : 0);
}
+ if (machine_class->default_props) {
+ qdev_prop_register_global_list(machine_class->default_props);
+ }
+
if (machine_class->compat_props) {
qdev_prop_register_global_list(machine_class->compat_props);
}
--
1.8.3.1
next prev parent reply other threads:[~2016-01-22 13:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 13:20 [Qemu-devel] [PATCH v18 0/9] Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 1/9] acpi: extend ACPI interface to provide access to ACPI registers and SCI irq Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 2/9] docs: vm generation id device's description Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 3/9] pc: add a Virtual Machine Generation ID device Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 4/9] tests: add a unit test for the vmgenid device Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 5/9] qmp/hmp: add query-vm-generation-id and 'info vm-generation-id' commands Igor Mammedov
2016-01-22 13:20 ` [Qemu-devel] [PATCH v18 6/9] qmp/hmp: add set-vm-generation-id commands Igor Mammedov
2016-01-22 13:21 ` Igor Mammedov [this message]
2016-01-22 13:21 ` [Qemu-devel] [PATCH v18 8/9] pc: put PIIX3 in slot 1 explicitly and cleanup functions assignment Igor Mammedov
2016-01-22 13:21 ` [Qemu-devel] [PATCH v18 9/9] pc/q53: by default put vmgenid device as an function of ISA bridge Igor Mammedov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1453468862-118912-8-git-send-email-imammedo@redhat.com \
--to=imammedo@redhat.com \
--cc=ehabkost@redhat.com \
--cc=ghammer@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=lersek@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).