aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-06-06 11:32:48 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-06-06 11:32:48 +0100
commit7ad5f33b7d612a12d5ee927b64046ef21e4b5bae (patch)
tree51928aa122ebfe41d4f8b40bebc5fe159e789bf0
parent8be2094648f85acbd443ea0b5710e5988fda6741 (diff)
parentedfb4389c26cbfd873707306024130bda6049780 (diff)
downloadqemu-7ad5f33b7d612a12d5ee927b64046ef21e4b5bae.zip
qemu-7ad5f33b7d612a12d5ee927b64046ef21e4b5bae.tar.gz
qemu-7ad5f33b7d612a12d5ee927b64046ef21e4b5bae.tar.bz2
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
* Fix pr-manager-helper (Markus) # gpg: Signature made Wed 05 Jun 2019 15:15:34 BST # gpg: using RSA key BFFBD25F78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full] # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" [full] # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini/tags/for-upstream: vl: Document why objects are delayed vl: Fix -drive / -blockdev persistent reservation management Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--vl.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index f023a8c..cd1fbc4 100644
--- a/vl.c
+++ b/vl.c
@@ -2751,20 +2751,25 @@ static bool object_create_initial(const char *type, QemuOpts *opts)
exit(0);
}
- if (g_str_equal(type, "rng-egd") ||
- g_str_has_prefix(type, "pr-manager-")) {
+ /*
+ * Objects should not be made "delayed" without a reason. If you
+ * add one, state the reason in a comment!
+ */
+
+ /* Reason: rng-egd property "chardev" */
+ if (g_str_equal(type, "rng-egd")) {
return false;
}
#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
+ /* Reason: cryptodev-vhost-user property "chardev" */
if (g_str_equal(type, "cryptodev-vhost-user")) {
return false;
}
#endif
/*
- * return false for concrete netfilters since
- * they depend on netdevs already existing
+ * Reason: filter-* property "netdev" etc.
*/
if (g_str_equal(type, "filter-buffer") ||
g_str_equal(type, "filter-dump") ||