• M
    daemon: Create priority workers pool · 597fe3ce
    Michal Privoznik 提交于
    This patch annotates APIs with low or high priority.
    In low set MUST be all APIs which might eventually access monitor
    (and thus block indefinitely). Other APIs may be marked as high
    priority. However, some must be (e.g. domainDestroy).
    
    For high priority calls (HPC), there are some high priority workers
    (HPW) created in the pool. HPW can execute only HPC, although normal
    worker can process any call regardless priority. Therefore, only those
    APIs which are guaranteed to end in reasonable small amount of time
    can be marked as HPC.
    
    The size of this HPC pool is static, because HPC are expected to end
    quickly, therefore jobs assigned to this pool will be served quickly.
    It can be configured in libvirtd.conf via prio_workers variable.
    Default is set to 5.
    
    To mark API with low or high priority, append priority:{low|high} to
    it's comment in src/remote/remote_protocol.x. This is similar to
    autogen|skipgen. If not marked, the generator assumes low as default.
    597fe3ce
qemu_driver.c 326.1 KB