• L
    qemu: hook up pcie-root-port hotplug='off' option · 2d3cf603
    Laine Stump 提交于
    If a pcie-root-port or pcie-downstream-port has hotplug='off' in its
    <target> subelement, and if the qemu binary supports the hotplug=false
    option, then it will be added to the commandline for the pcie
    controller. This controller will then not allow any hotplug/unplug of
    devices while the guest is running (and the hotplug capability won't
    be advertised to the guest OS, so the guest OS also won't present
    unplugging of PCI devices as an option).
    
      <controller type='pci' model='pcie-root-port'>
        <target hotplug='off'/>
      </controller>
    
    For any PCI controllers other than pcie-downstream-port and
    pcie-root-port, of for qemu binaries that don't support the hotplug
    commandline option, an error will be logged during validation.
    Signed-off-by: NLaine Stump <laine@redhat.com>
    Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
    2d3cf603
qemu_command.c 346.7 KB