]> git.ipfire.org Git - thirdparty/qemu.git/commit
qom: add object_new_with_class
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Nov 2019 12:57:55 +0000 (13:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:32:26 +0000 (19:32 +0100)
commit3c75e12ea64666f2fc9f822675490e8672f45453
treec0b0a9e095782dd3014ac6544bd5e72e2fd38297
parent1fff3c206f320104e929b22e6b9e82fc6e4c2ae6
qom: add object_new_with_class

Similar to CPU and machine classes, "-accel" class names are mangled,
so we have to first get a class via accel_find and then instantiate it.
Provide a new function to instantiate a class without going through
object_class_get_name, and use it for CPUs and machines already.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel.c
include/qom/object.h
qom/object.c
target/i386/cpu.c
target/s390x/cpu_models.c
vl.c