Bug 1823805
Summary: | [RFE] QEMU devices should have the option to enable/disable hotplug/unplug | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Jaroslav Suchanek <jsuchane> |
Component: | Virtualization | Assignee: | Jed Lejosne <jlejosne> |
Status: | CLOSED DEFERRED | QA Contact: | Israel Pinto <ipinto> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.2.0 | CC: | ailan, berrange, chhu, cnv-qe-bugs, danken, dcritch, dgilbert, fdeutsch, hhan, jcoscia, jinzhao, joedward, jsaucier, jsuchane, jusual, juzhang, kbidarka, laine, lhuang, lijin, lmen, mprivozn, mtessun, ncredi, sgordon, sgott, virt-maint, vrozenfe, xuzhang, yalzhang |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | future | ||
Hardware: | x86_64 | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1802592 | Environment: | |
Last Closed: | 2021-09-17 07:38:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1790899, 1802592 | ||
Bug Blocks: |
Description
Jaroslav Suchanek
2020-04-14 14:29:01 UTC
Can you please point us to public documentation of how to use this feature? Sorry - since there was no needinfo set for the question in Comment 3, I didn't see it until I was randomly cleaning up messages in my mail client's "generic bugzilla comment" folder just now. We've discussed it elsewhere already, but just for completeness - there isn't much to document. There is a paragraph in libvirt's domain XML documentation under https://libvirt.org/formatdomain.html#elementsControllers - search for "hotplug" and it will describe the attribute that needs to be added to the pcie-root-port controller for each device in the guest. The way to make sure all devices are not hotpluggable is to pre-populate the config with at least as many pcie-root-ports as there are pcie devices, each with <target hogplug='off'/>. So, for example to make sure you could have up to 20 devices that couldn't be unplugged, you would add 20 copies of this device to the <devices> section of the initial XML: <controller type='pci' model='pcie-root-port'> <target hotplug='off'/> </controller> Note that you can still have one or more empty root-ports that *do* allow future hotplugging of a device, but just adding one or more: <controller type='pci' model='pcie-root-port'/> to the config *after* the controllers that have hotplug='off' - the initial devices will all be assigned to the lower-numbered controllers that have hotplug disabled, while any attempt to hotplug a new device after boot will skip any unused non-hotplug controllers, and use the ones that have hotplug enabled (which is the default). This feature is no tracked in https://issues.redhat.com/browse/CNV-4325 |