Skip to content
  • Paolo Bonzini's avatar
    45c53fe6
    qemu-option: pass QemuOptsList to opts_accepts_any · 45c53fe6
    Paolo Bonzini authored
    
    
    A QemuOptsList can be of one of two kinds: either it is pre-validated, or
    it accepts any key and validation happens somewhere else (typically in
    a Visitor or against a list of QOM properties).  opts_accepts_any
    returns true if a QemuOpts instance was created from a QemuOptsList of
    the latter kind, but there is no function to do the check on a QemuOptsList.
    
    Since this property comes from the QemuOptsList and almost all callers of
    opts_accepts_any use opts->list anyway, modify the function to accept
    QemuOptsList.
    
    Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    45c53fe6
    qemu-option: pass QemuOptsList to opts_accepts_any
    Paolo Bonzini authored
    
    
    A QemuOptsList can be of one of two kinds: either it is pre-validated, or
    it accepts any key and validation happens somewhere else (typically in
    a Visitor or against a list of QOM properties).  opts_accepts_any
    returns true if a QemuOpts instance was created from a QemuOptsList of
    the latter kind, but there is no function to do the check on a QemuOptsList.
    
    Since this property comes from the QemuOptsList and almost all callers of
    opts_accepts_any use opts->list anyway, modify the function to accept
    QemuOptsList.
    
    Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading