hostmem: use object "id" for memory region name with >= 3.1
v2 cover hostmem: use object "id" for memory region name with >= 3.1
Hi,
The migration code expects the RAM block name to match between the source and destination. However the backend type may change, so it is possible (so far) to migrate from a hostmem-file to a hostmem-memfd for example.
However, hostmem backends use inconsistent RAM naming, which can cause a name mismatch. hostmem-file and hostmem-memfd use the whole object path as memory name, while -ram use only the object "id".
This series adds global property support for objects others than TYPE_DEVICE (only TYPE_USER_CREATABLE for now), and a new compat property "x-use-canonical-path-for-ramblock-id" to hostmem for legacy canonical path names, set to true for -file and -memfd with qemu < 3.1.
v2:
- replace "qom/user-creatable: add a few helper macros" patch for a more optimized "qom: make user_creatable_complete() specific to UserCreatable"
- rename register_global_list() to register_global_properties()
- call object_property_set_globals() after post-init
- add and use a ObjectClass.set_globals flag, instead of dynamically check object class in object_property_set_globals()
- use object "id" in >= 3.1 instead of canonical path, add compat property "x-use-canonical-path-for-ramblock-id" in base hostmem class.
Marc-André Lureau (10):
qom: make user_creatable_complete() specific to UserCreatable
accel: register global_props like machine globals
qdev: move qdev_prop_register_global_list() to tests qom/globals: move qdev globals to qom
qom/globals: generalize object_property_set_globals() qom/object: set globals when initializing object qom/object: add set_globals flags
tests: add user-creatable test to test-qdev-global-props hw/i386: add pc-i440fx-3.1 & pc-q35-3.1
hostmem: use object id for memory region name with >= 3.1
include/hw/compat.h | 11 +-
include/hw/i386/pc.h | 2 +-
include/hw/qdev-core.h | 20 ---
include/hw/qdev-properties.h | 34 +---
include/qom/globals.h | 32 ++++
include/qom/object.h | 1 +
include/qom/object_interfaces.h | 4 +-
include/sysemu/hostmem.h | 3 +-
accel/accel.c | 9 +-
backends/hostmem-file.c | 8 +-
backends/hostmem-memfd.c | 2 +-
backends/hostmem-ram.c | 9 +-
backends/hostmem.c | 30 ++++
hw/core/machine.c | 2 +-
hw/core/qdev-properties.c | 97 -----------
hw/core/qdev.c | 7 +-
hw/i386/pc_piix.c | 15 +-
hw/i386/pc_q35.c | 13 +-
hw/misc/ivshmem.c | 2 +-
hw/virtio/virtio-rng.c | 2 +-
qom/cpu.c | 2 +-
qom/globals.c | 76 +++++++++
qom/object.c | 17 +-
qom/object_interfaces.c | 21 ++-
target/i386/cpu.c | 2 +-
target/sparc/cpu.c | 2 +-
...dev-global-props.c => test-global-props.c} | 150 +++++++++++++++---
vl.c | 6 +-
qom/Makefile.objs | 2 +-
tests/Makefile.include | 4 +-
30 files changed, 362 insertions(+), 223 deletions(-)
create mode 100644 include/qom/globals.h
create mode 100644 qom/globals.c
rename tests/{test-qdev-global-props.c => test-global-props.c} (71%)Signature · 1 line
2.19.0.271.gfe8321ec05
PATCH v2 1/10 qom: make user_creatable_complete() specific to UserCreatable
Instead of accepting any Object*, change user_creatable_complete() to require a UserCreatable*. Modify the callers to pass the appropriate argument, removing redundant dynamic cast checks in object creation.
--- include/qom/object_interfaces.h | 4 ++-- hw/misc/ivshmem.c | 2 +- hw/virtio/virtio-rng.c | 2 +- qom/object.c | 12 ++++++++---- qom/object_interfaces.c | 14 +++----------- 5 files changed, 15 insertions(+), 19 deletions(-)
include/qom/object_interfaces.h +2 -2
@@ -55,14 +55,14 @@ typedef struct UserCreatableClass {/** * user_creatable_complete: -* @obj: the object whose complete() method is called if defined +* @uc: the user-creatable object whose complete() method is called if defined * @errp: if an error occurs, a pointer to an area to store the error * * Wrapper to call complete() method if one of types it's inherited * from implements USER_CREATABLE interface, otherwise the call does * nothing. */ -void user_creatable_complete (Object *obj,Error **errp); +void user_creatable_complete (UserCreatable *uc,Error **errp);/** * user_creatable_can_be_deleted:
hw/misc/ivshmem.c +1 -1
@@ -1279,7 +1279,7 @@ static void desugar_shm(IVShmemState *s)object_property_set_bool (obj, true,"share" , &error_abort);object_property_add_child (OBJECT (s),"internal-shm-backend" , obj, &error_abort); -user_creatable_complete (obj, &error_abort); +user_creatable_complete (USER_CREATABLE (obj), &error_abort); s->hostmem =MEMORY_BACKEND (obj); }
hw/virtio/virtio-rng.c +1 -1
@@ -191,7 +191,7 @@ static void virtio_rng_device_realize(DeviceState *dev, Error **errp)if (vrng->conf.rng ==NULL ) { vrng->conf.default_backend =RNG_RANDOM (object_new (TYPE_RNG_RANDOM )); -user_creatable_complete (OBJECT (vrng->conf.default_backend), +user_creatable_complete (USER_CREATABLE (vrng->conf.default_backend), &local_err);if (local_err) {error_propagate (errp, local_err);
qom/object.c +8 -4
@@ -417,6 +417,7 @@ void object_initialize_childv(Object *parentobj, const char *propname, {Error *local_err =NULL ;Object *obj; +UserCreatable *uc;object_initialize (childobj, size, type); obj =OBJECT (childobj);
@@ -431,8 +432,9 @@ void object_initialize_childv(Object *parentobj, const char *propname, goto out; } -if (object_dynamic_cast (obj,TYPE_USER_CREATABLE )) { -user_creatable_complete (obj, &local_err); + uc = (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); +if (uc) { +user_creatable_complete (uc, &local_err);if (local_err) {object_unparent (obj); goto out;
@@ -590,6 +592,7 @@ Object *object_new_with_propv(const char *typename,Object *obj;ObjectClass *klass;Error *local_err =NULL ; +UserCreatable *uc; klass =object_class_by_name (typename);if (!klass) {
@@ -612,8 +615,9 @@ Object *object_new_with_propv(const char *typename, goto error; } -if (object_dynamic_cast (obj,TYPE_USER_CREATABLE )) { -user_creatable_complete (obj, &local_err); + uc = (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); +if (uc) { +user_creatable_complete (uc, &local_err);if (local_err) {object_unparent (obj); goto error;
qom/object_interfaces.c +3 -11
@@ -8,18 +8,10 @@#include "qapi/opts-visitor.h" #include "qemu/config-file.h" -void user_creatable_complete (Object *obj,Error **errp) +void user_creatable_complete (UserCreatable *uc,Error **errp) { +UserCreatableClass *ucc =USER_CREATABLE_GET_CLASS (uc); -UserCreatableClass *ucc; -UserCreatable *uc = - (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); - -if (!uc) { -return ; - } - - ucc =USER_CREATABLE_GET_CLASS (uc);if (ucc->complete) { ucc->complete (uc, errp); }
@@ -89,7 +81,7 @@ Object *user_creatable_add_type(const char *type, const char *id, goto out; } -user_creatable_complete (obj, &local_err); +user_creatable_complete (USER_CREATABLE (obj), &local_err);if (local_err) {object_property_del (object_get_objects_root (), id, &error_abort);
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 01/10] qom: make user_creatable_complete() specific to UserCreatable
Quoted 5 lines · On Tue, 30 Oct 2018 19:04:44 +0400 Marc-André Lureau…
Instead of accepting any Object*, change
user_creatable_complete()to require a UserCreatable*. Modify the callers to pass the appropriate argument, removing redundant dynamic cast checks in object creation.Signed-off-by Marc-André Lureau <[email protected]>
Nice patch, it also reduces number of dynamic casts originated from object_initialize_childv/object_new_with_propv.
Quoted 133 lines
--- include/qom/object_interfaces.h | 4 ++-- hw/misc/ivshmem.c | 2 +- hw/virtio/virtio-rng.c | 2 +- qom/object.c | 12 ++++++++---- qom/object_interfaces.c | 14 +++----------- 5 files changed, 15 insertions(+), 19 deletions(-)include/qom/object_interfaces.h +2
-2@@ -55,14 +55,14 @@ typedef struct UserCreatableClass {/** * user_creatable_complete: -* @obj: the object whose complete() method is called if defined +* @uc: the user-creatable object whose complete() method is called if defined * @errp: if an error occurs, a pointer to an area to store the error * * Wrapper to call complete() method if one of types it's inherited * from implements USER_CREATABLE interface, otherwise the call does * nothing. */ -void user_creatable_complete (Object *obj,Error **errp); +void user_creatable_complete (UserCreatable *uc,Error **errp);/** * user_creatable_can_be_deleted: hw/misc/ivshmem.c +1
-1@@ -1279,7 +1279,7 @@ static void desugar_shm(IVShmemState *s)object_property_set_bool (obj, true,"share" , &error_abort);object_property_add_child (OBJECT (s),"internal-shm-backend" , obj, &error_abort); -user_creatable_complete (obj, &error_abort); +user_creatable_complete (USER_CREATABLE (obj), &error_abort); s->hostmem =MEMORY_BACKEND (obj); }hw/virtio/virtio-rng.c +1
-1@@ -191,7 +191,7 @@ static void virtio_rng_device_realize(DeviceState *dev, Error **errp)if (vrng->conf.rng ==NULL ) { vrng->conf.default_backend =RNG_RANDOM (object_new (TYPE_RNG_RANDOM )); -user_creatable_complete (OBJECT (vrng->conf.default_backend), +user_creatable_complete (USER_CREATABLE (vrng->conf.default_backend), &local_err);if (local_err) {error_propagate (errp, local_err);qom/object.c +8
-4@@ -417,6 +417,7 @@ void object_initialize_childv(Object *parentobj, const char *propname, {Error *local_err =NULL ;Object *obj; +UserCreatable *uc;object_initialize (childobj, size, type); obj =OBJECT (childobj);@@ -431,8 +432,9 @@ void object_initialize_childv(Object *parentobj, const char *propname, goto out; } -if (object_dynamic_cast (obj,TYPE_USER_CREATABLE )) { -user_creatable_complete (obj, &local_err); + uc = (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); +if (uc) { +user_creatable_complete (uc, &local_err);if (local_err) {object_unparent (obj); goto out;@@ -590,6 +592,7 @@ Object *object_new_with_propv(const char *typename,Object *obj;ObjectClass *klass;Error *local_err =NULL ; +UserCreatable *uc; klass =object_class_by_name (typename);if (!klass) {@@ -612,8 +615,9 @@ Object *object_new_with_propv(const char *typename, goto error; } -if (object_dynamic_cast (obj,TYPE_USER_CREATABLE )) { -user_creatable_complete (obj, &local_err); + uc = (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); +if (uc) { +user_creatable_complete (uc, &local_err);if (local_err) {object_unparent (obj); goto error;qom/object_interfaces.c +3
-11@@ -8,18 +8,10 @@#include "qapi/opts-visitor.h" #include "qemu/config-file.h" -void user_creatable_complete (Object *obj,Error **errp) +void user_creatable_complete (UserCreatable *uc,Error **errp) { +UserCreatableClass *ucc =USER_CREATABLE_GET_CLASS (uc); -UserCreatableClass *ucc; -UserCreatable *uc = - (UserCreatable *)object_dynamic_cast (obj,TYPE_USER_CREATABLE ); - -if (!uc) { -return ; - } - - ucc =USER_CREATABLE_GET_CLASS (uc);if (ucc->complete) { ucc->complete (uc, errp); }@@ -89,7 +81,7 @@ Object *user_creatable_add_type(const char *type, const char *id, goto out; } -user_creatable_complete (obj, &local_err); +user_creatable_complete (USER_CREATABLE (obj), &local_err);if (local_err) {object_property_del (object_get_objects_root (), id, &error_abort);
PATCH v2 2/10 accel: register global_props like machine globals
In reply to Marc-André Lureauglobal_props is only used for Xen xen_compat_props. It's a static array of GlobalProperty, like machine globals in SET_MACHINE_COMPAT(). Let's register the globals the same way, without extra copy allocation.
--- include/hw/qdev-properties.h | 29 ----------------------------- accel/accel.c | 9 ++++++++- hw/core/qdev-properties.c | 21 --------------------- 3 files changed, 8 insertions(+), 51 deletions(-)
include/hw/qdev-properties.h +0 -29
@@ -255,35 +255,6 @@ void qdev_prop_set_globals(DeviceState *dev);void error_set_from_qdev_prop_error (Error **errp,int ret,DeviceState *dev,Property *prop,const char *value); -/** -* register_compat_prop: -* -* Register internal (not user-provided) global property, changing the -* default value of a given property in a device type. This can be used -* for enabling machine-type compatibility or for enabling -* accelerator-specific defaults in devices. -* -* The property values set using this function must be always valid and -* never report setter errors, as the property will have -* GlobalProperty::errp set to &error_abort. -* -* User-provided global properties should override internal global -* properties, so callers of this function should ensure that it is -* called before user-provided global properties are registered. -* -* @driver: Device type to be affected -* @property: Property whose default value is going to be changed -* @value: New default value for the property -*/ -void register_compat_prop (const char *driver,const char *property, -const char *value); -/* -* register_compat_props_array(): using register_compat_prop(), which -* only registers internal global properties (which has lower priority -* than user-provided global properties) -*/ -void register_compat_props_array (GlobalProperty *prop); -/** * qdev_property_add_static: * @dev: Device to add the property to.
accel/accel.c +8 -1
@@ -34,6 +34,7 @@#include "qom/object.h" #include "qemu/error-report.h" #include "qemu/option.h" +#include "qapi/error.h" static const TypeInfo accel_type = { .name =TYPE_ACCEL ,
@@ -121,7 +122,13 @@ void configure_accelerator(MachineState *ms)void accel_register_compat_props (AccelState *accel) {AccelClass *class =ACCEL_GET_CLASS (accel); -register_compat_props_array (class->global_props); +GlobalProperty *prop = class->global_props; + +for (; prop && prop->driver; prop++) { +/* Any compat_props must never cause error */ + prop->errp = &error_abort; +qdev_prop_register_global (prop); + } }void accel_setup_post (MachineState *ms)
hw/core/qdev-properties.c +0 -21
@@ -1180,27 +1180,6 @@ void qdev_prop_register_global(GlobalProperty *prop) global_props =g_list_append (global_props, prop); } -void register_compat_prop (const char *driver, -const char *property, -const char *value) -{ -GlobalProperty *p =g_new0 (GlobalProperty,1 ); - -/* Any compat_props must never cause error */ - p->errp = &error_abort; - p->driver = driver; - p->property = property; - p->value = value; -qdev_prop_register_global (p); -} - -void register_compat_props_array (GlobalProperty *prop) -{ -for (; prop && prop->driver; prop++) { -register_compat_prop (prop->driver, prop->property, prop->value); - } -} -void qdev_prop_register_global_list (GlobalProperty *props) {int i;
Signature · 1 line
2.19.0.271.gfe8321ec05
PATCH v2 3/10 qdev: move qdev_prop_register_global_list() to tests
In reply to Marc-André LureauThe function is only used by a test, move it there.
--- include/hw/qdev-properties.h | 1 - hw/core/qdev-properties.c | 9 --------- tests/test-qdev-global-props.c | 18 ++++++++++++++---- 3 files changed, 14 insertions(+), 14 deletions(-)
include/hw/qdev-properties.h +0 -1
@@ -249,7 +249,6 @@ void qdev_prop_set_enum(DeviceState *dev, const char *name, int value);void qdev_prop_set_ptr (DeviceState *dev,const char *name,void *value);void qdev_prop_register_global (GlobalProperty *prop); -void qdev_prop_register_global_list (GlobalProperty *props);int qdev_prop_check_globals (void );void qdev_prop_set_globals (DeviceState *dev); void error_set_from_qdev_prop_error(Error **errp, int ret, DeviceState *dev,
hw/core/qdev-properties.c +0 -9
@@ -1180,15 +1180,6 @@ void qdev_prop_register_global(GlobalProperty *prop) global_props =g_list_append (global_props, prop); } -void qdev_prop_register_global_list (GlobalProperty *props) -{ -int i; - -for (i =0 ; props[i].driver !=NULL ; i++) { -qdev_prop_register_global (props+i); - } -} -int qdev_prop_check_globals (void ) {GList *l;
tests/test-qdev-global-props.c +14 -4
@@ -89,6 +89,16 @@ static void test_static_prop(void)g_test_trap_assert_stdout ("" ); } +static void register_global_properties (GlobalProperty *props) +{ +int i; + +for (i =0 ; props[i].driver !=NULL ; i++) { +qdev_prop_register_global (props + i); + } +} + +/* Test setting of static property using global properties */ static void test_static_globalprop_subprocess (void ) {
@@ -98,7 +108,7 @@ static void test_static_globalprop_subprocess(void) {} }; -qdev_prop_register_global_list (props); +register_global_properties (props); mt =STATIC_TYPE (object_new (TYPE_STATIC_PROPS ));qdev_init_nofail (DEVICE (mt));
@@ -216,7 +226,7 @@ static void test_dynamic_globalprop_subprocess(void) };int all_used; -qdev_prop_register_global_list (props); +register_global_properties (props); mt =DYNAMIC_TYPE (object_new (TYPE_DYNAMIC_PROPS ));qdev_init_nofail (DEVICE (mt));
@@ -261,7 +271,7 @@ static void test_dynamic_globalprop_nouser_subprocess(void) };int all_used; -qdev_prop_register_global_list (props); +register_global_properties (props); mt =DYNAMIC_TYPE (object_new (TYPE_DYNAMIC_PROPS ));qdev_init_nofail (DEVICE (mt));
@@ -299,7 +309,7 @@ static void test_subclass_global_props(void) {} }; -qdev_prop_register_global_list (props); +register_global_properties (props); mt =STATIC_TYPE (object_new (TYPE_SUBCLASS ));qdev_init_nofail (DEVICE (mt));
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 03/10] qdev: move qdev_prop_register_global_list() to tests
Quoted 3 lines · Marc-André Lureau
The function is only used by a test, move it there.
Signed-off-by Marc-André Lureau <[email protected]>
I would still like to reduce duplication between machine_register_compat_props() and accel_register_compat_props(), but that doesn't mean we should keep qdev_prop_register_global_list() just because we plan to refactor/reuse it some day.
Signature · 1 line
Eduardo
PATCH v2 4/10 qom/globals: move qdev globals to qom
In reply to Marc-André LureauMove the global properties handling to QOM. For now, this is just a simple moving & renaming and the globals are only applied to TYPE_DEVICE. The following patches will generalize the global handling to other object types.
--- include/hw/qdev-core.h | 20 --------- include/hw/qdev-properties.h | 4 +- include/qom/globals.h | 32 +++++++++++++++ accel/accel.c | 2 +- hw/core/machine.c | 2 +- hw/core/qdev-properties.c | 67 ------------------------------ hw/core/qdev.c | 2 +- qom/cpu.c | 2 +- qom/globals.c | 75 ++++++++++++++++++++++++++++++++++ target/i386/cpu.c | 2 +- target/sparc/cpu.c | 2 +- tests/test-qdev-global-props.c | 6 +-- vl.c | 6 +-- qom/Makefile.objs | 2 +- 14 files changed, 121 insertions(+), 103 deletions(-) create mode 100644 include/qom/globals.h create mode 100644 qom/globals.c
include/hw/qdev-core.h +0 -20
@@ -247,26 +247,6 @@ struct PropertyInfo {ObjectPropertyRelease *release; }; -/** -* GlobalProperty: -* @user_provided: Set to true if property comes from user-provided config -* (command-line or config file). -* @used: Set to true if property was used when initializing a device. -* @errp: Error destination, used like first argument of error_setg() -* in case property setting fails later. If @errp is NULL, we -* print warnings instead of ignoring errors silently. For -* hotplugged devices, errp is always ignored and warnings are -* printed instead. -*/ -typedef struct GlobalProperty { -const char *driver; -const char *property; -const char *value; -bool user_provided; -bool used; -Error **errp; -}GlobalProperty ; -/*** Board API. This should go away once we have a machine config file. ***/ DeviceState *qdev_create (BusState *bus,const char *name);
include/hw/qdev-properties.h +1 -3
@@ -4,6 +4,7 @@#include "qapi/qapi-types-block.h" #include "qapi/qapi-types-misc.h" #include "hw/qdev-core.h" +#include "qom/globals.h" /*** qdev-properties.c ***/
@@ -248,9 +249,6 @@ void qdev_prop_set_enum(DeviceState *dev, const char *name, int value);/* FIXME: Remove opaque pointer properties. */ void qdev_prop_set_ptr (DeviceState *dev,const char *name,void *value); -void qdev_prop_register_global (GlobalProperty *prop); -int qdev_prop_check_globals (void ); -void qdev_prop_set_globals (DeviceState *dev);void error_set_from_qdev_prop_error (Error **errp,int ret,DeviceState *dev,Property *prop,const char *value);
include/qom/globals.h new file +32 -0
@@ -0,0 +1,32 @@ +#ifndef QOM_GLOBALS +#define QOM_GLOBALS + +#include "qom/object.h" + +/** +* GlobalProperty: +* @user_provided: Set to true if property comes from user-provided config +* (command-line or config file). +* @used: Set to true if property was used when initializing a device. +* @errp: Error destination, used like first argument of error_setg() +* in case property setting fails later. If @errp is NULL, we +* print warnings instead of ignoring errors silently. For +* hotplugged devices, errp is always ignored and warnings are +* printed instead. +*/ +typedef struct GlobalProperty { +const char *driver; +const char *property; +const char *value; +bool user_provided; +bool used; +Error **errp; +}GlobalProperty ; + +void object_property_register_global (GlobalProperty *prop); + +void object_property_set_globals (Object *obj); + +int object_property_check_globals (void ); + +#endif
accel/accel.c +1 -1
@@ -127,7 +127,7 @@ void accel_register_compat_props(AccelState *accel)for (; prop && prop->driver; prop++) {/* Any compat_props must never cause error */ prop->errp = &error_abort; -qdev_prop_register_global (prop); +object_property_register_global (prop); } }
hw/core/machine.c +1 -1
@@ -858,7 +858,7 @@ void machine_register_compat_props(MachineState *machine) p = g_array_index(mc->compat_props, GlobalProperty *, i);/* Machine compat_props must never cause errors: */ p->errp = &error_abort; -qdev_prop_register_global (p); +object_property_register_global (p); } }
hw/core/qdev-properties.c +0 -67
73 lines not on this page · raw message
hw/core/qdev.c +1 -1
@@ -972,7 +972,7 @@ static void device_initfn(Object *obj)static void device_post_init (Object *obj) { -qdev_prop_set_globals (DEVICE (obj)); +object_property_set_globals (obj); }/* Unlink device from bus and free the structure. */
qom/cpu.c +1 -1
@@ -313,7 +313,7 @@ static void cpu_common_parse_features(const char *typename, char *features, prop->property =g_strdup (featurestr); prop->value =g_strdup (val); prop->errp = &error_fatal; -qdev_prop_register_global (prop); +object_property_register_global (prop); }else {error_setg (errp,"Expected key=value format, found %s." , featurestr);
qom/globals.c new file +75 -0
75 lines not on this page · raw message
target/i386/cpu.c +1 -1
@@ -3414,7 +3414,7 @@ static void x86_cpu_parse_featurestr(const char *typename, char *features, prop->property =g_strdup (name); prop->value =g_strdup (val); prop->errp = &error_fatal; -qdev_prop_register_global (prop); +object_property_register_global (prop); }if (ambiguous) {
target/sparc/cpu.c +1 -1
@@ -112,7 +112,7 @@ cpu_add_feat_as_prop(const char *typename, const char *name, const char *val) prop->property =g_strdup (name); prop->value =g_strdup (val); prop->errp = &error_fatal; -qdev_prop_register_global (prop); +object_property_register_global (prop); }/* Parse "+feature,-feature,feature=foo" CPU feature string */
tests/test-qdev-global-props.c +3 -3
@@ -94,7 +94,7 @@ static void register_global_properties(GlobalProperty *props)int i;for (i =0 ; props[i].driver !=NULL ; i++) { -qdev_prop_register_global (props + i); +object_property_register_global (props + i); } }
@@ -233,7 +233,7 @@ static void test_dynamic_globalprop_subprocess(void) g_assert_cmpuint(mt->prop1, ==, 101); g_assert_cmpuint(mt->prop2, ==, 102); - all_used =qdev_prop_check_globals (); + all_used =object_property_check_globals (); g_assert_cmpuint(all_used, ==, 1);g_assert (props[0 ].used);g_assert (props[1 ].used);
@@ -278,7 +278,7 @@ static void test_dynamic_globalprop_nouser_subprocess(void) g_assert_cmpuint(mt->prop1, ==, 101); g_assert_cmpuint(mt->prop2, ==, 102); - all_used =qdev_prop_check_globals (); + all_used =object_property_check_globals (); g_assert_cmpuint(all_used, ==, 0);g_assert (props[0 ].used);g_assert (props[1 ].used);
vl.c +3 -3
@@ -926,7 +926,7 @@ static void configure_rtc(QemuOpts *opts) .value = "slew", }; -qdev_prop_register_global (&slew_lost_ticks); +object_property_register_global (&slew_lost_ticks); }else if (!strcmp (value,"none" )) {/* discard is default */ }else {
@@ -2922,7 +2922,7 @@ static int global_init_func(void *opaque, QemuOpts *opts, Error **errp) g->value =qemu_opt_get (opts,"value" ); g->user_provided = true; g->errp = &error_fatal; -qdev_prop_register_global (g); +object_property_register_global (g);return 0 ; }
@@ -4604,7 +4604,7 @@ int main(int argc, char **argv, char **envp)replay_vmstate_init (); } -qdev_prop_check_globals (); +object_property_check_globals ();if (vmstate_dump_file) {/* dump and exit */ dump_vmstate_json_to_file (vmstate_dump_file);
qom/Makefile.objs +1 -1
@@ -1,4 +1,4 @@ qom-obj-y = object.o container.o qom-qobject.o -qom-obj-y += object_interfaces.o +qom-obj-y += object_interfaces.o globals.o common-obj-y = cpu.o
Signature · 1 line
2.19.0.271.gfe8321ec05
PATCH v2 5/10 qom/globals: generalize object_property_set_globals()
In reply to Marc-André LureauHandle calls of object_property_set_globals() with any object type, but only apply globals to TYPE_DEVICE & TYPE_USER_CREATABLE.
--- qom/globals.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
qom/globals.c +14 -8
@@ -15,22 +15,28 @@ void object_property_register_global(GlobalProperty *prop)void object_property_set_globals (Object *obj) { -DeviceState *dev =DEVICE (obj);GList *l; +DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); + +if (!dev && !IS_USER_CREATABLE (obj)) { +/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ +return ; + }for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ; -if (object_dynamic_cast (OBJECT (dev), prop->driver) ==NULL ) { +if (object_dynamic_cast (obj, prop->driver) ==NULL ) {continue ; } prop->used = true; -object_property_parse (OBJECT (dev), prop->value, prop->property, &err); +object_property_parse (obj, prop->value, prop->property, &err);if (err !=NULL ) {error_prepend (&err,"can't apply global %s.%s=%s: " , prop->driver, prop->property, prop->value); -if (!dev->hotplugged && prop->errp) { + +if (dev && !dev->hotplugged && prop->errp) {error_propagate (prop->errp, err); }else {assert (prop->user_provided);
@@ -56,15 +62,15 @@ int object_property_check_globals(void)continue ; } oc =object_class_by_name (prop->driver); - oc =object_class_dynamic_cast (oc,TYPE_DEVICE ); -if (!oc) { + dc = (DeviceClass *)object_class_dynamic_cast (oc,TYPE_DEVICE ); +if (!IS_USER_CREATABLE_CLASS (oc) && !dc) {warn_report ("global %s.%s has invalid class name" , prop->driver, prop->property); ret =1 ;continue ; } - dc =DEVICE_CLASS (oc); -if (!dc->hotpluggable && !prop->used) { + +if (dc && !dc->hotpluggable) {warn_report ("global %s.%s=%s not used" , prop->driver, prop->property, prop->value); ret =1 ;
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 05/10] qom/globals: generalize object_property_set_globals()
Quoted 14 lines · Marc-André Lureau
Handle calls of
object_property_set_globals()with any object type, but only apply globals toTYPE_DEVICE&TYPE_USER_CREATABLE.Signed-off-by Marc-André Lureau <[email protected]>--- qom/globals.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)qom/globals.c +0
-0@@ -15,22 +15,28 @@ void object_property_register_global(GlobalProperty *prop)
qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 24
Quoted 10 lines
qom/globals.c +6
-1void object_property_set_globals (Object *obj) { -DeviceState *dev =DEVICE (obj);GList *l; +DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); + +if (!dev && !IS_USER_CREATABLE (obj)) { +/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ +return ; + }
This is core QOM code, ideally type-specific code doesn't belong here.
This also duplicates the purpose of the ObjectClass::set_globals flag you have added on another patch, doesn't it? I suggest just dropping this hunk, and letting callers decide if it's appropriate to call object_property_set_globals() or not.
Quoted 8 lines
qom/globals.c +1
-1for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ; -if (object_dynamic_cast (OBJECT (dev), prop->driver) ==NULL ) { +if (object_dynamic_cast (obj, prop->driver) ==NULL ) {continue ;
qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 39
Quoted 10 lines
qom/globals.c +3
-2} prop->used = true; -object_property_parse (OBJECT (dev), prop->value, prop->property, &err); +object_property_parse (obj, prop->value, prop->property, &err);if (err !=NULL ) {error_prepend (&err,"can't apply global %s.%s=%s: " , prop->driver, prop->property, prop->value); -if (!dev->hotplugged && prop->errp) { + +if (dev && !dev->hotplugged && prop->errp) {
Hmm, more type-specific code. Can't we get rid of the dev->hotplugged check here?
Maybe changing the function signature to:
void object_property_set_globals(Object *obj, bool propagate_errors);
and let the caller decide?
Or we could try to find a way to get rid of prop->errp. I never really liked that hack, anyway.
Anyway, I won't mind keeping this code as-is if the solution is too complex.
qom/globals.c int object_property_check_globals(void) · line 66
Quoted 11 lines
qom/globals.c +2
-2error_propagate (prop->errp, err); }else {assert (prop->user_provided);@@ -56,15 +62,15 @@ int object_property_check_globals(void)continue ; } oc =object_class_by_name (prop->driver); - oc =object_class_dynamic_cast (oc,TYPE_DEVICE ); -if (!oc) { + dc = (DeviceClass *)object_class_dynamic_cast (oc,TYPE_DEVICE ); +if (!IS_USER_CREATABLE_CLASS (oc) && !dc) {
This could use the ObjectClass::set_globals flag you have added.
qom/globals.c int object_property_check_globals(void) · line 73
Quoted 9 lines
qom/globals.c +2
-2warn_report ("global %s.%s has invalid class name" , prop->driver, prop->property); ret =1 ;continue ; } - dc =DEVICE_CLASS (oc); -if (!dc->hotpluggable && !prop->used) { + +if (dc && !dc->hotpluggable) {
I wonder how we could get rid of this type-specific check. Maybe a ObjectClass::only_init_time_globals flag, automatically initialized by TYPE_DEVICE based on DeviceClass::hotpluggable?
In this case, I'm not sure it would be worth the extra complexity. The type-specific code is just for a warning, anyway, so it's not a big deal.
Quoted 7 lines
qom/globals.c +0
-0warn_report ("global %s.%s=%s not used" , prop->driver, prop->property, prop->value); ret =1 ;Signature · 1 line
2.19.0.271.gfe8321ec05
Signature · 1 line
Eduardo
Re: [Qemu-devel] [PATCH v2 05/10] qom/globals: generalize object_property_set_globals()
Quoted 91 lines · On Wed, 31 Oct 2018 17:12:56 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 14 lines · Marc-André Lureau
Handle calls of
object_property_set_globals()with any object type, but only apply globals toTYPE_DEVICE&TYPE_USER_CREATABLE.Signed-off-by Marc-André Lureau <[email protected]>--- qom/globals.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)qom/globals.c +0
-0@@ -15,22 +15,28 @@ void object_property_register_global(GlobalProperty *prop)qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 24
Quoted 10 lines
qom/globals.c +6
-1void object_property_set_globals (Object *obj) { -DeviceState *dev =DEVICE (obj);GList *l; +DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); + +if (!dev && !IS_USER_CREATABLE (obj)) { +/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ +return ; + }This is core QOM code, ideally type-specific code doesn't belong here.
This also duplicates the purpose of the
ObjectClass::set_globalsflag you have added on another patch, doesn't it? I suggest just dropping this hunk, and letting callers decide if it's appropriate to callobject_property_set_globals()or not.Quoted 8 lines
qom/globals.c +1
-1for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ; -if (object_dynamic_cast (OBJECT (dev), prop->driver) ==NULL ) { +if (object_dynamic_cast (obj, prop->driver) ==NULL ) {continue ;qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 39
Quoted 10 lines
qom/globals.c +3
-2} prop->used = true; -object_property_parse (OBJECT (dev), prop->value, prop->property, &err); +object_property_parse (obj, prop->value, prop->property, &err);if (err !=NULL ) {error_prepend (&err,"can't apply global %s.%s=%s: " , prop->driver, prop->property, prop->value); -if (!dev->hotplugged && prop->errp) { + +if (dev && !dev->hotplugged && prop->errp) {Hmm, more type-specific code. Can't we get rid of the
dev->hotpluggedcheck here?Maybe changing the function signature to:
voidobject_property_set_globals(Object *obj, bool propagate_errors);
and let the caller decide?Or we could try to find a way to get rid of
prop->errp. I never really liked that hack, anyway.Anyway, I won't mind keeping this code as-is if the solution is too complex.
qom/globals.c int object_property_check_globals(void) · line 66
Quoted 11 lines
qom/globals.c +2
-2error_propagate (prop->errp, err); }else {assert (prop->user_provided);@@ -56,15 +62,15 @@ int object_property_check_globals(void)continue ; } oc =object_class_by_name (prop->driver); - oc =object_class_dynamic_cast (oc,TYPE_DEVICE ); -if (!oc) { + dc = (DeviceClass *)object_class_dynamic_cast (oc,TYPE_DEVICE ); +if (!IS_USER_CREATABLE_CLASS (oc) && !dc) {This could use the
ObjectClass::set_globalsflag you have added.qom/globals.c int object_property_check_globals(void) · line 73
Quoted 9 lines
qom/globals.c +2
-2warn_report ("global %s.%s has invalid class name" , prop->driver, prop->property); ret =1 ;continue ; } - dc =DEVICE_CLASS (oc); -if (!dc->hotpluggable && !prop->used) { + +if (dc && !dc->hotpluggable) {
Quoted 3 lines
I wonder how we could get rid of this type-specific check. Maybe a
ObjectClass::only_init_time_globalsflag, automatically initialized byTYPE_DEVICEbased onDeviceClass::hotpluggable?
in v1, I've suggested to add a hook something like
ObjectClass::set_globals(Object *obj)
that will handle type specific code and probably
drop instance_post_init() hook.
that would be better than adding boolean ObjectClass::set_globals as it could serve as both a flag and a type specific handler. So in the end we would end up replacing instance_post_init() with set_globals() hook.
Quoted 13 lines
In this case, I'm not sure it would be worth the extra complexity. The type-specific code is just for a warning, anyway, so it's not a big deal.
Quoted 7 lines
qom/globals.c +0
-0warn_report ("global %s.%s=%s not used" , prop->driver, prop->property, prop->value); ret =1 ;Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 05/10] qom/globals: generalize object_property_set_globals()
Quoted 101 lines · Igor Mammedov
Quoted 91 lines · On Wed, 31 Oct 2018 17:12:56 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 14 lines · Marc-André Lureau
Handle calls of
object_property_set_globals()with any object type, but only apply globals toTYPE_DEVICE&TYPE_USER_CREATABLE.Signed-off-by Marc-André Lureau <[email protected]>--- qom/globals.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)qom/globals.c +0
-0@@ -15,22 +15,28 @@ void object_property_register_global(GlobalProperty *prop)qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 24
Quoted 10 lines
qom/globals.c +6
-1void object_property_set_globals (Object *obj) { -DeviceState *dev =DEVICE (obj);GList *l; +DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); + +if (!dev && !IS_USER_CREATABLE (obj)) { +/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ +return ; + }This is core QOM code, ideally type-specific code doesn't belong here.
This also duplicates the purpose of the
ObjectClass::set_globalsflag you have added on another patch, doesn't it? I suggest just dropping this hunk, and letting callers decide if it's appropriate to callobject_property_set_globals()or not.Quoted 8 lines
qom/globals.c +1
-1for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ; -if (object_dynamic_cast (OBJECT (dev), prop->driver) ==NULL ) { +if (object_dynamic_cast (obj, prop->driver) ==NULL ) {continue ;qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 39
Quoted 10 lines
qom/globals.c +3
-2} prop->used = true; -object_property_parse (OBJECT (dev), prop->value, prop->property, &err); +object_property_parse (obj, prop->value, prop->property, &err);if (err !=NULL ) {error_prepend (&err,"can't apply global %s.%s=%s: " , prop->driver, prop->property, prop->value); -if (!dev->hotplugged && prop->errp) { + +if (dev && !dev->hotplugged && prop->errp) {Hmm, more type-specific code. Can't we get rid of the
dev->hotpluggedcheck here?Maybe changing the function signature to:
voidobject_property_set_globals(Object *obj, bool propagate_errors);
and let the caller decide?Or we could try to find a way to get rid of
prop->errp. I never really liked that hack, anyway.Anyway, I won't mind keeping this code as-is if the solution is too complex.
qom/globals.c int object_property_check_globals(void) · line 66
Quoted 11 lines
qom/globals.c +2
-2error_propagate (prop->errp, err); }else {assert (prop->user_provided);@@ -56,15 +62,15 @@ int object_property_check_globals(void)continue ; } oc =object_class_by_name (prop->driver); - oc =object_class_dynamic_cast (oc,TYPE_DEVICE ); -if (!oc) { + dc = (DeviceClass *)object_class_dynamic_cast (oc,TYPE_DEVICE ); +if (!IS_USER_CREATABLE_CLASS (oc) && !dc) {This could use the
ObjectClass::set_globalsflag you have added.qom/globals.c int object_property_check_globals(void) · line 73
Quoted 9 lines
qom/globals.c +2
-2warn_report ("global %s.%s has invalid class name" , prop->driver, prop->property); ret =1 ;continue ; } - dc =DEVICE_CLASS (oc); -if (!dc->hotpluggable && !prop->used) { + +if (dc && !dc->hotpluggable) {Quoted 3 lines
I wonder how we could get rid of this type-specific check. Maybe a
ObjectClass::only_init_time_globalsflag, automatically initialized byTYPE_DEVICEbased onDeviceClass::hotpluggable?in v1, I've suggested to add a hook something like
ObjectClass::set_globals(Object *obj)
Quoted 7 lines
that will handle type specific code and probably
dropinstance_post_init()hook.that would be better than adding boolean
ObjectClass::set_globalsas it could serve as both a flag and a type specific handler. So in the end we would end up replacinginstance_post_init()withset_globals()hook.
That could work, but:
I really have the impression we're overengineering this. We can get rid of most complexity if we don't try to make -global work with TYPE_USER_CREATABLE too.
We don't need to support -global for backend objects, and most of the complexity in this code exists only because of -global. There's no reason to make the complexity of -global sneak into the core QOM code.
It would be much simpler if we just make device_post_init() do:
Error *global_errors = NULL;
/* machine_register_compat_props() won't exist anymore. */
object_apply_props(current_machine->compat_props, &error_abort);
/* accel_register_compat_props() won't exist anymore. */
object_apply_props(current_machine->accel->compat_props, &error_abort);
/* This will apply only -global options, _not_ compat props: */
object_apply_props(qdev_global_properties, &global_errors);
if (global_errors) {
//TODO: find a way to report error back to device_add or to main()
warn_report_err(global_errors);
}...and make user_creatable_post_init() just do:
/* This will apply only compat_props: */ object_apply_props(current_machine->compat_props, &error_abort);
...with no support for -global.
This would also let us get rid of GlobalProperty::errp, which is a hack.
And it would make the code less sensitive to subtle initialization ordering changes, which is a problem with the current code.
But, as I said on the reply to 10/10, for QEMU 3.1 I'd prefer to simply add a:
bool MachineClass::canonical_path_for_ramblock_id
field, because we're past soft freeze, and deal with global/compat_props cleanups after QEMU 3.1.
Quoted 16 lines
Quoted 15 lines
In this case, I'm not sure it would be worth the extra complexity. The type-specific code is just for a warning, anyway, so it's not a big deal.
Quoted 7 lines
qom/globals.c +0
-0warn_report ("global %s.%s=%s not used" , prop->driver, prop->property, prop->value); ret =1 ;Signature · 1 line
2.19.0.271.gfe8321ec05
Signature · 1 line
Eduardo
Re: [Qemu-devel] [PATCH v2 05/10] qom/globals: generalize object_property_set_globals()
Quoted 137 lines · On Thu, 1 Nov 2018 12:27:45 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 101 lines · Igor Mammedov
Quoted 91 lines · On Wed, 31 Oct 2018 17:12:56 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 14 lines · Marc-André Lureau
Handle calls of
object_property_set_globals()with any object type, but only apply globals toTYPE_DEVICE&TYPE_USER_CREATABLE.Signed-off-by Marc-André Lureau <[email protected]>--- qom/globals.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)qom/globals.c +0
-0@@ -15,22 +15,28 @@ void object_property_register_global(GlobalProperty *prop)qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 24
Quoted 10 lines
qom/globals.c +6
-1void object_property_set_globals (Object *obj) { -DeviceState *dev =DEVICE (obj);GList *l; +DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); + +if (!dev && !IS_USER_CREATABLE (obj)) { +/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ +return ; + }This is core QOM code, ideally type-specific code doesn't belong here.
This also duplicates the purpose of the
ObjectClass::set_globalsflag you have added on another patch, doesn't it? I suggest just dropping this hunk, and letting callers decide if it's appropriate to callobject_property_set_globals()or not.Quoted 8 lines
qom/globals.c +1
-1for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ; -if (object_dynamic_cast (OBJECT (dev), prop->driver) ==NULL ) { +if (object_dynamic_cast (obj, prop->driver) ==NULL ) {continue ;qom/globals.c void object_property_register_global(GlobalProperty *prop) · line 39
Quoted 10 lines
qom/globals.c +3
-2} prop->used = true; -object_property_parse (OBJECT (dev), prop->value, prop->property, &err); +object_property_parse (obj, prop->value, prop->property, &err);if (err !=NULL ) {error_prepend (&err,"can't apply global %s.%s=%s: " , prop->driver, prop->property, prop->value); -if (!dev->hotplugged && prop->errp) { + +if (dev && !dev->hotplugged && prop->errp) {Hmm, more type-specific code. Can't we get rid of the
dev->hotpluggedcheck here?Maybe changing the function signature to:
voidobject_property_set_globals(Object *obj, bool propagate_errors);
and let the caller decide?Or we could try to find a way to get rid of
prop->errp. I never really liked that hack, anyway.Anyway, I won't mind keeping this code as-is if the solution is too complex.
qom/globals.c int object_property_check_globals(void) · line 66
Quoted 11 lines
qom/globals.c +2
-2error_propagate (prop->errp, err); }else {assert (prop->user_provided);@@ -56,15 +62,15 @@ int object_property_check_globals(void)continue ; } oc =object_class_by_name (prop->driver); - oc =object_class_dynamic_cast (oc,TYPE_DEVICE ); -if (!oc) { + dc = (DeviceClass *)object_class_dynamic_cast (oc,TYPE_DEVICE ); +if (!IS_USER_CREATABLE_CLASS (oc) && !dc) {This could use the
ObjectClass::set_globalsflag you have added.qom/globals.c int object_property_check_globals(void) · line 73
Quoted 9 lines
qom/globals.c +2
-2warn_report ("global %s.%s has invalid class name" , prop->driver, prop->property); ret =1 ;continue ; } - dc =DEVICE_CLASS (oc); -if (!dc->hotpluggable && !prop->used) { + +if (dc && !dc->hotpluggable) {Quoted 3 lines
I wonder how we could get rid of this type-specific check. Maybe a
ObjectClass::only_init_time_globalsflag, automatically initialized byTYPE_DEVICEbased onDeviceClass::hotpluggable?in v1, I've suggested to add a hook something like
ObjectClass::set_globals(Object *obj)Quoted 7 lines
that will handle type specific code and probably
dropinstance_post_init()hook.that would be better than adding boolean
ObjectClass::set_globalsas it could serve as both a flag and a type specific handler. So in the end we would end up replacinginstance_post_init()withset_globals()hook.That could work, but:
I really have the impression we're overengineering this. We can get rid of most complexity if we don't try to make -global work with
TYPE_USER_CREATABLEtoo.We don't need to support -global for backend objects, and most of the complexity in this code exists only because of -global. There's no reason to make the complexity of -global sneak into the core QOM code.
It would be much simpler if we just make
device_post_init()do:Error *global_errors = NULL; /* machine_register_compat_props() won't exist anymore. */ object_apply_props(current_machine->compat_props, &error_abort); /* accel_register_compat_props() won't exist anymore. */ object_apply_props(current_machine->accel->compat_props, &error_abort); /* This will apply only -global options, _not_ compat props: */ object_apply_props(qdev_global_properties, &global_errors); if (global_errors) { //TODO: find a way to report error back to device_add or to main() warn_report_err(global_errors); }
Quoted 6 lines
...and make
user_creatable_post_init()just do:/* This will apply only compat_props: */ object_apply_props(current_machine->compat_props, &error_abort);...with no support for -global.
that's looks promising and may actually be simpler,
all I need is to allow compat props affect backends for cases where backend changes affect ABI.
Quoted 7 lines
This would also let us get rid of
GlobalProperty::errp, which is a hack.And it would make the code less sensitive to subtle initialization ordering changes, which is a problem with the current code.
Quoted 5 lines
But, as I said on the reply to 10/10, for QEMU 3.1 I'd prefer to simply add a:
boolMachineClass::canonical_path_for_ramblock_id
field, because we're past soft freeze, and deal with global/compat_props cleanups after QEMU 3.1.
it's not really bug fix, more like a feature to let switching backends on destination host i.e. (ram on src and memfd on dst). Lets just postpone it for 3.2 instead of adding another hack
Mark,
are you fine with moving it post 3.1 timeframe?
PATCH v2 6/10 qom/object: set globals when initializing object
In reply to Marc-André LureauSet globals for all objects, although only TYPE_DEVICE & TYPE_USER_CREATABLE can have globals for now. Replaces the qdev post-init callback (which was the last called in the hierarchy order) by an explicit call during object creation after post-init, to maintain the call ordering.
--- hw/core/qdev.c | 6 ------ qom/object.c | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-)
hw/core/qdev.c +0 -6
@@ -970,11 +970,6 @@ static void device_initfn(Object *obj)QLIST_INIT (&dev->gpios); } -static void device_post_init (Object *obj) -{ -object_property_set_globals (obj); -} -/* Unlink device from bus and free the structure. */ static void device_finalize (Object *obj) {
@@ -1098,7 +1093,6 @@ static const TypeInfo device_type_info = { .parent = TYPE_OBJECT, .instance_size = sizeof(DeviceState), .instance_init = device_initfn, - .instance_post_init = device_post_init, .instance_finalize = device_finalize, .class_base_init = device_class_base_init, .class_init = device_class_init,
qom/object.c +2 -0
@@ -12,6 +12,7 @@#include "qemu/osdep.h" #include "qapi/error.h" +#include "qom/globals.h" #include "qom/object.h" #include "qom/object_interfaces.h" #include "qemu/cutils.h"
@@ -390,6 +391,7 @@ static void object_initialize_with_type(void *data, size_t size, TypeImpl *type) NULL, object_property_free);object_init_with_type (obj, type);object_post_init_with_type (obj, type); +object_property_set_globals (obj); }void object_initialize (void *data,size_t size,const char *typename)
Signature · 1 line
2.19.0.271.gfe8321ec05
PATCH v2 7/10 qom/object: add set_globals flags
In reply to Marc-André LureauGuard against calling object_property_set_globals() for all objects, check that the class flag set_globals is set before. No need to guard in object_property_set_globals() anymore.
Only QDev & user-creatable objects have set_globals set at this point.
--- include/qom/object.h | 1 + hw/core/qdev.c | 1 + qom/globals.c | 5 ----- qom/object.c | 5 ++++- qom/object_interfaces.c | 7 +++++++ 5 files changed, 13 insertions(+), 6 deletions(-)
include/qom/object.h +1 -0
@@ -400,6 +400,7 @@ struct ObjectClassObjectUnparent *unparent;GHashTable *properties; +bool set_globals; };/**
hw/core/qdev.c +1 -0
@@ -1042,6 +1042,7 @@ static void device_class_init(ObjectClass *class, void *data)*/ dc->hotpluggable = true; dc->user_creatable = true; + class->set_globals = true; } void device_class_set_parent_reset(DeviceClass *dc,
qom/globals.c +0 -5
@@ -18,11 +18,6 @@ void object_property_set_globals(Object *obj)GList *l;DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); -if (!dev && !IS_USER_CREATABLE (obj)) { -/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ -return ; - } -for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ;
qom/object.c +4 -1
@@ -259,6 +259,7 @@ static void type_initialize_interface(TypeImpl *ti, TypeImpl *interface_type, ti->class->interfaces =g_slist_append (ti->class->interfaces, iface_impl->class); + ti->class->set_globals |= iface_impl->class->set_globals; }static void object_property_free (gpointer data)
@@ -391,7 +392,9 @@ static void object_initialize_with_type(void *data, size_t size, TypeImpl *type) NULL, object_property_free);object_init_with_type (obj, type);object_post_init_with_type (obj, type); -object_property_set_globals (obj); +if (object_get_class (obj)->set_globals) { +object_property_set_globals (obj); + } }void object_initialize (void *data,size_t size,const char *typename)
qom/object_interfaces.c +7 -0
@@ -184,12 +184,19 @@ void user_creatable_cleanup(void)object_unparent (object_get_objects_root ()); } +static void user_creatable_class_init (ObjectClass *klass,void *data) +{ + klass->set_globals = true; +} + +static void register_types (void ) {static const TypeInfo uc_interface_info = { .name =TYPE_USER_CREATABLE , .parent =TYPE_INTERFACE , .class_size =sizeof (UserCreatableClass), + .class_init = user_creatable_class_init, };type_register_static (&uc_interface_info);
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 07/10] qom/object: add set_globals flags
Quoted 8 lines · Marc-André Lureau
Guard against calling
object_property_set_globals()for all objects, check that the class flagset_globalsis set before. No need to guard inobject_property_set_globals()anymore.Only QDev & user-creatable objects have
set_globalsset at this point.Suggested-by Igor Mammedov <[email protected]>Signed-off-by Marc-André Lureau <[email protected]>
Should we squash this into patch 06/10?
The object_property_set_globals() hunk could be squashed into patch 05/10.
Quoted 99 lines
--- include/qom/object.h | 1 + hw/core/qdev.c | 1 + qom/globals.c | 5 ----- qom/object.c | 5 ++++- qom/object_interfaces.c | 7 +++++++ 5 files changed, 13 insertions(+), 6 deletions(-)include/qom/object.h +1
-0@@ -400,6 +400,7 @@ struct ObjectClassObjectUnparent *unparent;GHashTable *properties; +bool set_globals; };/** hw/core/qdev.c +1
-0@@ -1042,6 +1042,7 @@ static void device_class_init(ObjectClass *class, void *data)*/ dc->hotpluggable = true; dc->user_creatable = true; + class->set_globals = true; } void device_class_set_parent_reset(DeviceClass *dc,qom/globals.c +0
-5@@ -18,11 +18,6 @@ void object_property_set_globals(Object *obj)GList *l;DeviceState *dev = (DeviceState *)object_dynamic_cast (obj,TYPE_DEVICE ); -if (!dev && !IS_USER_CREATABLE (obj)) { -/* only TYPE_DEVICE and TYPE_USER_CREATABLE support globals */ -return ; - } -for (l = global_props; l; l = l->next) {GlobalProperty *prop = l->data;Error *err =NULL ;qom/object.c +4
-1@@ -259,6 +259,7 @@ static void type_initialize_interface(TypeImpl *ti, TypeImpl *interface_type, ti->class->interfaces =g_slist_append (ti->class->interfaces, iface_impl->class); + ti->class->set_globals |= iface_impl->class->set_globals; }static void object_property_free (gpointer data)@@ -391,7 +392,9 @@ static void object_initialize_with_type(void *data, size_t size, TypeImpl *type) NULL, object_property_free);object_init_with_type (obj, type);object_post_init_with_type (obj, type); -object_property_set_globals (obj); +if (object_get_class (obj)->set_globals) { +object_property_set_globals (obj); + } }void object_initialize (void *data,size_t size,const char *typename)qom/object_interfaces.c +7
-0@@ -184,12 +184,19 @@ void user_creatable_cleanup(void)object_unparent (object_get_objects_root ()); } +static void user_creatable_class_init (ObjectClass *klass,void *data) +{ + klass->set_globals = true; +} + +static void register_types (void ) {static const TypeInfo uc_interface_info = { .name =TYPE_USER_CREATABLE , .parent =TYPE_INTERFACE , .class_size =sizeof (UserCreatableClass), + .class_init = user_creatable_class_init, };type_register_static (&uc_interface_info);Signature · 1 line
2.19.0.271.gfe8321ec05
Signature · 1 line
Eduardo
PATCH v2 8/10 tests: add user-creatable test to test-qdev-global-props
In reply to Marc-André LureauAdd a TYPE_USER_CREATABLE object global property check.
Rename the test, since it is no longer QDev-specific.
---
...dev-global-props.c => test-global-props.c} | 128 ++++++++++++++++--
tests/Makefile.include | 4 +-
2 files changed, 117 insertions(+), 15 deletions(-)
rename tests/{test-qdev-global-props.c => test-global-props.c} (74%)tests/test-global-props.c renamed from tests/test-qdev-global-props.c +115 -13
@@ -27,7 +27,100 @@#include "hw/qdev.h" #include "qom/object.h" #include "qapi/visitor.h" +#include "qom/object_interfaces.h" +#define TYPE_DUMMY "qemu-dummy" + +typedef struct DummyObject DummyObject ; +typedef struct DummyObjectClass DummyObjectClass ; + +#define DUMMY_OBJECT (obj) \ + OBJECT_CHECK(DummyObject, (obj), TYPE_DUMMY) + +struct DummyObject { +Object parent_obj; + +char *sv; +}; + +struct DummyObjectClass { +ObjectClass parent_class; +}; + +static void dummy_set_sv (Object *obj, +const char *value, +Error **errp) +{ +DummyObject *dobj =DUMMY_OBJECT (obj); + +g_free (dobj->sv); + dobj->sv =g_strdup (value); +} + +static char *dummy_get_sv (Object *obj, +Error **errp) +{ +DummyObject *dobj =DUMMY_OBJECT (obj); + +return g_strdup (dobj->sv); +} + + + +static void dummy_class_init (ObjectClass *cls,void *data) +{ +object_class_property_add_str (cls,"sv" , + dummy_get_sv, + dummy_set_sv, +NULL ); +} + + +static void dummy_finalize (Object *obj) +{ +DummyObject *dobj =DUMMY_OBJECT (obj); + +g_free (dobj->sv); +} + + +static const TypeInfo dummy_info = { + .name =TYPE_DUMMY , + .parent =TYPE_OBJECT , + .instance_size =sizeof (DummyObject), + .instance_finalize = dummy_finalize, + .class_size =sizeof (DummyObjectClass), + .class_init = dummy_class_init, + .interfaces = (InterfaceInfo []) { + {TYPE_USER_CREATABLE }, + { } + } +}; + +static void test_global_props_uc_subprocess (void ) +{ +DummyObject *d; +static GlobalProperty gp = { +TYPE_DUMMY ,"sv" ,"foobar" , + }; + + d =DUMMY_OBJECT (object_new (TYPE_DUMMY )); +g_assert_null (d->sv); +object_unref (OBJECT (d)); + +object_property_register_global (&gp); + d =DUMMY_OBJECT (object_new (TYPE_DUMMY )); + g_assert_cmpstr(d->sv, ==, "foobar"); +object_unref (OBJECT (d)); +} + +static void test_global_props_uc (void ) +{ +g_test_trap_subprocess ("/global-props/usercreatable/subprocess" ,0 ,0 ); +g_test_trap_assert_passed (); +g_test_trap_assert_stderr ("" ); +g_test_trap_assert_stdout ("" ); +}#define TYPE_STATIC_PROPS "static_prop_type"#define STATIC_TYPE (obj) \
@@ -83,7 +176,8 @@ static void test_static_prop_subprocess(void)static void test_static_prop (void ) { -g_test_trap_subprocess ("/qdev/properties/static/default/subprocess" ,0 ,0 ); +g_test_trap_subprocess ("/global-props/qdev/static/default/subprocess" , +0 ,0 );g_test_trap_assert_passed ();g_test_trap_assert_stderr ("" );g_test_trap_assert_stdout ("" );
@@ -119,7 +213,7 @@ static void test_static_globalprop_subprocess(void)static void test_static_globalprop (void ) { -g_test_trap_subprocess ("/qdev/properties/static/global/subprocess" ,0 ,0 ); +g_test_trap_subprocess ("/global-props/qdev/static/global/subprocess" ,0 ,0 );g_test_trap_assert_passed ();g_test_trap_assert_stderr ("" );g_test_trap_assert_stdout ("" );
@@ -245,7 +339,8 @@ static void test_dynamic_globalprop_subprocess(void)static void test_dynamic_globalprop (void ) { -g_test_trap_subprocess ("/qdev/properties/dynamic/global/subprocess" ,0 ,0 ); +g_test_trap_subprocess ("/global-props/qdev/dynamic/global/subprocess" , +0 ,0 );g_test_trap_assert_passed ();g_test_trap_assert_stderr_unmatched ("*prop1*" );g_test_trap_assert_stderr_unmatched ("*prop2*" );
@@ -290,7 +385,8 @@ static void test_dynamic_globalprop_nouser_subprocess(void)static void test_dynamic_globalprop_nouser (void ) { -g_test_trap_subprocess ("/qdev/properties/dynamic/global/nouser/subprocess" ,0 ,0 ); +g_test_trap_subprocess ("/global-props/qdev" +"/dynamic/global/nouser/subprocess" ,0 ,0 );g_test_trap_assert_passed ();g_test_trap_assert_stderr ("" );g_test_trap_assert_stdout ("" );
@@ -323,6 +419,7 @@ int main(int argc, char **argv)g_test_init (&argc, &argv,NULL );module_call_init (MODULE_INIT_QOM ); +type_register_static (&dummy_info);type_register_static (&static_prop_type);type_register_static (&subclass_type);type_register_static (&dynamic_prop_type);
@@ -330,27 +427,32 @@ int main(int argc, char **argv)type_register_static (&nohotplug_type);type_register_static (&nondevice_type); -g_test_add_func ("/qdev/properties/static/default/subprocess" , +g_test_add_func ("/global-props/usercreatable/subprocess" , + test_global_props_uc_subprocess); +g_test_add_func ("/global-props/usercreatable" , + test_global_props_uc); + +g_test_add_func ("/global-props/qdev/static/default/subprocess" , test_static_prop_subprocess); -g_test_add_func ("/qdev/properties/static/default" , +g_test_add_func ("/global-props/qdev/static/default" , test_static_prop); -g_test_add_func ("/qdev/properties/static/global/subprocess" , +g_test_add_func ("/global-props/qdev/static/global/subprocess" , test_static_globalprop_subprocess); -g_test_add_func ("/qdev/properties/static/global" , +g_test_add_func ("/global-props/qdev/static/global" , test_static_globalprop); -g_test_add_func ("/qdev/properties/dynamic/global/subprocess" , +g_test_add_func ("/global-props/qdev/dynamic/global/subprocess" , test_dynamic_globalprop_subprocess); -g_test_add_func ("/qdev/properties/dynamic/global" , +g_test_add_func ("/global-props/qdev/dynamic/global" , test_dynamic_globalprop); -g_test_add_func ("/qdev/properties/dynamic/global/nouser/subprocess" , +g_test_add_func ("/global-props/qdev/dynamic/global/nouser/subprocess" , test_dynamic_globalprop_nouser_subprocess); -g_test_add_func ("/qdev/properties/dynamic/global/nouser" , +g_test_add_func ("/global-props/qdev/dynamic/global/nouser" , test_dynamic_globalprop_nouser); -g_test_add_func ("/qdev/properties/global/subclass" , +g_test_add_func ("/global-props/qdev/global/subclass" , test_subclass_global_props);g_test_run ();
tests/Makefile.include +2 -2
@@ -88,7 +88,7 @@ check-unit-y += tests/test-qht$(EXESUF) check-unit-y += tests/test-qht-par$(EXESUF) check-unit-y += tests/test-bitops$(EXESUF) check-unit-y += tests/test-bitcnt$(EXESUF) -check-unit-y += tests/test-qdev-global-props$(EXESUF) +check-unit-y += tests/test-global-props$(EXESUF) check-unit-y += tests/check-qom-interface$(EXESUF) check-unit-y += tests/check-qom-proplist$(EXESUF) check-unit-y += tests/test-qemu-opts$(EXESUF)
@@ -557,7 +557,7 @@ tests/atomic64-bench$(EXESUF): tests/atomic64-bench.o $(test-util-obj-y) tests/fp/%: $(MAKE) -C $(dir $@) $(notdir $@) -tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \ +tests/test-global-props$(EXESUF): tests/test-global-props.o \ hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\ hw/core/bus.o \ hw/core/irq.o \
Signature · 1 line
2.19.0.271.gfe8321ec05
PATCH v2 9/10 hw/i386: add pc-i440fx-3.1 & pc-q35-3.1
In reply to Marc-André LureauThe following patch is going to add compatiblity parameters.
--- include/hw/i386/pc.h | 2 +- hw/i386/pc_piix.c | 15 ++++++++++++--- hw/i386/pc_q35.c | 13 +++++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-)
include/hw/i386/pc.h +1 -1
@@ -300,7 +300,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); .driver = TYPE_X86_CPU,\ .property = "x-hv-synic-kvm-only",\ .value = "on",\ - } + },#define PC_COMPAT_2_12 \ HW_COMPAT_2_12 \
hw/i386/pc_piix.c +12 -3
@@ -428,21 +428,30 @@ static void pc_i440fx_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE ); } -static void pc_i440fx_3_0_machine_options (MachineClass *m) +static void pc_i440fx_3_1_machine_options (MachineClass *m) {pc_i440fx_machine_options (m); m->alias ="pc" ; m->is_default =1 ; } +DEFINE_I440FX_MACHINE (v3_1,"pc-i440fx-3.1" ,NULL , + pc_i440fx_3_1_machine_options); + +static void pc_i440fx_3_0_machine_options (MachineClass *m) +{ +pc_i440fx_3_1_machine_options (m); + m->is_default =0 ; + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_I440FX_MACHINE (v3_0,"pc-i440fx-3.0" ,NULL , pc_i440fx_3_0_machine_options);static void pc_i440fx_2_12_machine_options (MachineClass *m) {pc_i440fx_3_0_machine_options (m); - m->is_default =0 ; - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }
hw/i386/pc_q35.c +11 -2
@@ -311,19 +311,28 @@ static void pc_q35_machine_options(MachineClass *m) m->max_cpus =288 ; } -static void pc_q35_3_0_machine_options (MachineClass *m) +static void pc_q35_3_1_machine_options (MachineClass *m) {pc_q35_machine_options (m); m->alias ="q35" ; } +DEFINE_Q35_MACHINE (v3_1,"pc-q35-3.1" ,NULL , + pc_q35_3_1_machine_options); + +static void pc_q35_3_0_machine_options (MachineClass *m) +{ +pc_q35_3_1_machine_options (m); + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_Q35_MACHINE (v3_0,"pc-q35-3.0" ,NULL , pc_q35_3_0_machine_options);static void pc_q35_2_12_machine_options (MachineClass *m) {pc_q35_3_0_machine_options (m); - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 09/10] hw/i386: add pc-i440fx-3.1 & pc-q35-3.1
Quoted 4 lines · Marc-André Lureau
The following patch is going to add compatiblity parameters.
Signed-off-by Marc-André Lureau <[email protected]>Reviewed-by Michael S. Tsirkin <[email protected]>
I'm really surprised we spent the whole 3.1 development cycle without any change that required adding pc-*-3.1 machines.
Signature · 1 line
Eduardo
Re: [Qemu-devel] [PATCH v2 09/10] hw/i386: add pc-i440fx-3.1 & pc-q35-3.1
In reply to Marc-André LureauQuoted 4 lines · On Tue, 30 Oct 2018 19:04:52 +0400 Marc-André Lureau…
The following patch is going to add compatiblity parameters.
Signed-off-by Marc-André Lureau <[email protected]>Reviewed-by Michael S. Tsirkin <[email protected]>
Quoted 92 lines
--- include/hw/i386/pc.h | 2 +- hw/i386/pc_piix.c | 15 ++++++++++++--- hw/i386/pc_q35.c | 13 +++++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-)include/hw/i386/pc.h +1
-1@@ -300,7 +300,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); .driver = TYPE_X86_CPU,\ .property = "x-hv-synic-kvm-only",\ .value = "on",\ - } + },#define PC_COMPAT_2_12 \ HW_COMPAT_2_12 \hw/i386/pc_piix.c +12
-3@@ -428,21 +428,30 @@ static void pc_i440fx_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE ); } -static void pc_i440fx_3_0_machine_options (MachineClass *m) +static void pc_i440fx_3_1_machine_options (MachineClass *m) {pc_i440fx_machine_options (m); m->alias ="pc" ; m->is_default =1 ; } +DEFINE_I440FX_MACHINE (v3_1,"pc-i440fx-3.1" ,NULL , + pc_i440fx_3_1_machine_options); + +static void pc_i440fx_3_0_machine_options (MachineClass *m) +{ +pc_i440fx_3_1_machine_options (m); + m->is_default =0 ; + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_I440FX_MACHINE (v3_0,"pc-i440fx-3.0" ,NULL , pc_i440fx_3_0_machine_options);static void pc_i440fx_2_12_machine_options (MachineClass *m) {pc_i440fx_3_0_machine_options (m); - m->is_default =0 ; - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }hw/i386/pc_q35.c +11
-2@@ -311,19 +311,28 @@ static void pc_q35_machine_options(MachineClass *m) m->max_cpus =288 ; } -static void pc_q35_3_0_machine_options (MachineClass *m) +static void pc_q35_3_1_machine_options (MachineClass *m) {pc_q35_machine_options (m); m->alias ="q35" ; } +DEFINE_Q35_MACHINE (v3_1,"pc-q35-3.1" ,NULL , + pc_q35_3_1_machine_options); + +static void pc_q35_3_0_machine_options (MachineClass *m) +{ +pc_q35_3_1_machine_options (m); + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_Q35_MACHINE (v3_0,"pc-q35-3.0" ,NULL , pc_q35_3_0_machine_options);static void pc_q35_2_12_machine_options (MachineClass *m) {pc_q35_3_0_machine_options (m); - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }
Re: [Qemu-devel] [PATCH v2 09/10] hw/i386: add pc-i440fx-3.1 & pc-q35-3.1
Quoted 9 lines · Igor Mammedov
Quoted 4 lines · On Tue, 30 Oct 2018 19:04:52 +0400 Marc-André Lureau…
The following patch is going to add compatiblity parameters.
Signed-off-by Marc-André Lureau <[email protected]>Reviewed-by Michael S. Tsirkin <[email protected]>Reviewed-by Igor Mammedov <[email protected]>
ping,
missing 3.1 pc machines is listed as not fixed yet:
https://wiki.qemu.org/Planning/3.1
we have 3 reviewed-by on this patch already.
Quoted 94 lines
Quoted 93 lines
--- include/hw/i386/pc.h | 2 +- hw/i386/pc_piix.c | 15 ++++++++++++--- hw/i386/pc_q35.c | 13 +++++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-)include/hw/i386/pc.h +1
-1@@ -300,7 +300,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); .driver = TYPE_X86_CPU,\ .property = "x-hv-synic-kvm-only",\ .value = "on",\ - } + },#define PC_COMPAT_2_12 \ HW_COMPAT_2_12 \hw/i386/pc_piix.c +12
-3@@ -428,21 +428,30 @@ static void pc_i440fx_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE ); } -static void pc_i440fx_3_0_machine_options (MachineClass *m) +static void pc_i440fx_3_1_machine_options (MachineClass *m) {pc_i440fx_machine_options (m); m->alias ="pc" ; m->is_default =1 ; } +DEFINE_I440FX_MACHINE (v3_1,"pc-i440fx-3.1" ,NULL , + pc_i440fx_3_1_machine_options); + +static void pc_i440fx_3_0_machine_options (MachineClass *m) +{ +pc_i440fx_3_1_machine_options (m); + m->is_default =0 ; + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_I440FX_MACHINE (v3_0,"pc-i440fx-3.0" ,NULL , pc_i440fx_3_0_machine_options);static void pc_i440fx_2_12_machine_options (MachineClass *m) {pc_i440fx_3_0_machine_options (m); - m->is_default =0 ; - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }hw/i386/pc_q35.c +11
-2@@ -311,19 +311,28 @@ static void pc_q35_machine_options(MachineClass *m) m->max_cpus =288 ; } -static void pc_q35_3_0_machine_options (MachineClass *m) +static void pc_q35_3_1_machine_options (MachineClass *m) {pc_q35_machine_options (m); m->alias ="q35" ; } +DEFINE_Q35_MACHINE (v3_1,"pc-q35-3.1" ,NULL , + pc_q35_3_1_machine_options); + +static void pc_q35_3_0_machine_options (MachineClass *m) +{ +pc_q35_3_1_machine_options (m); + m->alias =NULL ; +SET_MACHINE_COMPAT (m,PC_COMPAT_3_0 ); +} +DEFINE_Q35_MACHINE (v3_0,"pc-q35-3.0" ,NULL , pc_q35_3_0_machine_options);static void pc_q35_2_12_machine_options (MachineClass *m) {pc_q35_3_0_machine_options (m); - m->alias =NULL ;SET_MACHINE_COMPAT (m,PC_COMPAT_2_12 ); }
PATCH v2 10/10 hostmem: use object id for memory region name with >= 3.1
In reply to Marc-André Lureauhostmem-file and hostmem-memfd use the whole object path for the memory region name, and hostname-ram uses only the path component (the object id, or canonical path basename):
qemu -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/tmp/foo -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB 0x0000000000000000 0x0000000040000000 0x0000000040000000
qemu -m 1024 -object memory-backend-memfd,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB 0x0000000000000000 0x0000000040000000 0x0000000040000000
qemu -m 1024 -object memory-backend-ram,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
mem 4 KiB 0x0000000000000000 0x0000000040000000 0x0000000040000000
Use the object id for -file and -memfd with >= 3.1 for consistency. Having a consistent naming allow to migrate to different hostmem backends.
--- include/hw/compat.h | 11 ++++++++++- include/sysemu/hostmem.h | 3 ++- backends/hostmem-file.c | 8 ++++---- backends/hostmem-memfd.c | 2 +- backends/hostmem-ram.c | 9 ++++----- backends/hostmem.c | 30 ++++++++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 12 deletions(-)
include/hw/compat.h +10 -1
@@ -2,7 +2,16 @@#define HW_COMPAT_H #define HW_COMPAT_3_0 \ -/* empty */ + {\ + .driver = "memory-backend-file",\ + .property = "x-use-canonical-path-for-ramblock-id",\ + .value = "true",\ + },\ + {\ + .driver = "memory-backend-memfd",\ + .property = "x-use-canonical-path-for-ramblock-id",\ + .value = "true",\ + },#define HW_COMPAT_2_12 \ {\
include/sysemu/hostmem.h +2 -1
@@ -53,7 +53,7 @@ struct HostMemoryBackend {/* protected */ uint64_t size; -bool merge, dump; +bool merge, dump, use_canonical_path;bool prealloc, force_prealloc, is_mapped, share;DECLARE_BITMAP (host_nodes,MAX_NODES +1 );HostMemPolicy policy;
@@ -67,5 +67,6 @@ MemoryRegion *host_memory_backend_get_memory(HostMemoryBackend *backend);void host_memory_backend_set_mapped (HostMemoryBackend *backend,bool mapped);bool host_memory_backend_is_mapped (HostMemoryBackend *backend);size_t host_memory_backend_pagesize (HostMemoryBackend *memdev); +char *host_memory_backend_get_name (HostMemoryBackend *backend);#endif
backends/hostmem-file.c +4 -4
@@ -55,16 +55,16 @@ file_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)error_setg (errp,"-mem-path not supported on this host" );#else if (!host_memory_backend_mr_inited (backend)) { -gchar *path; +gchar *name; backend->force_prealloc = mem_prealloc; - path =object_get_canonical_path (OBJECT (backend)); + name =host_memory_backend_get_name (backend);memory_region_init_ram_from_file (&backend->mr,OBJECT (backend), - path, + name, backend->size, fb->align, (backend->share ?RAM_SHARED :0 ) | (fb->is_pmem ?RAM_PMEM :0 ), fb->mem_path, errp); -g_free (path); +g_free (name); }#endif }
backends/hostmem-memfd.c +1 -1
@@ -57,7 +57,7 @@ memfd_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)return ; } - name =object_get_canonical_path (OBJECT (backend)); + name =host_memory_backend_get_name (backend);memory_region_init_ram_from_fd (&backend->mr,OBJECT (backend), name, backend->size, true, fd, errp);g_free (name);
backends/hostmem-ram.c +4 -5
@@ -16,21 +16,20 @@#define TYPE_MEMORY_BACKEND_RAM "memory-backend-ram" -static void ram_backend_memory_alloc (HostMemoryBackend *backend,Error **errp) { -char *path; +char *name;if (!backend->size) {error_setg (errp,"can't create backend with size 0" );return ; } - path =object_get_canonical_path_component (OBJECT (backend)); -memory_region_init_ram_shared_nomigrate (&backend->mr,OBJECT (backend), path, + name =host_memory_backend_get_name (backend); +memory_region_init_ram_shared_nomigrate (&backend->mr,OBJECT (backend), name, backend->size, backend->share, errp); -g_free (path); +g_free (name); } static void
backends/hostmem.c +30 -0
@@ -28,6 +28,16 @@ QEMU_BUILD_BUG_ON(HOST_MEM_POLICY_BIND != MPOL_BIND);QEMU_BUILD_BUG_ON (HOST_MEM_POLICY_INTERLEAVE !=MPOL_INTERLEAVE );#endif +char * +host_memory_backend_get_name (HostMemoryBackend *self) +{ +if (!self->use_canonical_path) { +return object_get_canonical_path_component (OBJECT (self)); + } + +return object_get_canonical_path (OBJECT (self)); +} +static void host_memory_backend_get_size (Object *obj,Visitor *v,const char *name,void *opaque,Error **errp)
@@ -386,6 +396,23 @@ static void host_memory_backend_set_share(Object *o, bool value, Error **errp) backend->share = value; } +static bool +host_memory_backend_get_use_canonical_path (Object *obj,Error **errp) +{ +HostMemoryBackend *self =MEMORY_BACKEND (obj); + +return self->use_canonical_path; +} + +static void +host_memory_backend_set_use_canonical_path (Object *obj,bool value, +Error **errp) +{ +HostMemoryBackend *self =MEMORY_BACKEND (obj); + + self->use_canonical_path = value; +} +static void host_memory_backend_class_init (ObjectClass *oc,void *data) {
@@ -432,6 +459,9 @@ host_memory_backend_class_init(ObjectClass *oc, void *data) &error_abort);object_class_property_set_description (oc,"share" ,"Mark the memory as private to QEMU or shared" , &error_abort); +object_class_property_add_bool (oc,"x-use-canonical-path-for-ramblock-id" , + host_memory_backend_get_use_canonical_path, + host_memory_backend_set_use_canonical_path, &error_abort); }static const TypeInfo host_memory_backend_info = {
Signature · 1 line
2.19.0.271.gfe8321ec05
Re: [Qemu-devel] [PATCH v2 10/10] hostmem: use object id for memory region name with >= 3.1
Quoted 19 lines · Marc-André Lureau
hostmem-file and hostmem-memfd use the whole object path for the memory region name, and hostname-ram uses only the path component (the object id, or canonical path basename):
qemu -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/tmp/foo -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-memfd,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-ram,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000
Quoted 5 lines
Use the object id for -file and -memfd with >= 3.1 for consistency. Having a consistent naming allow to migrate to different hostmem backends.
Signed-off-by Marc-André Lureau <[email protected]>
I don't want to make you feel like you wasted your time on the global property system refactor, but:
Maybe it would be simpler to add a
bool MachineClass::canonical_path_for_ramblock_id
field, instead of refactoring the global property system, considering that we're past soft freeze?
Sometimes I think the global property system was a mistake, and that we should avoid spreading it to other subsystems.
Signature · 1 line
Eduardo
Re: [Qemu-devel] [PATCH v2 10/10] hostmem: use object id for memory region name with >= 3.1
Quoted 24 lines · On Wed, 31 Oct 2018 17:27:57 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 23 lines · Marc-André Lureau
hostmem-file and hostmem-memfd use the whole object path for the memory region name, and hostname-ram uses only the path component (the object id, or canonical path basename):
qemu -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/tmp/foo -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-memfd,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-ram,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000Use the object id for -file and -memfd with >= 3.1 for consistency. Having a consistent naming allow to migrate to different hostmem backends.
Quoted 7 lines
Quoted 1 line
Signed-off-by Marc-André Lureau <[email protected]>I don't want to make you feel like you wasted your time on the global property system refactor, but:
Maybe it would be simpler to add a
boolMachineClass::canonical_path_for_ramblock_id
I dislike adding compat flags in random places in this case it has nothing to do with machine.
Quoted 2 lines
field, instead of refactoring the global property system, considering that we're past soft freeze?
We can merge it for 3.2,
I have another potential usage for Mark's work, converting initial memory to memory devices (so far only ARM), where we would need to keep ramblock id's compatible across different machine versions and a different way we were creating initial memory memory regions so migration would not fail.
Quoted 2 lines
Sometimes I think the global property system was a mistake, and that we should avoid spreading it to other subsystems.
Well user accessible globals might be a mistake,
but it's quite useful/convenient API to fix compatibility parameters for different machines/versions in uniform way without hacking unrelated code.
Re: [Qemu-devel] [PATCH v2 10/10] hostmem: use object id for memory region name with >= 3.1
Quoted 29 lines · Igor Mammedov
Quoted 26 lines · On Wed, 31 Oct 2018 17:27:57 -0300 Eduardo Habkost <[email protected]> wrote:
Quoted 24 lines · Marc-André Lureau
hostmem-file and hostmem-memfd use the whole object path for the memory region name, and hostname-ram uses only the path component (the object id, or canonical path basename):
qemu -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/tmp/foo -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-memfd,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
/objects/mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000qemu -m 1024 -object memory-backend-ram,id=mem,size=1G -numa node,memdev=mem -monitor stdio (qemu) info ramblock
Block Name PSize Offset Used Total
mem 4 KiB0x00000000000000000x00000000400000000x0000000040000000Use the object id for -file and -memfd with >= 3.1 for consistency. Having a consistent naming allow to migrate to different hostmem backends.
Signed-off-by Marc-André Lureau <[email protected]>
Quoted 7 lines
Quoted 5 lines
I don't want to make you feel like you wasted your time on the global property system refactor, but:
Maybe it would be simpler to add a
boolMachineClass::canonical_path_for_ramblock_idI dislike adding compat flags in random places in this case it has nothing to do with machine.
I don't see why it would be a problem. If you really believe this compat flag doesn't belong to a MachineClass field, it would not belong to MachineClass::compat_props either.
Quoted 9 lines
Quoted 3 lines
field, instead of refactoring the global property system, considering that we're past soft freeze?
We can merge it for 3.2,
I have another potential usage for Mark's work, converting initial memory to memory devices (so far only ARM), where we would need to keep ramblock id's compatible across different machine versions and a different way we were creating initial memory memory regions so migration would not fail.
Right, so allowing backend objects to be affected by MachineClass::compat_props would be nice to have, long term.
Quoted 7 lines
Quoted 3 lines
Sometimes I think the global property system was a mistake, and that we should avoid spreading it to other subsystems.
Well user accessible globals might be a mistake,
but it's quite useful/convenient API to fix compatibility parameters for different machines/versions in uniform way without hacking unrelated code.
Agreed. Having compat_props is nice. Mixing -global and MachineClass::compat_props was a mistake, and I want to revert that. See the suggestion on the reply to 05/10 on how we could do this.
Signature · 1 line
Eduardo
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v2 00/10] hostmem: use object "id" for memory region name with >= 3.1
=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=8
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'4a36b40aa2 hostmem: use object id for memory region name with >= 3.1 074e71f29b hw/i386: add pc-i440fx-3.1 & pc-q35-3.1 a2b37a593e tests: add user-creatable test to test-qdev-global-props d45ebd8648 qom/object: add set_globals flagsab43be6c72 qom/object: set globals when initializing object bae2266194 qom/globals: generalize object_property_set_globals() 826e3c4947 qom/globals: move qdev globals to qom909f537038 qdev: move qdev_prop_register_global_list() to tests d0a41bdbcf accel: register global_props like machine globals 65377eed0e qom: make user_creatable_complete() specific to UserCreatable
=== OUTPUT BEGIN ===
BUILD fedora
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-pv5hofwq/src'
GEN /var/tmp/patchew-tester-tmp-pv5hofwq/src/docker-src.2018-10-31-10.39.23.27910/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-pv5hofwq/src/docker-src.2018-10-31-10.39.23.27910/qemu.tar.vroot'... done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-pv5hofwq/src/docker-src.2018-10-31-10.39.23.27910/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-pv5hofwq/src/docker-src.2018-10-31-10.39.23.27910/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
COPY RUNNER
RUN test-mingw in qemu:fedora
Packages installed:
SDL2-devel-2.0.8-5.fc28.x86_64
bc-1.07.1-5.fc28.x86_64
bison-3.0.4-9.fc28.x86_64
bluez-libs-devel-5.50-1.fc28.x86_64
brlapi-devel-0.6.7-19.fc28.x86_64
bzip2-1.0.6-26.fc28.x86_64
bzip2-devel-1.0.6-26.fc28.x86_64
ccache-3.4.2-2.fc28.x86_64
clang-6.0.1-1.fc28.x86_64
device-mapper-multipath-devel-0.7.4-3.git07e7bd5.fc28.x86_64
findutils-4.6.0-19.fc28.x86_64
flex-2.6.1-7.fc28.x86_64
gcc-8.1.1-5.fc28.x86_64
gcc-c++-8.1.1-5.fc28.x86_64
gettext-0.19.8.1-14.fc28.x86_64
git-2.17.1-3.fc28.x86_64
glib2-devel-2.56.1-4.fc28.x86_64
glusterfs-api-devel-4.1.2-2.fc28.x86_64
gnutls-devel-3.6.3-3.fc28.x86_64
gtk3-devel-3.22.30-1.fc28.x86_64
hostname-3.20-3.fc28.x86_64
libaio-devel-0.3.110-11.fc28.x86_64
libasan-8.1.1-5.fc28.x86_64
libattr-devel-2.4.48-3.fc28.x86_64
libcap-devel-2.25-9.fc28.x86_64
libcap-ng-devel-0.7.9-4.fc28.x86_64
libcurl-devel-7.59.0-6.fc28.x86_64
libfdt-devel-1.4.6-5.fc28.x86_64
libpng-devel-1.6.34-6.fc28.x86_64
librbd-devel-12.2.7-1.fc28.x86_64
libssh2-devel-1.8.0-7.fc28.x86_64
libubsan-8.1.1-5.fc28.x86_64
libusbx-devel-1.0.22-1.fc28.x86_64
libxml2-devel-2.9.8-4.fc28.x86_64
llvm-6.0.1-6.fc28.x86_64
lzo-devel-2.08-12.fc28.x86_64
make-4.2.1-6.fc28.x86_64
mingw32-SDL2-2.0.5-3.fc27.noarch
mingw32-bzip2-1.0.6-9.fc27.noarch
mingw32-curl-7.57.0-1.fc28.noarch
mingw32-glib2-2.56.1-1.fc28.noarch
mingw32-gmp-6.1.2-2.fc27.noarch
mingw32-gnutls-3.6.2-1.fc28.noarch
mingw32-gtk3-3.22.30-1.fc28.noarch
mingw32-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw32-libpng-1.6.29-2.fc27.noarch
mingw32-libssh2-1.8.0-3.fc27.noarch
mingw32-libtasn1-4.13-1.fc28.noarch
mingw32-nettle-3.4-1.fc28.noarch
mingw32-pixman-0.34.0-3.fc27.noarch
mingw32-pkg-config-0.28-9.fc27.x86_64
mingw64-SDL2-2.0.5-3.fc27.noarch
mingw64-bzip2-1.0.6-9.fc27.noarch
mingw64-curl-7.57.0-1.fc28.noarch
mingw64-glib2-2.56.1-1.fc28.noarch
mingw64-gmp-6.1.2-2.fc27.noarch
mingw64-gnutls-3.6.2-1.fc28.noarch
mingw64-gtk3-3.22.30-1.fc28.noarch
mingw64-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw64-libpng-1.6.29-2.fc27.noarch
mingw64-libssh2-1.8.0-3.fc27.noarch
mingw64-libtasn1-4.13-1.fc28.noarch
mingw64-nettle-3.4-1.fc28.noarch
mingw64-pixman-0.34.0-3.fc27.noarch
mingw64-pkg-config-0.28-9.fc27.x86_64
ncurses-devel-6.1-5.20180224.fc28.x86_64
nettle-devel-3.4-2.fc28.x86_64
nss-devel-3.38.0-1.0.fc28.x86_64
numactl-devel-2.0.11-8.fc28.x86_64
package PyYAML is not installed
package libjpeg-devel is not installed
perl-5.26.2-413.fc28.x86_64
pixman-devel-0.34.0-8.fc28.x86_64
python3-3.6.5-1.fc28.x86_64
snappy-devel-1.1.7-5.fc28.x86_64
sparse-0.5.2-1.fc28.x86_64
spice-server-devel-0.14.0-4.fc28.x86_64
systemtap-sdt-devel-3.3-1.fc28.x86_64
tar-1.30-3.fc28.x86_64
usbredir-devel-0.8.0-1.fc28.x86_64
virglrenderer-devel-0.6.0-4.20170210git76b3da97b.fc28.x86_64
vte3-devel-0.36.5-6.fc28.x86_64
which-2.21-8.fc28.x86_64
xen-devel-4.10.1-5.fc28.x86_64
zlib-devel-1.2.11-8.fc28.x86_64
Environment variables:
TARGET_LIST=
PACKAGES=bc bison bluez-libs-devel brlapi-devel bzip2 bzip2-devel ccache clang device-mapper-multipath-devel findutils flex gcc gcc-c++ gettext git glib2-devel glusterfs-api-devel gnutls-devel gtk3-devel hostname libaio-devel libasan libattr-devel libcap-devel libcap-ng-devel libcurl-devel libfdt-devel libjpeg-devel libpng-devel librbd-devel libssh2-devel libubsan libusbx-devel libxml2-devel llvm lzo-devel make mingw32-bzip2 mingw32-curl mingw32-glib2 mingw32-gmp mingw32-gnutls mingw32-gtk3 mingw32-libjpeg-turbo mingw32-libpng mingw32-libssh2 mingw32-libtasn1 mingw32-nettle mingw32-pixman mingw32-pkg-config mingw32-SDL2 mingw64-bzip2 mingw64-curl mingw64-glib2 mingw64-gmp mingw64-gnutls mingw64-gtk3 mingw64-libjpeg-turbo mingw64-libpng mingw64-libssh2 mingw64-libtasn1 mingw64-nettle mingw64-pixman mingw64-pkg-config mingw64-SDL2 ncurses-devel nettle-devel nss-devel numactl-devel perl pixman-devel python3 PyYAML SDL2-devel snappy-devel sparse spice-server-devel systemtap-sdt-devel tar usbredir-devel virglrenderer-devel vte3-devel which xen-devel zlib-devel
J=8
V=
HOSTNAME=83e44deef0da
DEBUG=
SHOW_ENV=1
PWD=/
HOME=/home/patchew
CCACHE_DIR=/var/tmp/ccache
DISTTAG=f28container
QEMU_CONFIGURE_OPTS=--python=/usr/bin/python3
FGC=f28
TEST_DIR=/tmp/qemu-test
SHLVL=1
FEATURES=mingw clang pyyaml asan dtc PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin MAKEFLAGS= -j8
EXTRA_CONFIGURE_OPTS=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install --python=/usr/bin/python3 --cross-prefix=x86_64-w64-mingw32- --enable-trace-backends=simple --enable-gnutls --enable-nettle --enable-curl --enable-vnc --enable-bzip2 --enable-guest-agent --with-sdlabi=2.0
Install prefix /tmp/qemu-test/install BIOS directory /tmp/qemu-test/install firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install
library directory /tmp/qemu-test/install/lib
module directory /tmp/qemu-test/install/lib
libexec directory /tmp/qemu-test/install/libexec
include directory /tmp/qemu-test/install/include
config directory /tmp/qemu-test/install
local state directory queried at runtime
Windows SDK no Source path /tmp/qemu-test/src GIT binary git GIT submodules C compiler x86_64-w64-mingw32-gcc Host C compiler cc C++ compiler x86_64-w64-mingw32-g++ Objective-C compiler clang ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -Werror -DHAS_LIBSSH2_SFTP_FSYNC -mms-bitfields -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/x86_64-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -m64 -mcx16 -mthreads -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN -DWINVER=0x501 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/p11-kit-1 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 LDFLAGS -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase -Wl,--warn-common -m64 -g QEMU_LDFLAGS -L$(BUILD_DIR)/dtc/libfdt make make install install python /usr/bin/python3 -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (2.0.5) GTK support yes (3.22.30) GTK GL support no VTE support no TLS priority NORMAL GNUTLS support yes libgcrypt no nettle yes (3.4) libtasn1 yes curses support no virgl support no curl support yes mingw32 support yes Audio drivers dsound
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
Multipath support no
VNC support yes VNC SASL support no VNC JPEG support yes VNC PNG support yes xen support no brlapi support no bluez support no Documentation no PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support no Install blobs yes KVM support no HAX support yes HVF support no WHPX support no TCG support yes TCG debug enabled no TCG interpreter no malloc trim support no RDMA support no PVRDMA support no fdt support git membarrier no preadv support no fdatasync no madvise no posix_madvise no posix_memalign no
libcap-ng support no
vhost-net support no
vhost-crypto support no
vhost-scsi support no
vhost-vsock support no
vhost-user support no
Trace backends simple
Trace output file trace-<pid>
spice support no rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no OpenGL dmabufs no libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info yes
QGA MSI support no
seccomp support no
coroutine backend win32
coroutine pool yes
debug stack usage no
mutex debugging no
crypto afalg no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no TPM emulator no QOM debugging yes Live block migration yes lzo support no snappy support no bzip2 support yes NUMA host support no libxml2 no tcmalloc support no jemalloc support no avx2 optimization yes replication support yes VxHS block device no capstone no docker no libpmem support no
NOTE: cross-compilers enabled: 'x86_64-w64-mingw32-gcc'
GEN x86_64-softmmu/config-devices.mak.tmp GEN config-host.h GEN aarch64-softmmu/config-devices.mak.tmp GEN qemu-options.def GEN qapi-gen GEN trace/generated-tcg-tracers.h GEN trace/generated-helpers-wrappers.h GEN trace/generated-helpers.h GEN trace/generated-helpers.c GEN aarch64-softmmu/config-devices.mak GEN x86_64-softmmu/config-devices.mak GEN module_block.h GEN ui/input-keymap-linux-to-qcode.c GEN ui/input-keymap-atset1-to-qcode.c GEN ui/input-keymap-qcode-to-atset1.c GEN ui/input-keymap-qcode-to-atset2.c GEN ui/input-keymap-qcode-to-atset3.c GEN ui/input-keymap-qcode-to-linux.c GEN ui/input-keymap-qcode-to-qnum.c GEN ui/input-keymap-qcode-to-sun.c GEN ui/input-keymap-qnum-to-qcode.c GEN ui/input-keymap-usb-to-qcode.c GEN ui/input-keymap-win32-to-qcode.c GEN ui/input-keymap-x11-to-qcode.c GEN ui/input-keymap-xorgevdev-to-qcode.c GEN ui/input-keymap-xorgkbd-to-qcode.c GEN ui/input-keymap-xorgxquartz-to-qcode.c GEN ui/input-keymap-xorgxwin-to-qcode.c GEN ui/input-keymap-osx-to-qcode.c GEN tests/test-qapi-gen GEN trace-root.h GEN accel/kvm/trace.h GEN accel/tcg/trace.h GEN audio/trace.h GEN block/trace.h GEN chardev/trace.h GEN crypto/trace.h GEN hw/9pfs/trace.h GEN hw/acpi/trace.h GEN hw/alpha/trace.h GEN hw/arm/trace.h GEN hw/audio/trace.h GEN hw/block/trace.h GEN hw/block/dataplane/trace.h GEN hw/char/trace.h GEN hw/display/trace.h GEN hw/dma/trace.h GEN hw/hppa/trace.h GEN hw/i2c/trace.h GEN hw/i386/trace.h GEN hw/i386/xen/trace.h GEN hw/ide/trace.h GEN hw/input/trace.h GEN hw/intc/trace.h GEN hw/isa/trace.h GEN hw/mem/trace.h GEN hw/misc/trace.h GEN hw/misc/macio/trace.h GEN hw/net/trace.h GEN hw/nvram/trace.h GEN hw/pci/trace.h GEN hw/pci-host/trace.h GEN hw/ppc/trace.h GEN hw/rdma/trace.h GEN hw/rdma/vmw/trace.h GEN hw/s390x/trace.h GEN hw/scsi/trace.h GEN hw/sd/trace.h GEN hw/sparc/trace.h GEN hw/sparc64/trace.h GEN hw/timer/trace.h GEN hw/tpm/trace.h GEN hw/usb/trace.h GEN hw/vfio/trace.h GEN hw/virtio/trace.h GEN hw/watchdog/trace.h GEN hw/xen/trace.h GEN io/trace.h GEN linux-user/trace.h GEN migration/trace.h GEN nbd/trace.h GEN net/trace.h GEN qapi/trace.h GEN qom/trace.h GEN scsi/trace.h GEN target/arm/trace.h GEN target/i386/trace.h GEN target/mips/trace.h GEN target/ppc/trace.h GEN target/s390x/trace.h GEN target/sparc/trace.h GEN ui/trace.h GEN util/trace.h GEN trace-root.c GEN accel/kvm/trace.c GEN accel/tcg/trace.c GEN audio/trace.c GEN block/trace.c GEN chardev/trace.c GEN crypto/trace.c GEN hw/9pfs/trace.c GEN hw/acpi/trace.c GEN hw/alpha/trace.c GEN hw/arm/trace.c GEN hw/audio/trace.c GEN hw/block/trace.c GEN hw/block/dataplane/trace.c GEN hw/char/trace.c GEN hw/display/trace.c GEN hw/dma/trace.c GEN hw/hppa/trace.c GEN hw/i2c/trace.c GEN hw/i386/trace.c GEN hw/i386/xen/trace.c GEN hw/ide/trace.c GEN hw/input/trace.c GEN hw/intc/trace.c GEN hw/isa/trace.c GEN hw/mem/trace.c GEN hw/misc/trace.c GEN hw/misc/macio/trace.c GEN hw/net/trace.c GEN hw/nvram/trace.c GEN hw/pci/trace.c GEN hw/pci-host/trace.c GEN hw/ppc/trace.c GEN hw/rdma/trace.c GEN hw/rdma/vmw/trace.c GEN hw/s390x/trace.c GEN hw/scsi/trace.c GEN hw/sd/trace.c GEN hw/sparc/trace.c GEN hw/sparc64/trace.c GEN hw/timer/trace.c GEN hw/tpm/trace.c GEN hw/usb/trace.c GEN hw/vfio/trace.c GEN hw/virtio/trace.c GEN hw/watchdog/trace.c GEN hw/xen/trace.c GEN io/trace.c GEN linux-user/trace.c GEN migration/trace.c GEN nbd/trace.c GEN net/trace.c GEN qapi/trace.c GEN qom/trace.c GEN scsi/trace.c GEN target/arm/trace.c GEN target/i386/trace.c GEN target/mips/trace.c GEN target/ppc/trace.c GEN target/s390x/trace.c GEN target/sparc/trace.c GEN ui/trace.c GEN util/trace.c GEN config-all-devices.mak
DEP /tmp/qemu-test/src/dtc/tests/dumptrees.c
DEP /tmp/qemu-test/src/dtc/tests/trees.S
DEP /tmp/qemu-test/src/dtc/tests/testutils.c
DEP /tmp/qemu-test/src/dtc/tests/value-labels.c DEP /tmp/qemu-test/src/dtc/tests/asm_tree_dump.c DEP /tmp/qemu-test/src/dtc/tests/truncated_memrsv.c DEP /tmp/qemu-test/src/dtc/tests/truncated_string.c DEP /tmp/qemu-test/src/dtc/tests/truncated_property.c DEP /tmp/qemu-test/src/dtc/tests/check_full.c
DEP /tmp/qemu-test/src/dtc/tests/check_header.c DEP /tmp/qemu-test/src/dtc/tests/check_path.c
DEP /tmp/qemu-test/src/dtc/tests/overlay_bad_fixup.c DEP /tmp/qemu-test/src/dtc/tests/overlay.c
DEP /tmp/qemu-test/src/dtc/tests/subnode_iterate.c DEP /tmp/qemu-test/src/dtc/tests/property_iterate.c DEP /tmp/qemu-test/src/dtc/tests/integer-expressions.c DEP /tmp/qemu-test/src/dtc/tests/utilfdt_test.c DEP /tmp/qemu-test/src/dtc/tests/path_offset_aliases.c DEP /tmp/qemu-test/src/dtc/tests/add_subnode_with_nops.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_unordered.c DEP /tmp/qemu-test/src/dtc/tests/dtb_reverse.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_ordered.c DEP /tmp/qemu-test/src/dtc/tests/extra-terminating-null.c DEP /tmp/qemu-test/src/dtc/tests/incbin.c
DEP /tmp/qemu-test/src/dtc/tests/boot-cpuid.c
DEP /tmp/qemu-test/src/dtc/tests/phandle_format.c DEP /tmp/qemu-test/src/dtc/tests/path-references.c DEP /tmp/qemu-test/src/dtc/tests/references.c
DEP /tmp/qemu-test/src/dtc/tests/string_escapes.c DEP /tmp/qemu-test/src/dtc/tests/propname_escapes.c DEP /tmp/qemu-test/src/dtc/tests/appendprop2.c DEP /tmp/qemu-test/src/dtc/tests/appendprop1.c DEP /tmp/qemu-test/src/dtc/tests/del_node.c
DEP /tmp/qemu-test/src/dtc/tests/del_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop.c
DEP /tmp/qemu-test/src/dtc/tests/set_name.c
DEP /tmp/qemu-test/src/dtc/tests/rw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/open_pack.c
DEP /tmp/qemu-test/src/dtc/tests/nopulate.c
DEP /tmp/qemu-test/src/dtc/tests/mangle-layout.c DEP /tmp/qemu-test/src/dtc/tests/move_and_save.c DEP /tmp/qemu-test/src/dtc/tests/sw_states.c
DEP /tmp/qemu-test/src/dtc/tests/sw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/nop_node.c
DEP /tmp/qemu-test/src/dtc/tests/nop_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop_inplace.c DEP /tmp/qemu-test/src/dtc/tests/stringlist.c
DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells2.c DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells.c DEP /tmp/qemu-test/src/dtc/tests/notfound.c
DEP /tmp/qemu-test/src/dtc/tests/sized_cells.c DEP /tmp/qemu-test/src/dtc/tests/char_literal.c DEP /tmp/qemu-test/src/dtc/tests/get_alias.c
DEP /tmp/qemu-test/src/dtc/tests/node_check_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_phandle.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_prop_value.c DEP /tmp/qemu-test/src/dtc/tests/parent_offset.c DEP /tmp/qemu-test/src/dtc/tests/get_path.c
DEP /tmp/qemu-test/src/dtc/tests/supernode_atdepth_offset.c DEP /tmp/qemu-test/src/dtc/tests/get_phandle.c DEP /tmp/qemu-test/src/dtc/tests/getprop.c
DEP /tmp/qemu-test/src/dtc/tests/get_name.c
DEP /tmp/qemu-test/src/dtc/tests/path_offset.c DEP /tmp/qemu-test/src/dtc/tests/subnode_offset.c DEP /tmp/qemu-test/src/dtc/tests/find_property.c DEP /tmp/qemu-test/src/dtc/tests/root_node.c
DEP /tmp/qemu-test/src/dtc/tests/get_mem_rsv.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_overlay.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_addresses.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_empty_tree.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_strerror.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_rw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_sw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_wip.c
DEP /tmp/qemu-test/src/dtc/util.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_ro.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt.c
DEP /tmp/qemu-test/src/dtc/fdtoverlay.c
DEP /tmp/qemu-test/src/dtc/fdtput.c
DEP /tmp/qemu-test/src/dtc/fdtdump.c
DEP /tmp/qemu-test/src/dtc/fdtget.c
LEX convert-dtsv0-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/srcpos.c
BISON dtc-parser.tab.c
LEX dtc-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/treesource.c
DEP /tmp/qemu-test/src/dtc/livetree.c
DEP /tmp/qemu-test/src/dtc/fstree.c
DEP /tmp/qemu-test/src/dtc/dtc.c
DEP /tmp/qemu-test/src/dtc/flattree.c
DEP /tmp/qemu-test/src/dtc/data.c
DEP /tmp/qemu-test/src/dtc/checks.c
DEP convert-dtsv0-lexer.lex.c
DEP dtc-parser.tab.c
DEP dtc-lexer.lex.c
CHK version_gen.h
UPD version_gen.h
DEP /tmp/qemu-test/src/dtc/util.c
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_strerror.o
CC libfdt/fdt_empty_tree.o
CC libfdt/fdt_addresses.o
CC libfdt/fdt_rw.o
CC libfdt/fdt_overlay.o
AR libfdt/libfdt.a
x86_64-w64-mingw32-ar: creating libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
RC version.o
GEN qga/qapi-generated/qapi-gen
CC qapi/qapi-builtin-types.o
CC qapi/qapi-types.o
CC qapi/qapi-types-block.o
CC qapi/qapi-types-char.o
CC qapi/qapi-types-common.o
CC qapi/qapi-types-crypto.o
CC qapi/qapi-types-block-core.o
CC qapi/qapi-types-introspect.o
CC qapi/qapi-types-job.o
CC qapi/qapi-types-migration.o
CC qapi/qapi-types-misc.o
CC qapi/qapi-types-net.o
CC qapi/qapi-types-rocker.o
CC qapi/qapi-types-run-state.o
CC qapi/qapi-types-sockets.o
CC qapi/qapi-types-tpm.o
CC qapi/qapi-types-trace.o
CC qapi/qapi-types-transaction.o
CC qapi/qapi-types-ui.o
CC qapi/qapi-builtin-visit.o
CC qapi/qapi-visit.o
CC qapi/qapi-visit-block-core.o
CC qapi/qapi-visit-block.o
CC qapi/qapi-visit-char.o
CC qapi/qapi-visit-common.o
CC qapi/qapi-visit-crypto.o
CC qapi/qapi-visit-introspect.o
CC qapi/qapi-visit-job.o
CC qapi/qapi-visit-migration.o
CC qapi/qapi-visit-misc.o
CC qapi/qapi-visit-net.o
CC qapi/qapi-visit-rocker.o
CC qapi/qapi-visit-run-state.o
CC qapi/qapi-visit-sockets.o
CC qapi/qapi-visit-tpm.o
CC qapi/qapi-visit-trace.o
CC qapi/qapi-visit-transaction.o
CC qapi/qapi-visit-ui.o
CC qapi/qapi-events.o
CC qapi/qapi-events-block-core.o
CC qapi/qapi-events-block.o
CC qapi/qapi-events-char.o
CC qapi/qapi-events-common.o
CC qapi/qapi-events-crypto.o
CC qapi/qapi-events-introspect.o
CC qapi/qapi-events-job.o
CC qapi/qapi-events-migration.o
CC qapi/qapi-events-misc.o
CC qapi/qapi-events-net.o
CC qapi/qapi-events-rocker.o
CC qapi/qapi-events-run-state.o
CC qapi/qapi-events-sockets.o
CC qapi/qapi-events-tpm.o
CC qapi/qapi-events-trace.o
CC qapi/qapi-events-transaction.o
CC qapi/qapi-events-ui.o
CC qapi/qapi-introspect.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-parser.o
CC qobject/json-streamer.o
CC qobject/block-qdict.o
CC trace/simple.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/aio-wait.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-win32.o
CC util/event_notifier-win32.o
CC util/oslib-win32.o
CC util/qemu-thread-win32.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/keyval.o
CC util/qemu-progress.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-win32.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/qsp.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC util/iova-tree.o
CC trace-root.o
CC accel/kvm/trace.o
CC accel/tcg/trace.o
CC audio/trace.o
CC block/trace.o
CC chardev/trace.o
CC crypto/trace.o
CC hw/9pfs/trace.o
CC hw/acpi/trace.o
CC hw/alpha/trace.o
CC hw/arm/trace.o
CC hw/audio/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/display/trace.o
CC hw/dma/trace.o
CC hw/hppa/trace.o
CC hw/i2c/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/ide/trace.o
CC hw/input/trace.o
CC hw/intc/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/misc/trace.o
CC hw/misc/macio/trace.o
CC hw/net/trace.o
CC hw/nvram/trace.o
CC hw/pci/trace.o
CC hw/pci-host/trace.o
CC hw/ppc/trace.o
CC hw/rdma/trace.o
CC hw/rdma/vmw/trace.o
CC hw/s390x/trace.o
CC hw/scsi/trace.o
CC hw/sd/trace.o
CC hw/sparc/trace.o
CC hw/sparc64/trace.o
CC hw/timer/trace.o
CC hw/tpm/trace.o
CC hw/usb/trace.o
CC hw/vfio/trace.o
CC hw/virtio/trace.o
CC hw/watchdog/trace.o
CC hw/xen/trace.o
CC io/trace.o
CC linux-user/trace.o
CC migration/trace.o
CC nbd/trace.o
CC net/trace.o
CC qapi/trace.o
CC qom/trace.o
CC scsi/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/ppc/trace.o
CC target/s390x/trace.o
CC target/sparc/trace.o
CC ui/trace.o
CC util/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/fd-register.o
CC stubs/qmp_memory_device.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
CC stubs/ram-block.o
CC stubs/ramfb.o
GEN qemu-img-cmds.h
CC block.o
CC blockjob.o
CC job.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/blklogwrites.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-win32.o
CC block/win32-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/create.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC block/copy-on-read.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager-stub.o
CC block/curl.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredspsk.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/net-listener.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
CC qom/globals.o
CC qemu-io.o
CC qemu-edid.o
CC hw/display/edid-generate.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
/tmp/qemu-test/src/qom/globals.c: In function 'object_property_check_globals':
/tmp/qemu-test/src/qom/globals.c:61:14: error: implicit declaration of function 'IS_USER_CREATABLE_CLASS'; did you mean 'USER_CREATABLE_CLASS'? [-Werror=implicit-function-declaration]
if (!IS_USER_CREATABLE_CLASS(oc) && !dc) {
^~~~~~~~~~~~~~~~~~~~~~~
USER_CREATABLE_CLASS/tmp/qemu-test/src/qom/globals.c:61:14: error: nested extern declaration of 'IS_USER_CREATABLE_CLASS' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [/tmp/qemu-test/src/rules.mak:69: qom/globals.o] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 560, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=c90984a8dd1a11e8a88852540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-pv5hofwq/src/docker-src.2018-10-31-10.39.23.27910:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 2 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-pv5hofwq/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-mingw@fedora] Error 2
real 2m9.611s
user 0m4.206s
sys 0m3.281s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series failed docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v2 00/10] hostmem: use object "id" for memory region name with >= 3.1
=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-quick@centos7 SHOW_ENV=1 J=8 === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'4a36b40aa2 hostmem: use object id for memory region name with >= 3.1 074e71f29b hw/i386: add pc-i440fx-3.1 & pc-q35-3.1 a2b37a593e tests: add user-creatable test to test-qdev-global-props d45ebd8648 qom/object: add set_globals flagsab43be6c72 qom/object: set globals when initializing object bae2266194 qom/globals: generalize object_property_set_globals() 826e3c4947 qom/globals: move qdev globals to qom909f537038 qdev: move qdev_prop_register_global_list() to tests d0a41bdbcf accel: register global_props like machine globals 65377eed0e qom: make user_creatable_complete() specific to UserCreatable
=== OUTPUT BEGIN ===
BUILD centos7
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-e_nc6w70/src'
GEN /var/tmp/patchew-tester-tmp-e_nc6w70/src/docker-src.2018-10-31-10.41.48.705/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-e_nc6w70/src/docker-src.2018-10-31-10.41.48.705/qemu.tar.vroot'... done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-e_nc6w70/src/docker-src.2018-10-31-10.41.48.705/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-e_nc6w70/src/docker-src.2018-10-31-10.41.48.705/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
COPY RUNNER
RUN test-quick in qemu:centos7
Packages installed:
SDL-devel-1.2.15-14.el7.x86_64
bison-3.0.4-1.el7.x86_64
bzip2-1.0.6-13.el7.x86_64
bzip2-devel-1.0.6-13.el7.x86_64
ccache-3.3.4-1.el7.x86_64
csnappy-devel-0-6.20150729gitd7bc683.el7.x86_64
flex-2.5.37-3.el7.x86_64
gcc-4.8.5-28.el7_5.1.x86_64
gettext-0.19.8.1-2.el7.x86_64
git-1.8.3.1-14.el7_5.x86_64
glib2-devel-2.54.2-2.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libepoxy-devel-1.3.1-2.el7_5.x86_64
libfdt-devel-1.4.6-1.el7.x86_64
lzo-devel-2.06-8.el7.x86_64
make-3.82-23.el7.x86_64
mesa-libEGL-devel-17.2.3-8.20171019.el7.x86_64
mesa-libgbm-devel-17.2.3-8.20171019.el7.x86_64
nettle-devel-2.7.1-8.el7.x86_64
package g++ is not installed
package librdmacm-devel is not installed
pixman-devel-0.34.0-1.el7.x86_64
spice-glib-devel-0.34-3.el7_5.1.x86_64
spice-server-devel-0.14.0-2.el7_5.4.x86_64
tar-1.26-34.el7.x86_64
vte-devel-0.28.2-10.el7.x86_64
xen-devel-4.6.6-12.el7.x86_64
zlib-devel-1.2.7-17.el7.x86_64
Environment variables:
PACKAGES=bison bzip2 bzip2-devel ccache csnappy-devel flex g++ gcc gettext git glib2-devel libaio-devel libepoxy-devel libfdt-devel librdmacm-devel lzo-devel make mesa-libEGL-devel mesa-libgbm-devel nettle-devel pixman-devel SDL-devel spice-glib-devel spice-server-devel tar vte-devel xen-devel zlib-devel
HOSTNAME=07f563206b53
MAKEFLAGS= -j8
J=8
CCACHE_DIR=/var/tmp/ccache
EXTRA_CONFIGURE_OPTS=
V=
SHOW_ENV=1 PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/
TARGET_LIST=
SHLVL=1
HOME=/home/patchew
TEST_DIR=/tmp/qemu-test
FEATURES= dtc
DEBUG=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install No C++ compiler available; disabling C++ specific optional code
Install prefix /tmp/qemu-test/install BIOS directory /tmp/qemu-test/install/share/qemu firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install/bin
library directory /tmp/qemu-test/install/lib module directory /tmp/qemu-test/install/lib/qemu libexec directory /tmp/qemu-test/install/libexec include directory /tmp/qemu-test/install/include config directory /tmp/qemu-test/install/etc
local state directory /tmp/qemu-test/install/var
Manual directory /tmp/qemu-test/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /tmp/qemu-test/src
GIT binary git
GIT submodules
C compiler cc
Host C compiler cc
C++ compiler
Objective-C compiler cc
ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -Wno-missing-braces -I/usr/include/libpng15 -pthread -I/usr/include/spice-server -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/spice-1 LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g QEMU_LDFLAGS make make install install python python -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (1.2.15) GTK support no GTK GL support no VTE support no TLS priority NORMAL GNUTLS support no libgcrypt no nettle yes (2.7.1) libtasn1 no curses support yes virgl support no curl support no mingw32 support no Audio drivers oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
Multipath support no
VNC support yes VNC SASL support no VNC JPEG support no VNC PNG support yes xen support yes xen ctrl version 40600 pv dom build no brlapi support no bluez support no Documentation no PIE yes vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no HVF support no WHPX support no TCG support yes TCG debug enabled no TCG interpreter no malloc trim support yes RDMA support yes PVRDMA support yes fdt support system membarrier no preadv support yes fdatasync yes madvise yes posix_madvise yes posix_memalign yes
libcap-ng support no
vhost-net support yes
vhost-crypto support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends log spice support yes (0.12.13/0.14.0) rbd support no xfsctl support no smartcard support yes libusb no usb net redir no OpenGL support yes OpenGL dmabufs yes libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend ucontext
coroutine pool yes
debug stack usage no
mutex debugging no
crypto afalg no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough yes TPM emulator yes QOM debugging yes Live block migration yes lzo support yes snappy support no bzip2 support yes NUMA host support no libxml2 no tcmalloc support no jemalloc support no avx2 optimization yes replication support yes VxHS block device no capstone no docker no libpmem support no
WARNING: Use of SDL 1.2 is deprecated and will be removed in
WARNING: future releases. Please switch to using SDL 2.0
NOTE: cross-compilers enabled: 'cc'
GEN x86_64-softmmu/config-devices.mak.tmp
GEN aarch64-softmmu/config-devices.mak.tmp
GEN config-host.h
GEN qemu-options.def
GEN qapi-gen
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
GEN aarch64-softmmu/config-devices.mak
GEN trace/generated-helpers.c
GEN module_block.h
GEN x86_64-softmmu/config-devices.mak
GEN ui/input-keymap-linux-to-qcode.c
GEN ui/input-keymap-atset1-to-qcode.c
GEN ui/input-keymap-qcode-to-atset1.c
GEN ui/input-keymap-qcode-to-atset2.c
GEN ui/input-keymap-qcode-to-atset3.c
GEN ui/input-keymap-qcode-to-linux.c
GEN ui/input-keymap-qcode-to-qnum.c
GEN ui/input-keymap-qcode-to-sun.c
GEN ui/input-keymap-qnum-to-qcode.c
GEN ui/input-keymap-usb-to-qcode.c
GEN ui/input-keymap-win32-to-qcode.c
GEN ui/input-keymap-x11-to-qcode.c
GEN ui/input-keymap-xorgevdev-to-qcode.c
GEN ui/input-keymap-xorgkbd-to-qcode.c
GEN ui/input-keymap-xorgxquartz-to-qcode.c
GEN ui/input-keymap-xorgxwin-to-qcode.c
GEN ui/input-keymap-osx-to-qcode.c
GEN tests/test-qapi-gen
GEN trace-root.h
GEN accel/kvm/trace.h
GEN accel/tcg/trace.h
GEN audio/trace.h
GEN block/trace.h
GEN chardev/trace.h
GEN crypto/trace.h
GEN hw/9pfs/trace.h
GEN hw/acpi/trace.h
GEN hw/alpha/trace.h
GEN hw/arm/trace.h
GEN hw/audio/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/display/trace.h
GEN hw/dma/trace.h
GEN hw/hppa/trace.h
GEN hw/i2c/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/ide/trace.h
GEN hw/input/trace.h
GEN hw/intc/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/misc/trace.h
GEN hw/misc/macio/trace.h
GEN hw/net/trace.h
GEN hw/nvram/trace.h
GEN hw/pci/trace.h
GEN hw/pci-host/trace.h
GEN hw/ppc/trace.h
GEN hw/rdma/trace.h
GEN hw/rdma/vmw/trace.h
GEN hw/s390x/trace.h
GEN hw/scsi/trace.h
GEN hw/sd/trace.h
GEN hw/sparc/trace.h
GEN hw/sparc64/trace.h
GEN hw/timer/trace.h
GEN hw/tpm/trace.h
GEN hw/usb/trace.h
GEN hw/vfio/trace.h
GEN hw/virtio/trace.h
GEN hw/watchdog/trace.h
GEN hw/xen/trace.h
GEN io/trace.h
GEN linux-user/trace.h
GEN migration/trace.h
GEN nbd/trace.h
GEN net/trace.h
GEN qapi/trace.h
GEN qom/trace.h
GEN scsi/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/ppc/trace.h
GEN target/s390x/trace.h
GEN target/sparc/trace.h
GEN ui/trace.h
GEN util/trace.h
GEN trace-root.c
GEN accel/kvm/trace.c
GEN accel/tcg/trace.c
GEN audio/trace.c
GEN block/trace.c
GEN chardev/trace.c
GEN crypto/trace.c
GEN hw/9pfs/trace.c
GEN hw/acpi/trace.c
GEN hw/alpha/trace.c
GEN hw/arm/trace.c
GEN hw/audio/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/display/trace.c
GEN hw/dma/trace.c
GEN hw/hppa/trace.c
GEN hw/i2c/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/ide/trace.c
GEN hw/input/trace.c
GEN hw/intc/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/misc/trace.c
GEN hw/misc/macio/trace.c
GEN hw/net/trace.c
GEN hw/nvram/trace.c
GEN hw/pci/trace.c
GEN hw/pci-host/trace.c
GEN hw/ppc/trace.c
GEN hw/rdma/trace.c
GEN hw/rdma/vmw/trace.c
GEN hw/s390x/trace.c
GEN hw/scsi/trace.c
GEN hw/sd/trace.c
GEN hw/sparc/trace.c
GEN hw/sparc64/trace.c
GEN hw/timer/trace.c
GEN hw/tpm/trace.c
GEN hw/usb/trace.c
GEN hw/vfio/trace.c
GEN hw/virtio/trace.c
GEN hw/watchdog/trace.c
GEN hw/xen/trace.c
GEN io/trace.c
GEN linux-user/trace.c
GEN migration/trace.c
GEN nbd/trace.c
GEN net/trace.c
GEN qapi/trace.c
GEN qom/trace.c
GEN scsi/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/ppc/trace.c
GEN target/s390x/trace.c
GEN target/sparc/trace.c
GEN ui/trace.c
GEN util/trace.c
GEN config-all-devices.mak
CC tests/qemu-iotests/socket_scm_helper.o
GEN qga/qapi-generated/qapi-gen
CC qapi/qapi-builtin-types.o
CC qapi/qapi-types.o
CC qapi/qapi-types-block.o
CC qapi/qapi-types-char.o
CC qapi/qapi-types-common.o
CC qapi/qapi-types-block-core.o
CC qapi/qapi-types-crypto.o
CC qapi/qapi-types-introspect.o
CC qapi/qapi-types-job.o
CC qapi/qapi-types-migration.o
CC qapi/qapi-types-misc.o
CC qapi/qapi-types-net.o
CC qapi/qapi-types-rocker.o
CC qapi/qapi-types-run-state.o
CC qapi/qapi-types-sockets.o
CC qapi/qapi-types-tpm.o
CC qapi/qapi-types-trace.o
CC qapi/qapi-types-transaction.o
CC qapi/qapi-types-ui.o
CC qapi/qapi-builtin-visit.o
CC qapi/qapi-visit.o
CC qapi/qapi-visit-block-core.o
CC qapi/qapi-visit-block.o
CC qapi/qapi-visit-char.o
CC qapi/qapi-visit-common.o
CC qapi/qapi-visit-introspect.o
CC qapi/qapi-visit-crypto.o
CC qapi/qapi-visit-job.o
CC qapi/qapi-visit-migration.o
CC qapi/qapi-visit-misc.o
CC qapi/qapi-visit-net.o
CC qapi/qapi-visit-rocker.o
CC qapi/qapi-visit-run-state.o
CC qapi/qapi-visit-sockets.o
CC qapi/qapi-visit-tpm.o
CC qapi/qapi-visit-trace.o
CC qapi/qapi-visit-ui.o
CC qapi/qapi-events.o
CC qapi/qapi-visit-transaction.o
CC qapi/qapi-events-block-core.o
CC qapi/qapi-events-block.o
CC qapi/qapi-events-char.o
CC qapi/qapi-events-common.o
CC qapi/qapi-events-crypto.o
CC qapi/qapi-events-introspect.o
CC qapi/qapi-events-job.o
CC qapi/qapi-events-migration.o
CC qapi/qapi-events-misc.o
CC qapi/qapi-events-net.o
CC qapi/qapi-events-rocker.o
CC qapi/qapi-events-run-state.o
CC qapi/qapi-events-sockets.o
CC qapi/qapi-events-tpm.o
CC qapi/qapi-events-trace.o
CC qapi/qapi-events-transaction.o
CC qapi/qapi-events-ui.o
CC qapi/qapi-introspect.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC qobject/block-qdict.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/aio-wait.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-openpty.o
CC util/qemu-thread-posix.o
CC util/memfd.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/base64.o
CC util/timed-average.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/qsp.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC util/iova-tree.o
CC util/vfio-helpers.o
CC util/drm.o
CC trace-root.o
CC accel/kvm/trace.o
CC accel/tcg/trace.o
CC audio/trace.o
CC block/trace.o
CC chardev/trace.o
CC crypto/trace.o
CC hw/9pfs/trace.o
CC hw/acpi/trace.o
CC hw/alpha/trace.o
CC hw/arm/trace.o
CC hw/audio/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/display/trace.o
CC hw/dma/trace.o
CC hw/hppa/trace.o
CC hw/i2c/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/ide/trace.o
CC hw/input/trace.o
CC hw/intc/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/misc/trace.o
CC hw/misc/macio/trace.o
CC hw/net/trace.o
CC hw/nvram/trace.o
CC hw/pci/trace.o
CC hw/pci-host/trace.o
CC hw/ppc/trace.o
CC hw/rdma/trace.o
CC hw/rdma/vmw/trace.o
CC hw/s390x/trace.o
CC hw/scsi/trace.o
CC hw/sd/trace.o
CC hw/sparc/trace.o
CC hw/sparc64/trace.o
CC hw/timer/trace.o
CC hw/tpm/trace.o
CC hw/usb/trace.o
CC hw/vfio/trace.o
CC hw/virtio/trace.o
CC hw/watchdog/trace.o
CC hw/xen/trace.o
CC io/trace.o
CC linux-user/trace.o
CC migration/trace.o
CC nbd/trace.o
CC net/trace.o
CC qapi/trace.o
CC qom/trace.o
CC scsi/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/ppc/trace.o
CC target/s390x/trace.o
CC target/sparc/trace.o
CC ui/trace.o
CC util/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/uuid.o
CC stubs/trace-control.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/qmp_memory_device.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
CC stubs/ram-block.o
CC stubs/ramfb.o
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC job.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/blklogwrites.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/create.o
CC block/throttle-groups.o
CC block/nvme.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC block/copy-on-read.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager.o
CC scsi/pr-manager-helper.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredspsk.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-platform.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/net-listener.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
CC qom/globals.o
GEN qemu-img-cmds.h
CC qemu-io.o
CC qemu-edid.o
CC hw/display/edid-generate.o
CC scsi/qemu-pr-helper.o
CC qemu-bridge-helper.o
CC blockdev.o
CC blockdev-nbd.o
/tmp/qemu-test/src/qom/globals.c: In function 'object_property_check_globals':
/tmp/qemu-test/src/qom/globals.c:61:9: error: implicit declaration of function 'IS_USER_CREATABLE_CLASS' [-Werror=implicit-function-declaration]
if (!IS_USER_CREATABLE_CLASS(oc) && !dc) {
^/tmp/qemu-test/src/qom/globals.c:61:9: error: nested extern declaration of 'IS_USER_CREATABLE_CLASS' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [qom/globals.o] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 560, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=1dec8128dd1b11e8875e52540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-e_nc6w70/src/docker-src.2018-10-31-10.41.48.705:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-e_nc6w70/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-quick@centos7] Error 2
real 1m27.588s
user 0m4.480s
sys 0m3.362s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v2 00/10] hostmem: use object "id" for memory region name with >= 3.1
=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=8
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'720b5d3d3d hostmem: use object id for memory region name with >= 3.1 d1afc352fc hw/i386: add pc-i440fx-3.1 & pc-q35-3.1 6bf54cebd0 tests: add user-creatable test to test-qdev-global-props 5704ef3901 qom/object: add set_globals flags7ccd9180a0 qom/object: set globals when initializing object d55e058030 qom/globals: generalize object_property_set_globals() d649887b6b qom/globals: move qdev globals to qom747e90e99d qdev: move qdev_prop_register_global_list() to tests 2d0037fecb accel: register global_props like machine globals 56f7f8cd3a qom: make user_creatable_complete() specific to UserCreatable
=== OUTPUT BEGIN ===
BUILD fedora
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-q9knamo8/src'
GEN /var/tmp/patchew-tester-tmp-q9knamo8/src/docker-src.2018-11-02-23.35.17.23252/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-q9knamo8/src/docker-src.2018-11-02-23.35.17.23252/qemu.tar.vroot'... done.
Checking out files: 47% (3063/6448) Checking out files: 48% (3096/6448) Checking out files: 49% (3160/6448) Checking out files: 50% (3224/6448) Checking out files: 51% (3289/6448) Checking out files: 52% (3353/6448) Checking out files: 53% (3418/6448) Checking out files: 54% (3482/6448) Checking out files: 55% (3547/6448) Checking out files: 56% (3611/6448) Checking out files: 57% (3676/6448) Checking out files: 58% (3740/6448) Checking out files: 59% (3805/6448) Checking out files: 60% (3869/6448) Checking out files: 61% (3934/6448) Checking out files: 62% (3998/6448) Checking out files: 63% (4063/6448) Checking out files: 64% (4127/6448) Checking out files: 65% (4192/6448) Checking out files: 66% (4256/6448) Checking out files: 67% (4321/6448) Checking out files: 68% (4385/6448) Checking out files: 69% (4450/6448) Checking out files: 70% (4514/6448) Checking out files: 71% (4579/6448) Checking out files: 72% (4643/6448) Checking out files: 73% (4708/6448) Checking out files: 74% (4772/6448) Checking out files: 75% (4836/6448) Checking out files: 76% (4901/6448) Checking out files: 77% (4965/6448) Checking out files: 78% (5030/6448) Checking out files: 79% (5094/6448) Checking out files: 80% (5159/6448) Checking out files: 81% (5223/6448) Checking out files: 82% (5288/6448) Checking out files: 83% (5352/6448) Checking out files: 84% (5417/6448) Checking out files: 85% (5481/6448) Checking out files: 86% (5546/6448) Checking out files: 87% (5610/6448) Checking out files: 88% (5675/6448) Checking out files: 89% (5739/6448) Checking out files: 90% (5804/6448) Checking out files: 91% (5868/6448) Checking out files: 92% (5933/6448) Checking out files: 93% (5997/6448) Checking out files: 94% (6062/6448) Checking out files: 95% (6126/6448) Checking out files: 96% (6191/6448) Checking out files: 97% (6255/6448) Checking out files: 98% (6320/6448) Checking out files: 99% (6384/6448) Checking out files: 100% (6448/6448) Checking out files: 100% (6448/6448), done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-q9knamo8/src/docker-src.2018-11-02-23.35.17.23252/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-q9knamo8/src/docker-src.2018-11-02-23.35.17.23252/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
COPY RUNNER
RUN test-mingw in qemu:fedora
Packages installed:
SDL2-devel-2.0.8-5.fc28.x86_64
bc-1.07.1-5.fc28.x86_64
bison-3.0.4-9.fc28.x86_64
bluez-libs-devel-5.50-1.fc28.x86_64
brlapi-devel-0.6.7-19.fc28.x86_64
bzip2-1.0.6-26.fc28.x86_64
bzip2-devel-1.0.6-26.fc28.x86_64
ccache-3.4.2-2.fc28.x86_64
clang-6.0.1-1.fc28.x86_64
device-mapper-multipath-devel-0.7.4-3.git07e7bd5.fc28.x86_64
findutils-4.6.0-19.fc28.x86_64
flex-2.6.1-7.fc28.x86_64
gcc-8.1.1-5.fc28.x86_64
gcc-c++-8.1.1-5.fc28.x86_64
gettext-0.19.8.1-14.fc28.x86_64
git-2.17.1-3.fc28.x86_64
glib2-devel-2.56.1-4.fc28.x86_64
glusterfs-api-devel-4.1.2-2.fc28.x86_64
gnutls-devel-3.6.3-3.fc28.x86_64
gtk3-devel-3.22.30-1.fc28.x86_64
hostname-3.20-3.fc28.x86_64
libaio-devel-0.3.110-11.fc28.x86_64
libasan-8.1.1-5.fc28.x86_64
libattr-devel-2.4.48-3.fc28.x86_64
libcap-devel-2.25-9.fc28.x86_64
libcap-ng-devel-0.7.9-4.fc28.x86_64
libcurl-devel-7.59.0-6.fc28.x86_64
libfdt-devel-1.4.6-5.fc28.x86_64
libpng-devel-1.6.34-6.fc28.x86_64
librbd-devel-12.2.7-1.fc28.x86_64
libssh2-devel-1.8.0-7.fc28.x86_64
libubsan-8.1.1-5.fc28.x86_64
libusbx-devel-1.0.22-1.fc28.x86_64
libxml2-devel-2.9.8-4.fc28.x86_64
llvm-6.0.1-6.fc28.x86_64
lzo-devel-2.08-12.fc28.x86_64
make-4.2.1-6.fc28.x86_64
mingw32-SDL2-2.0.5-3.fc27.noarch
mingw32-bzip2-1.0.6-9.fc27.noarch
mingw32-curl-7.57.0-1.fc28.noarch
mingw32-glib2-2.56.1-1.fc28.noarch
mingw32-gmp-6.1.2-2.fc27.noarch
mingw32-gnutls-3.6.2-1.fc28.noarch
mingw32-gtk3-3.22.30-1.fc28.noarch
mingw32-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw32-libpng-1.6.29-2.fc27.noarch
mingw32-libssh2-1.8.0-3.fc27.noarch
mingw32-libtasn1-4.13-1.fc28.noarch
mingw32-nettle-3.4-1.fc28.noarch
mingw32-pixman-0.34.0-3.fc27.noarch
mingw32-pkg-config-0.28-9.fc27.x86_64
mingw64-SDL2-2.0.5-3.fc27.noarch
mingw64-bzip2-1.0.6-9.fc27.noarch
mingw64-curl-7.57.0-1.fc28.noarch
mingw64-glib2-2.56.1-1.fc28.noarch
mingw64-gmp-6.1.2-2.fc27.noarch
mingw64-gnutls-3.6.2-1.fc28.noarch
mingw64-gtk3-3.22.30-1.fc28.noarch
mingw64-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw64-libpng-1.6.29-2.fc27.noarch
mingw64-libssh2-1.8.0-3.fc27.noarch
mingw64-libtasn1-4.13-1.fc28.noarch
mingw64-nettle-3.4-1.fc28.noarch
mingw64-pixman-0.34.0-3.fc27.noarch
mingw64-pkg-config-0.28-9.fc27.x86_64
ncurses-devel-6.1-5.20180224.fc28.x86_64
nettle-devel-3.4-2.fc28.x86_64
nss-devel-3.38.0-1.0.fc28.x86_64
numactl-devel-2.0.11-8.fc28.x86_64
package PyYAML is not installed
package libjpeg-devel is not installed
perl-5.26.2-413.fc28.x86_64
pixman-devel-0.34.0-8.fc28.x86_64
python3-3.6.5-1.fc28.x86_64
snappy-devel-1.1.7-5.fc28.x86_64
sparse-0.5.2-1.fc28.x86_64
spice-server-devel-0.14.0-4.fc28.x86_64
systemtap-sdt-devel-3.3-1.fc28.x86_64
tar-1.30-3.fc28.x86_64
usbredir-devel-0.8.0-1.fc28.x86_64
virglrenderer-devel-0.6.0-4.20170210git76b3da97b.fc28.x86_64
vte3-devel-0.36.5-6.fc28.x86_64
which-2.21-8.fc28.x86_64
xen-devel-4.10.1-5.fc28.x86_64
zlib-devel-1.2.11-8.fc28.x86_64
Environment variables:
TARGET_LIST=
PACKAGES=bc bison bluez-libs-devel brlapi-devel bzip2 bzip2-devel ccache clang device-mapper-multipath-devel findutils flex gcc gcc-c++ gettext git glib2-devel glusterfs-api-devel gnutls-devel gtk3-devel hostname libaio-devel libasan libattr-devel libcap-devel libcap-ng-devel libcurl-devel libfdt-devel libjpeg-devel libpng-devel librbd-devel libssh2-devel libubsan libusbx-devel libxml2-devel llvm lzo-devel make mingw32-bzip2 mingw32-curl mingw32-glib2 mingw32-gmp mingw32-gnutls mingw32-gtk3 mingw32-libjpeg-turbo mingw32-libpng mingw32-libssh2 mingw32-libtasn1 mingw32-nettle mingw32-pixman mingw32-pkg-config mingw32-SDL2 mingw64-bzip2 mingw64-curl mingw64-glib2 mingw64-gmp mingw64-gnutls mingw64-gtk3 mingw64-libjpeg-turbo mingw64-libpng mingw64-libssh2 mingw64-libtasn1 mingw64-nettle mingw64-pixman mingw64-pkg-config mingw64-SDL2 ncurses-devel nettle-devel nss-devel numactl-devel perl pixman-devel python3 PyYAML SDL2-devel snappy-devel sparse spice-server-devel systemtap-sdt-devel tar usbredir-devel virglrenderer-devel vte3-devel which xen-devel zlib-devel
J=8
V=
HOSTNAME=2dc7e07480af
DEBUG=
SHOW_ENV=1
PWD=/
HOME=/home/patchew
CCACHE_DIR=/var/tmp/ccache
DISTTAG=f28container
QEMU_CONFIGURE_OPTS=--python=/usr/bin/python3
FGC=f28
TEST_DIR=/tmp/qemu-test
SHLVL=1
FEATURES=mingw clang pyyaml asan dtc PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin MAKEFLAGS= -j8
EXTRA_CONFIGURE_OPTS=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install --python=/usr/bin/python3 --cross-prefix=x86_64-w64-mingw32- --enable-trace-backends=simple --enable-gnutls --enable-nettle --enable-curl --enable-vnc --enable-bzip2 --enable-guest-agent --with-sdlabi=2.0
Install prefix /tmp/qemu-test/install BIOS directory /tmp/qemu-test/install firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install
library directory /tmp/qemu-test/install/lib
module directory /tmp/qemu-test/install/lib
libexec directory /tmp/qemu-test/install/libexec
include directory /tmp/qemu-test/install/include
config directory /tmp/qemu-test/install
local state directory queried at runtime
Windows SDK no Source path /tmp/qemu-test/src GIT binary git GIT submodules C compiler x86_64-w64-mingw32-gcc Host C compiler cc C++ compiler x86_64-w64-mingw32-g++ Objective-C compiler clang ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -Werror -DHAS_LIBSSH2_SFTP_FSYNC -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -mms-bitfields -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/x86_64-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -m64 -mcx16 -mthreads -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN -DWINVER=0x501 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/p11-kit-1 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 LDFLAGS -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase -Wl,--warn-common -m64 -g QEMU_LDFLAGS -L$(BUILD_DIR)/dtc/libfdt make make install install python /usr/bin/python3 -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (2.0.5) GTK support yes (3.22.30) GTK GL support no VTE support no TLS priority NORMAL GNUTLS support yes libgcrypt no nettle yes (3.4) libtasn1 yes curses support no virgl support no curl support yes mingw32 support yes Audio drivers dsound
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
Multipath support no
VNC support yes VNC SASL support no VNC JPEG support yes VNC PNG support yes xen support no brlapi support no bluez support no Documentation no PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support no Install blobs yes KVM support no HAX support yes HVF support no WHPX support no TCG support yes TCG debug enabled no TCG interpreter no malloc trim support no RDMA support no PVRDMA support no fdt support git membarrier no preadv support no fdatasync no madvise no posix_madvise no posix_memalign no
libcap-ng support no
vhost-net support no
vhost-crypto support no
vhost-scsi support no
vhost-vsock support no
vhost-user support no
Trace backends simple
Trace output file trace-<pid>
spice support no rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no OpenGL dmabufs no libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info yes
QGA MSI support no
seccomp support no
coroutine backend win32
coroutine pool yes
debug stack usage no
mutex debugging no
crypto afalg no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no TPM emulator no QOM debugging yes Live block migration yes lzo support no snappy support no bzip2 support yes NUMA host support no libxml2 no tcmalloc support no jemalloc support no avx2 optimization yes replication support yes VxHS block device no capstone no docker no libpmem support no
NOTE: cross-compilers enabled: 'x86_64-w64-mingw32-gcc'
GEN x86_64-softmmu/config-devices.mak.tmp GEN aarch64-softmmu/config-devices.mak.tmp GEN config-host.h GEN qemu-options.def GEN qapi-gen GEN trace/generated-tcg-tracers.h GEN trace/generated-helpers-wrappers.h GEN trace/generated-helpers.h GEN aarch64-softmmu/config-devices.mak GEN trace/generated-helpers.c GEN module_block.h GEN x86_64-softmmu/config-devices.mak GEN ui/input-keymap-atset1-to-qcode.c GEN ui/input-keymap-linux-to-qcode.c GEN ui/input-keymap-qcode-to-atset1.c GEN ui/input-keymap-qcode-to-atset2.c GEN ui/input-keymap-qcode-to-atset3.c GEN ui/input-keymap-qcode-to-linux.c GEN ui/input-keymap-qcode-to-qnum.c GEN ui/input-keymap-qcode-to-sun.c GEN ui/input-keymap-qnum-to-qcode.c GEN ui/input-keymap-usb-to-qcode.c GEN ui/input-keymap-win32-to-qcode.c GEN ui/input-keymap-x11-to-qcode.c GEN ui/input-keymap-xorgevdev-to-qcode.c GEN ui/input-keymap-xorgkbd-to-qcode.c GEN ui/input-keymap-xorgxquartz-to-qcode.c GEN ui/input-keymap-xorgxwin-to-qcode.c GEN ui/input-keymap-osx-to-qcode.c GEN tests/test-qapi-gen GEN trace-root.h GEN accel/kvm/trace.h GEN accel/tcg/trace.h GEN audio/trace.h GEN block/trace.h GEN chardev/trace.h GEN crypto/trace.h GEN hw/9pfs/trace.h GEN hw/acpi/trace.h GEN hw/alpha/trace.h GEN hw/arm/trace.h GEN hw/audio/trace.h GEN hw/block/trace.h GEN hw/block/dataplane/trace.h GEN hw/char/trace.h GEN hw/display/trace.h GEN hw/dma/trace.h GEN hw/hppa/trace.h GEN hw/i2c/trace.h GEN hw/i386/trace.h GEN hw/i386/xen/trace.h GEN hw/ide/trace.h GEN hw/input/trace.h GEN hw/intc/trace.h GEN hw/isa/trace.h GEN hw/mem/trace.h GEN hw/misc/trace.h GEN hw/misc/macio/trace.h GEN hw/net/trace.h GEN hw/nvram/trace.h GEN hw/pci/trace.h GEN hw/pci-host/trace.h GEN hw/ppc/trace.h GEN hw/rdma/trace.h GEN hw/rdma/vmw/trace.h GEN hw/s390x/trace.h GEN hw/scsi/trace.h GEN hw/sd/trace.h GEN hw/sparc/trace.h GEN hw/sparc64/trace.h GEN hw/timer/trace.h GEN hw/tpm/trace.h GEN hw/usb/trace.h GEN hw/vfio/trace.h GEN hw/virtio/trace.h GEN hw/watchdog/trace.h GEN hw/xen/trace.h GEN io/trace.h GEN linux-user/trace.h GEN migration/trace.h GEN nbd/trace.h GEN net/trace.h GEN qapi/trace.h GEN qom/trace.h GEN scsi/trace.h GEN target/arm/trace.h GEN target/i386/trace.h GEN target/mips/trace.h GEN target/ppc/trace.h GEN target/s390x/trace.h GEN target/sparc/trace.h GEN ui/trace.h GEN util/trace.h GEN trace-root.c GEN accel/kvm/trace.c GEN accel/tcg/trace.c GEN audio/trace.c GEN block/trace.c GEN chardev/trace.c GEN crypto/trace.c GEN hw/9pfs/trace.c GEN hw/acpi/trace.c GEN hw/alpha/trace.c GEN hw/arm/trace.c GEN hw/audio/trace.c GEN hw/block/trace.c GEN hw/block/dataplane/trace.c GEN hw/char/trace.c GEN hw/display/trace.c GEN hw/dma/trace.c GEN hw/hppa/trace.c GEN hw/i2c/trace.c GEN hw/i386/trace.c GEN hw/i386/xen/trace.c GEN hw/ide/trace.c GEN hw/input/trace.c GEN hw/intc/trace.c GEN hw/isa/trace.c GEN hw/mem/trace.c GEN hw/misc/trace.c GEN hw/misc/macio/trace.c GEN hw/net/trace.c GEN hw/nvram/trace.c GEN hw/pci/trace.c GEN hw/pci-host/trace.c GEN hw/ppc/trace.c GEN hw/rdma/trace.c GEN hw/rdma/vmw/trace.c GEN hw/s390x/trace.c GEN hw/scsi/trace.c GEN hw/sd/trace.c GEN hw/sparc/trace.c GEN hw/sparc64/trace.c GEN hw/timer/trace.c GEN hw/tpm/trace.c GEN hw/usb/trace.c GEN hw/vfio/trace.c GEN hw/virtio/trace.c GEN hw/watchdog/trace.c GEN hw/xen/trace.c GEN io/trace.c GEN linux-user/trace.c GEN migration/trace.c GEN nbd/trace.c GEN net/trace.c GEN qapi/trace.c GEN qom/trace.c GEN scsi/trace.c GEN target/arm/trace.c GEN target/i386/trace.c GEN target/mips/trace.c GEN target/ppc/trace.c GEN target/s390x/trace.c GEN target/sparc/trace.c GEN ui/trace.c GEN util/trace.c GEN config-all-devices.mak
DEP /tmp/qemu-test/src/dtc/tests/dumptrees.c
DEP /tmp/qemu-test/src/dtc/tests/trees.S
DEP /tmp/qemu-test/src/dtc/tests/testutils.c
DEP /tmp/qemu-test/src/dtc/tests/value-labels.c DEP /tmp/qemu-test/src/dtc/tests/truncated_memrsv.c DEP /tmp/qemu-test/src/dtc/tests/asm_tree_dump.c DEP /tmp/qemu-test/src/dtc/tests/truncated_string.c DEP /tmp/qemu-test/src/dtc/tests/truncated_property.c DEP /tmp/qemu-test/src/dtc/tests/check_full.c
DEP /tmp/qemu-test/src/dtc/tests/check_header.c DEP /tmp/qemu-test/src/dtc/tests/overlay.c
DEP /tmp/qemu-test/src/dtc/tests/overlay_bad_fixup.c DEP /tmp/qemu-test/src/dtc/tests/check_path.c
DEP /tmp/qemu-test/src/dtc/tests/subnode_iterate.c DEP /tmp/qemu-test/src/dtc/tests/property_iterate.c DEP /tmp/qemu-test/src/dtc/tests/integer-expressions.c DEP /tmp/qemu-test/src/dtc/tests/utilfdt_test.c DEP /tmp/qemu-test/src/dtc/tests/path_offset_aliases.c DEP /tmp/qemu-test/src/dtc/tests/add_subnode_with_nops.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_unordered.c DEP /tmp/qemu-test/src/dtc/tests/dtb_reverse.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_ordered.c DEP /tmp/qemu-test/src/dtc/tests/extra-terminating-null.c DEP /tmp/qemu-test/src/dtc/tests/incbin.c
DEP /tmp/qemu-test/src/dtc/tests/boot-cpuid.c
DEP /tmp/qemu-test/src/dtc/tests/phandle_format.c DEP /tmp/qemu-test/src/dtc/tests/path-references.c DEP /tmp/qemu-test/src/dtc/tests/references.c
DEP /tmp/qemu-test/src/dtc/tests/string_escapes.c DEP /tmp/qemu-test/src/dtc/tests/propname_escapes.c DEP /tmp/qemu-test/src/dtc/tests/appendprop2.c DEP /tmp/qemu-test/src/dtc/tests/appendprop1.c DEP /tmp/qemu-test/src/dtc/tests/del_node.c
DEP /tmp/qemu-test/src/dtc/tests/del_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop.c
DEP /tmp/qemu-test/src/dtc/tests/set_name.c
DEP /tmp/qemu-test/src/dtc/tests/rw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/open_pack.c
DEP /tmp/qemu-test/src/dtc/tests/nopulate.c
DEP /tmp/qemu-test/src/dtc/tests/mangle-layout.c DEP /tmp/qemu-test/src/dtc/tests/move_and_save.c DEP /tmp/qemu-test/src/dtc/tests/sw_states.c
DEP /tmp/qemu-test/src/dtc/tests/sw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/nop_node.c
DEP /tmp/qemu-test/src/dtc/tests/nop_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop_inplace.c DEP /tmp/qemu-test/src/dtc/tests/stringlist.c
DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells2.c DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells.c DEP /tmp/qemu-test/src/dtc/tests/notfound.c
DEP /tmp/qemu-test/src/dtc/tests/sized_cells.c DEP /tmp/qemu-test/src/dtc/tests/char_literal.c DEP /tmp/qemu-test/src/dtc/tests/get_alias.c
DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_check_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_phandle.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_prop_value.c DEP /tmp/qemu-test/src/dtc/tests/parent_offset.c DEP /tmp/qemu-test/src/dtc/tests/supernode_atdepth_offset.c DEP /tmp/qemu-test/src/dtc/tests/get_path.c
DEP /tmp/qemu-test/src/dtc/tests/get_phandle.c DEP /tmp/qemu-test/src/dtc/tests/getprop.c
DEP /tmp/qemu-test/src/dtc/tests/get_name.c
DEP /tmp/qemu-test/src/dtc/tests/path_offset.c DEP /tmp/qemu-test/src/dtc/tests/subnode_offset.c DEP /tmp/qemu-test/src/dtc/tests/find_property.c DEP /tmp/qemu-test/src/dtc/tests/root_node.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_overlay.c DEP /tmp/qemu-test/src/dtc/tests/get_mem_rsv.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_addresses.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_empty_tree.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_strerror.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_rw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_sw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_wip.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_ro.c
DEP /tmp/qemu-test/src/dtc/util.c
DEP /tmp/qemu-test/src/dtc/fdtoverlay.c
DEP /tmp/qemu-test/src/dtc/fdtput.c
DEP /tmp/qemu-test/src/dtc/fdtget.c
DEP /tmp/qemu-test/src/dtc/fdtdump.c
LEX convert-dtsv0-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/srcpos.c
BISON dtc-parser.tab.c
LEX dtc-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/treesource.c
DEP /tmp/qemu-test/src/dtc/livetree.c
DEP /tmp/qemu-test/src/dtc/fstree.c
DEP /tmp/qemu-test/src/dtc/flattree.c
DEP /tmp/qemu-test/src/dtc/dtc.c
DEP /tmp/qemu-test/src/dtc/data.c
DEP /tmp/qemu-test/src/dtc/checks.c
DEP convert-dtsv0-lexer.lex.c
DEP dtc-parser.tab.c
DEP dtc-lexer.lex.c
CHK version_gen.h
UPD version_gen.h
DEP /tmp/qemu-test/src/dtc/util.c
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_rw.o
CC libfdt/fdt_empty_tree.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_strerror.o
CC libfdt/fdt_addresses.o
CC libfdt/fdt_overlay.o
AR libfdt/libfdt.a
x86_64-w64-mingw32-ar: creating libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
RC version.o
GEN qga/qapi-generated/qapi-gen
CC qapi/qapi-builtin-types.o
CC qapi/qapi-types.o
CC qapi/qapi-types-block-core.o
CC qapi/qapi-types-block.o
CC qapi/qapi-types-common.o
CC qapi/qapi-types-char.o
CC qapi/qapi-types-crypto.o
CC qapi/qapi-types-job.o
CC qapi/qapi-types-migration.o
CC qapi/qapi-types-introspect.o
CC qapi/qapi-types-misc.o
CC qapi/qapi-types-net.o
CC qapi/qapi-types-rocker.o
CC qapi/qapi-types-run-state.o
CC qapi/qapi-types-sockets.o
CC qapi/qapi-types-tpm.o
CC qapi/qapi-types-trace.o
CC qapi/qapi-types-transaction.o
CC qapi/qapi-types-ui.o
CC qapi/qapi-builtin-visit.o
CC qapi/qapi-visit.o
CC qapi/qapi-visit-block-core.o
CC qapi/qapi-visit-block.o
CC qapi/qapi-visit-char.o
CC qapi/qapi-visit-common.o
CC qapi/qapi-visit-crypto.o
CC qapi/qapi-visit-introspect.o
CC qapi/qapi-visit-job.o
CC qapi/qapi-visit-migration.o
CC qapi/qapi-visit-misc.o
CC qapi/qapi-visit-net.o
CC qapi/qapi-visit-rocker.o
CC qapi/qapi-visit-run-state.o
CC qapi/qapi-visit-sockets.o
CC qapi/qapi-visit-tpm.o
CC qapi/qapi-visit-trace.o
CC qapi/qapi-visit-transaction.o
CC qapi/qapi-visit-ui.o
CC qapi/qapi-events.o
CC qapi/qapi-events-block-core.o
CC qapi/qapi-events-block.o
CC qapi/qapi-events-char.o
CC qapi/qapi-events-common.o
CC qapi/qapi-events-crypto.o
CC qapi/qapi-events-introspect.o
CC qapi/qapi-events-job.o
CC qapi/qapi-events-migration.o
CC qapi/qapi-events-misc.o
CC qapi/qapi-events-net.o
CC qapi/qapi-events-rocker.o
CC qapi/qapi-events-run-state.o
CC qapi/qapi-events-sockets.o
CC qapi/qapi-events-tpm.o
CC qapi/qapi-events-trace.o
CC qapi/qapi-events-transaction.o
CC qapi/qapi-events-ui.o
CC qapi/qapi-introspect.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC qobject/block-qdict.o
CC trace/simple.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/aio-wait.o
CC util/thread-pool.o
CC util/main-loop.o
CC util/qemu-timer.o
CC util/iohandler.o
CC util/aio-win32.o
CC util/event_notifier-win32.o
CC util/oslib-win32.o
CC util/qemu-thread-win32.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-win32.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/qsp.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC util/iova-tree.o
CC trace-root.o
CC accel/kvm/trace.o
CC accel/tcg/trace.o
CC audio/trace.o
CC block/trace.o
CC chardev/trace.o
CC crypto/trace.o
CC hw/9pfs/trace.o
CC hw/acpi/trace.o
CC hw/alpha/trace.o
CC hw/arm/trace.o
CC hw/audio/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/display/trace.o
CC hw/dma/trace.o
CC hw/hppa/trace.o
CC hw/i2c/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/ide/trace.o
CC hw/input/trace.o
CC hw/intc/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/misc/trace.o
CC hw/misc/macio/trace.o
CC hw/net/trace.o
CC hw/nvram/trace.o
CC hw/pci/trace.o
CC hw/pci-host/trace.o
CC hw/ppc/trace.o
CC hw/rdma/trace.o
CC hw/rdma/vmw/trace.o
CC hw/s390x/trace.o
CC hw/scsi/trace.o
CC hw/sd/trace.o
CC hw/sparc/trace.o
CC hw/sparc64/trace.o
CC hw/timer/trace.o
CC hw/tpm/trace.o
CC hw/usb/trace.o
CC hw/vfio/trace.o
CC hw/virtio/trace.o
CC hw/watchdog/trace.o
CC hw/xen/trace.o
CC io/trace.o
CC linux-user/trace.o
CC migration/trace.o
CC nbd/trace.o
CC net/trace.o
CC qapi/trace.o
CC qom/trace.o
CC scsi/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/ppc/trace.o
CC target/s390x/trace.o
CC target/sparc/trace.o
CC ui/trace.o
CC util/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/notify-event.o
CC stubs/monitor.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/fd-register.o
CC stubs/qmp_memory_device.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
CC stubs/ram-block.o
CC stubs/ramfb.o
GEN qemu-img-cmds.h
CC block.o
CC blockjob.o
CC job.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/blklogwrites.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-win32.o
CC block/win32-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/create.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC block/copy-on-read.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager-stub.o
CC block/curl.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredspsk.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/net-listener.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
CC qom/globals.o
CC qemu-io.o
CC qemu-edid.o
CC hw/display/edid-generate.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
CC iothread.o
/tmp/qemu-test/src/qom/globals.c: In function 'object_property_check_globals':
/tmp/qemu-test/src/qom/globals.c:61:14: error: implicit declaration of function 'IS_USER_CREATABLE_CLASS'; did you mean 'USER_CREATABLE_CLASS'? [-Werror=implicit-function-declaration]
if (!IS_USER_CREATABLE_CLASS(oc) && !dc) {
^~~~~~~~~~~~~~~~~~~~~~~
USER_CREATABLE_CLASS/tmp/qemu-test/src/qom/globals.c:61:14: error: nested extern declaration of 'IS_USER_CREATABLE_CLASS' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [/tmp/qemu-test/src/rules.mak:69: qom/globals.o] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 560, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=832d6deadf1911e8830252540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-q9knamo8/src/docker-src.2018-11-02-23.35.17.23252:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 2 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-q9knamo8/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-mingw@fedora] Error 2
real 2m8.342s
user 0m5.505s
sys 0m3.841s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series failed docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v2 00/10] hostmem: use object "id" for memory region name with >= 3.1
=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-quick@centos7 SHOW_ENV=1 J=8 === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'720b5d3d3d hostmem: use object id for memory region name with >= 3.1 d1afc352fc hw/i386: add pc-i440fx-3.1 & pc-q35-3.1 6bf54cebd0 tests: add user-creatable test to test-qdev-global-props 5704ef3901 qom/object: add set_globals flags7ccd9180a0 qom/object: set globals when initializing object d55e058030 qom/globals: generalize object_property_set_globals() d649887b6b qom/globals: move qdev globals to qom747e90e99d qdev: move qdev_prop_register_global_list() to tests 2d0037fecb accel: register global_props like machine globals 56f7f8cd3a qom: make user_creatable_complete() specific to UserCreatable
=== OUTPUT BEGIN ===
BUILD centos7
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-lft2ju70/src'
GEN /var/tmp/patchew-tester-tmp-lft2ju70/src/docker-src.2018-11-02-23.37.50.28564/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-lft2ju70/src/docker-src.2018-11-02-23.37.50.28564/qemu.tar.vroot'... done.
Checking out files: 47% (3081/6448) Checking out files: 48% (3096/6448) Checking out files: 49% (3160/6448) Checking out files: 50% (3224/6448) Checking out files: 51% (3289/6448) Checking out files: 52% (3353/6448) Checking out files: 53% (3418/6448) Checking out files: 54% (3482/6448) Checking out files: 55% (3547/6448) Checking out files: 56% (3611/6448) Checking out files: 57% (3676/6448) Checking out files: 58% (3740/6448) Checking out files: 59% (3805/6448) Checking out files: 60% (3869/6448) Checking out files: 61% (3934/6448) Checking out files: 62% (3998/6448) Checking out files: 63% (4063/6448) Checking out files: 64% (4127/6448) Checking out files: 65% (4192/6448) Checking out files: 66% (4256/6448) Checking out files: 67% (4321/6448) Checking out files: 68% (4385/6448) Checking out files: 69% (4450/6448) Checking out files: 70% (4514/6448) Checking out files: 71% (4579/6448) Checking out files: 72% (4643/6448) Checking out files: 73% (4708/6448) Checking out files: 74% (4772/6448) Checking out files: 75% (4836/6448) Checking out files: 76% (4901/6448) Checking out files: 77% (4965/6448) Checking out files: 78% (5030/6448) Checking out files: 79% (5094/6448) Checking out files: 80% (5159/6448) Checking out files: 81% (5223/6448) Checking out files: 82% (5288/6448) Checking out files: 83% (5352/6448) Checking out files: 84% (5417/6448) Checking out files: 85% (5481/6448) Checking out files: 86% (5546/6448) Checking out files: 87% (5610/6448) Checking out files: 88% (5675/6448) Checking out files: 89% (5739/6448) Checking out files: 90% (5804/6448) Checking out files: 91% (5868/6448) Checking out files: 92% (5933/6448) Checking out files: 93% (5997/6448) Checking out files: 94% (6062/6448) Checking out files: 95% (6126/6448) Checking out files: 96% (6191/6448) Checking out files: 97% (6255/6448) Checking out files: 98% (6320/6448) Checking out files: 99% (6384/6448) Checking out files: 100% (6448/6448) Checking out files: 100% (6448/6448), done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-lft2ju70/src/docker-src.2018-11-02-23.37.50.28564/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-lft2ju70/src/docker-src.2018-11-02-23.37.50.28564/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
COPY RUNNER
RUN test-quick in qemu:centos7
Packages installed:
SDL-devel-1.2.15-14.el7.x86_64
bison-3.0.4-1.el7.x86_64
bzip2-1.0.6-13.el7.x86_64
bzip2-devel-1.0.6-13.el7.x86_64
ccache-3.3.4-1.el7.x86_64
csnappy-devel-0-6.20150729gitd7bc683.el7.x86_64
flex-2.5.37-3.el7.x86_64
gcc-4.8.5-28.el7_5.1.x86_64
gettext-0.19.8.1-2.el7.x86_64
git-1.8.3.1-14.el7_5.x86_64
glib2-devel-2.54.2-2.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libepoxy-devel-1.3.1-2.el7_5.x86_64
libfdt-devel-1.4.6-1.el7.x86_64
lzo-devel-2.06-8.el7.x86_64
make-3.82-23.el7.x86_64
mesa-libEGL-devel-17.2.3-8.20171019.el7.x86_64
mesa-libgbm-devel-17.2.3-8.20171019.el7.x86_64
nettle-devel-2.7.1-8.el7.x86_64
package g++ is not installed
package librdmacm-devel is not installed
pixman-devel-0.34.0-1.el7.x86_64
spice-glib-devel-0.34-3.el7_5.1.x86_64
spice-server-devel-0.14.0-2.el7_5.4.x86_64
tar-1.26-34.el7.x86_64
vte-devel-0.28.2-10.el7.x86_64
xen-devel-4.6.6-12.el7.x86_64
zlib-devel-1.2.7-17.el7.x86_64
Environment variables:
PACKAGES=bison bzip2 bzip2-devel ccache csnappy-devel flex g++ gcc gettext git glib2-devel libaio-devel libepoxy-devel libfdt-devel librdmacm-devel lzo-devel make mesa-libEGL-devel mesa-libgbm-devel nettle-devel pixman-devel SDL-devel spice-glib-devel spice-server-devel tar vte-devel xen-devel zlib-devel
HOSTNAME=076f94958496
MAKEFLAGS= -j8
J=8
CCACHE_DIR=/var/tmp/ccache
EXTRA_CONFIGURE_OPTS=
V=
SHOW_ENV=1 PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/
TARGET_LIST=
SHLVL=1
HOME=/home/patchew
TEST_DIR=/tmp/qemu-test
FEATURES= dtc
DEBUG=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install No C++ compiler available; disabling C++ specific optional code
Install prefix /tmp/qemu-test/install BIOS directory /tmp/qemu-test/install/share/qemu firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install/bin
library directory /tmp/qemu-test/install/lib module directory /tmp/qemu-test/install/lib/qemu libexec directory /tmp/qemu-test/install/libexec include directory /tmp/qemu-test/install/include config directory /tmp/qemu-test/install/etc
local state directory /tmp/qemu-test/install/var
Manual directory /tmp/qemu-test/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /tmp/qemu-test/src
GIT binary git
GIT submodules
C compiler cc
Host C compiler cc
C++ compiler
Objective-C compiler cc
ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -Wno-missing-braces -I/usr/include/libpng15 -pthread -I/usr/include/spice-server -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/spice-1 LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g QEMU_LDFLAGS make make install install python python -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (1.2.15) GTK support no GTK GL support no VTE support no TLS priority NORMAL GNUTLS support no libgcrypt no nettle yes (2.7.1) libtasn1 no curses support yes virgl support no curl support no mingw32 support no Audio drivers oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
Multipath support no
VNC support yes VNC SASL support no VNC JPEG support no VNC PNG support yes xen support yes xen ctrl version 40600 pv dom build no brlapi support no bluez support no Documentation no PIE yes vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no HVF support no WHPX support no TCG support yes TCG debug enabled no TCG interpreter no malloc trim support yes RDMA support yes PVRDMA support yes fdt support system membarrier no preadv support yes fdatasync yes madvise yes posix_madvise yes posix_memalign yes
libcap-ng support no
vhost-net support yes
vhost-crypto support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends log spice support yes (0.12.13/0.14.0) rbd support no xfsctl support no smartcard support yes libusb no usb net redir no OpenGL support yes OpenGL dmabufs yes libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend ucontext
coroutine pool yes
debug stack usage no
mutex debugging no
crypto afalg no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough yes TPM emulator yes QOM debugging yes Live block migration yes lzo support yes snappy support no bzip2 support yes NUMA host support no libxml2 no tcmalloc support no jemalloc support no avx2 optimization yes replication support yes VxHS block device no capstone no docker no libpmem support no
WARNING: Use of SDL 1.2 is deprecated and will be removed in
WARNING: future releases. Please switch to using SDL 2.0
NOTE: cross-compilers enabled: 'cc'
GEN x86_64-softmmu/config-devices.mak.tmp
GEN aarch64-softmmu/config-devices.mak.tmp
GEN config-host.h
GEN qemu-options.def
GEN qapi-gen
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
GEN aarch64-softmmu/config-devices.mak
GEN x86_64-softmmu/config-devices.mak
GEN trace/generated-helpers.c
GEN module_block.h
GEN ui/input-keymap-atset1-to-qcode.c
GEN ui/input-keymap-linux-to-qcode.c
GEN ui/input-keymap-qcode-to-atset1.c
GEN ui/input-keymap-qcode-to-atset2.c
GEN ui/input-keymap-qcode-to-atset3.c
GEN ui/input-keymap-qcode-to-linux.c
GEN ui/input-keymap-qcode-to-qnum.c
GEN ui/input-keymap-qcode-to-sun.c
GEN ui/input-keymap-qnum-to-qcode.c
GEN ui/input-keymap-usb-to-qcode.c
GEN ui/input-keymap-win32-to-qcode.c
GEN ui/input-keymap-x11-to-qcode.c
GEN ui/input-keymap-xorgevdev-to-qcode.c
GEN ui/input-keymap-xorgkbd-to-qcode.c
GEN ui/input-keymap-xorgxquartz-to-qcode.c
GEN ui/input-keymap-xorgxwin-to-qcode.c
GEN ui/input-keymap-osx-to-qcode.c
GEN tests/test-qapi-gen
GEN trace-root.h
GEN accel/kvm/trace.h
GEN accel/tcg/trace.h
GEN audio/trace.h
GEN block/trace.h
GEN chardev/trace.h
GEN crypto/trace.h
GEN hw/9pfs/trace.h
GEN hw/acpi/trace.h
GEN hw/alpha/trace.h
GEN hw/arm/trace.h
GEN hw/audio/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/display/trace.h
GEN hw/dma/trace.h
GEN hw/hppa/trace.h
GEN hw/i2c/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/ide/trace.h
GEN hw/input/trace.h
GEN hw/intc/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/misc/trace.h
GEN hw/misc/macio/trace.h
GEN hw/net/trace.h
GEN hw/nvram/trace.h
GEN hw/pci/trace.h
GEN hw/pci-host/trace.h
GEN hw/ppc/trace.h
GEN hw/rdma/trace.h
GEN hw/rdma/vmw/trace.h
GEN hw/s390x/trace.h
GEN hw/scsi/trace.h
GEN hw/sd/trace.h
GEN hw/sparc/trace.h
GEN hw/sparc64/trace.h
GEN hw/timer/trace.h
GEN hw/tpm/trace.h
GEN hw/usb/trace.h
GEN hw/vfio/trace.h
GEN hw/virtio/trace.h
GEN hw/watchdog/trace.h
GEN hw/xen/trace.h
GEN io/trace.h
GEN linux-user/trace.h
GEN migration/trace.h
GEN nbd/trace.h
GEN net/trace.h
GEN qapi/trace.h
GEN qom/trace.h
GEN scsi/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/ppc/trace.h
GEN target/s390x/trace.h
GEN target/sparc/trace.h
GEN ui/trace.h
GEN util/trace.h
GEN trace-root.c
GEN accel/kvm/trace.c
GEN accel/tcg/trace.c
GEN audio/trace.c
GEN block/trace.c
GEN chardev/trace.c
GEN crypto/trace.c
GEN hw/9pfs/trace.c
GEN hw/acpi/trace.c
GEN hw/alpha/trace.c
GEN hw/arm/trace.c
GEN hw/audio/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/display/trace.c
GEN hw/dma/trace.c
GEN hw/hppa/trace.c
GEN hw/i2c/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/ide/trace.c
GEN hw/input/trace.c
GEN hw/intc/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/misc/trace.c
GEN hw/misc/macio/trace.c
GEN hw/net/trace.c
GEN hw/nvram/trace.c
GEN hw/pci/trace.c
GEN hw/pci-host/trace.c
GEN hw/ppc/trace.c
GEN hw/rdma/trace.c
GEN hw/rdma/vmw/trace.c
GEN hw/s390x/trace.c
GEN hw/scsi/trace.c
GEN hw/sd/trace.c
GEN hw/sparc/trace.c
GEN hw/sparc64/trace.c
GEN hw/timer/trace.c
GEN hw/tpm/trace.c
GEN hw/usb/trace.c
GEN hw/vfio/trace.c
GEN hw/virtio/trace.c
GEN hw/watchdog/trace.c
GEN hw/xen/trace.c
GEN io/trace.c
GEN linux-user/trace.c
GEN migration/trace.c
GEN nbd/trace.c
GEN net/trace.c
GEN qapi/trace.c
GEN qom/trace.c
GEN scsi/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/ppc/trace.c
GEN target/s390x/trace.c
GEN target/sparc/trace.c
GEN ui/trace.c
GEN util/trace.c
GEN config-all-devices.mak
CC tests/qemu-iotests/socket_scm_helper.o
GEN qga/qapi-generated/qapi-gen
CC qapi/qapi-builtin-types.o
CC qapi/qapi-types-block.o
CC qapi/qapi-types-block-core.o
CC qapi/qapi-types.o
CC qapi/qapi-types-char.o
CC qapi/qapi-types-common.o
CC qapi/qapi-types-crypto.o
CC qapi/qapi-types-introspect.o
CC qapi/qapi-types-job.o
CC qapi/qapi-types-migration.o
CC qapi/qapi-types-misc.o
CC qapi/qapi-types-net.o
CC qapi/qapi-types-rocker.o
CC qapi/qapi-types-run-state.o
CC qapi/qapi-types-sockets.o
CC qapi/qapi-types-tpm.o
CC qapi/qapi-types-trace.o
CC qapi/qapi-types-transaction.o
CC qapi/qapi-types-ui.o
CC qapi/qapi-builtin-visit.o
CC qapi/qapi-visit.o
CC qapi/qapi-visit-block-core.o
CC qapi/qapi-visit-char.o
CC qapi/qapi-visit-block.o
CC qapi/qapi-visit-common.o
CC qapi/qapi-visit-crypto.o
CC qapi/qapi-visit-introspect.o
CC qapi/qapi-visit-job.o
CC qapi/qapi-visit-migration.o
CC qapi/qapi-visit-misc.o
CC qapi/qapi-visit-net.o
CC qapi/qapi-visit-rocker.o
CC qapi/qapi-visit-run-state.o
CC qapi/qapi-visit-sockets.o
CC qapi/qapi-visit-tpm.o
CC qapi/qapi-visit-trace.o
CC qapi/qapi-visit-ui.o
CC qapi/qapi-visit-transaction.o
CC qapi/qapi-events.o
CC qapi/qapi-events-block-core.o
CC qapi/qapi-events-block.o
CC qapi/qapi-events-char.o
CC qapi/qapi-events-common.o
CC qapi/qapi-events-crypto.o
CC qapi/qapi-events-introspect.o
CC qapi/qapi-events-migration.o
CC qapi/qapi-events-job.o
CC qapi/qapi-events-misc.o
CC qapi/qapi-events-net.o
CC qapi/qapi-events-rocker.o
CC qapi/qapi-events-run-state.o
CC qapi/qapi-events-sockets.o
CC qapi/qapi-events-tpm.o
CC qapi/qapi-events-trace.o
CC qapi/qapi-events-transaction.o
CC qapi/qapi-events-ui.o
CC qapi/qapi-introspect.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC qobject/block-qdict.o
CC trace/control.o
CC util/osdep.o
CC trace/qmp.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/aio-wait.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-openpty.o
CC util/qemu-thread-posix.o
CC util/memfd.o
CC util/path.o
CC util/module.o
CC util/envlist.o
CC util/bitmap.o
CC util/host-utils.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-sleep.o
CC util/qemu-coroutine-io.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/qsp.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC util/iova-tree.o
CC util/vfio-helpers.o
CC util/drm.o
CC trace-root.o
CC accel/kvm/trace.o
CC accel/tcg/trace.o
CC audio/trace.o
CC block/trace.o
CC chardev/trace.o
CC crypto/trace.o
CC hw/9pfs/trace.o
CC hw/acpi/trace.o
CC hw/alpha/trace.o
CC hw/arm/trace.o
CC hw/audio/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/display/trace.o
CC hw/dma/trace.o
CC hw/hppa/trace.o
CC hw/i2c/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/ide/trace.o
CC hw/input/trace.o
CC hw/intc/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/misc/trace.o
CC hw/misc/macio/trace.o
CC hw/net/trace.o
CC hw/nvram/trace.o
CC hw/pci/trace.o
CC hw/pci-host/trace.o
CC hw/ppc/trace.o
CC hw/rdma/trace.o
CC hw/rdma/vmw/trace.o
CC hw/s390x/trace.o
CC hw/scsi/trace.o
CC hw/sd/trace.o
CC hw/sparc/trace.o
CC hw/sparc64/trace.o
CC hw/timer/trace.o
CC hw/tpm/trace.o
CC hw/usb/trace.o
CC hw/vfio/trace.o
CC hw/virtio/trace.o
CC hw/watchdog/trace.o
CC hw/xen/trace.o
CC io/trace.o
CC linux-user/trace.o
CC migration/trace.o
CC nbd/trace.o
CC net/trace.o
CC qapi/trace.o
CC qom/trace.o
CC scsi/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/ppc/trace.o
CC target/s390x/trace.o
CC target/sparc/trace.o
CC ui/trace.o
CC util/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/qmp_memory_device.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
CC stubs/ram-block.o
CC stubs/ramfb.o
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC job.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/blklogwrites.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/create.o
CC block/throttle-groups.o
CC block/nvme.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC block/copy-on-read.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager.o
CC scsi/pr-manager-helper.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredspsk.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-platform.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/net-listener.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
CC qom/globals.o
GEN qemu-img-cmds.h
CC qemu-io.o
CC qemu-edid.o
CC hw/display/edid-generate.o
CC scsi/qemu-pr-helper.o
CC qemu-bridge-helper.o
CC blockdev.o
/tmp/qemu-test/src/qom/globals.c: In function 'object_property_check_globals':
/tmp/qemu-test/src/qom/globals.c:61:9: error: implicit declaration of function 'IS_USER_CREATABLE_CLASS' [-Werror=implicit-function-declaration]
if (!IS_USER_CREATABLE_CLASS(oc) && !dc) {
^/tmp/qemu-test/src/qom/globals.c:61:9: error: nested extern declaration of 'IS_USER_CREATABLE_CLASS' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [qom/globals.o] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 560, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=dc7c0d0cdf1911e8924f52540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-lft2ju70/src/docker-src.2018-11-02-23.37.50.28564:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-lft2ju70/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-quick@centos7] Error 2
real 1m30.420s
user 0m5.224s
sys 0m3.916s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]