mirror of https://github.com/xemu-project/xemu.git
vl.c: Do not set 'type' property in obj_set_property()
Filter out also 'type' property when setting object's properties. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
3ef9622182
commit
13d7adf92a
3
vl.c
3
vl.c
|
@ -2891,7 +2891,8 @@ static int object_set_property(const char *name, const char *value, void *opaque
|
|||
StringInputVisitor *siv;
|
||||
Error *local_err = NULL;
|
||||
|
||||
if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0) {
|
||||
if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0 ||
|
||||
strcmp(name, "type") == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue