• P
    qemu: domain: Add global table of blockjobs · acff5829
    Peter Krempa 提交于
    Block jobs currently belong to disks only so we can look up the block
    job data for them in the corresponding disks. This won't be the case
    when using blockdev as certain jobs don't even correspond to a disk and
    most of them can run on a part of the backing chain.
    
    Add a global table of blockjobs which can be used to look up the data
    for the blockjobs when the job events need to be processed.
    
    The table is a hash table organized by job name and has a reference to
    the job. New and running jobs will later be added to this table.
    Reference counting will allow to reap job state for synchronous callers.
    Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
    Reviewed-by: NJán Tomko <jtomko@redhat.com>
    acff5829
qemu_domain.h 42.6 KB