commit | 8faa2f8571e399ba486bad00e25b6c9b22b6fd9a | [log] [tgz] |
---|---|---|
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | Thu Sep 25 22:19:52 2014 -0700 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Oct 23 16:41:25 2014 +0200 |
tree | d1141cca524db9e0f39dc0a802d88ea7a13e07cd | |
parent | d3c4931647c16c2ffc09a2c7c80d71c73cd026c6 [diff] |
qom: Demote already-has-a-parent to a regular error Rather than an abort(). This allows callers to decide whether parenting an already-parented object is a fatal error condition. Useful for providing a default value for an object's parent in the case where you want to set one iff it doesn't already have one. Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>