Skip to content
  • Kevin Wolf's avatar
    9151e59a
    qapi/qom: QAPIfy object-add · 9151e59a
    Kevin Wolf authored
    
    
    This converts object-add from 'gen': false to the ObjectOptions QAPI
    type. As an immediate benefit, clients can now use QAPI schema
    introspection for user creatable QOM objects.
    
    It is also the first step towards making the QAPI schema the only
    external interface for the creation of user creatable objects. Once all
    other places (HMP and command lines of the system emulator and all
    tools) go through QAPI, too, some object implementations can be
    simplified because some checks (e.g. that mandatory options are set) are
    already performed by QAPI, and in another step, QOM boilerplate code
    could be generated from the schema.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Acked-by: default avatarPeter Krempa <pkrempa@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    9151e59a
    qapi/qom: QAPIfy object-add
    Kevin Wolf authored
    
    
    This converts object-add from 'gen': false to the ObjectOptions QAPI
    type. As an immediate benefit, clients can now use QAPI schema
    introspection for user creatable QOM objects.
    
    It is also the first step towards making the QAPI schema the only
    external interface for the creation of user creatable objects. Once all
    other places (HMP and command lines of the system emulator and all
    tools) go through QAPI, too, some object implementations can be
    simplified because some checks (e.g. that mandatory options are set) are
    already performed by QAPI, and in another step, QOM boilerplate code
    could be generated from the schema.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Acked-by: default avatarPeter Krempa <pkrempa@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Loading