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>
Showing
- accel/accel.c 1 addition, 3 deletionsaccel/accel.c
- include/qom/object.h 12 additions, 0 deletionsinclude/qom/object.h
- qom/object.c 5 additions, 0 deletionsqom/object.c
- target/i386/cpu.c 4 additions, 4 deletionstarget/i386/cpu.c
- target/s390x/cpu_models.c 2 additions, 2 deletionstarget/s390x/cpu_models.c
- vl.c 1 addition, 2 deletionsvl.c
Loading
Please register or sign in to comment