From: Marcel Apfelbaum <[email protected]> Filter out also 'type' property when setting object's properties.
Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Marcel Apfelbaum <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Acked-by: Michael Roth <[email protected]> Signed-off-by: Andreas Färber <[email protected]> --- vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index e65d0b3..8a4e58c 100644 --- a/vl.c +++ b/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; } -- 1.8.4.5
