Bug 1610215
Summary: | [Q35] hotplug failed when using pcie-root-port multifunction | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Yiqian Wei <yiwei> | |
Component: | qemu-kvm-rhev | Assignee: | Michael S. Tsirkin <mst> | |
Status: | CLOSED NOTABUG | QA Contact: | jingzhao <jinzhao> | |
Severity: | low | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.6 | CC: | ailan, chayang, fjin, jinzhao, juzhang, laine, meili, michen, virt-maint, yafu, yiwei | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1610587 (view as bug list) | Environment: | ||
Last Closed: | 2018-09-05 20:39:22 UTC | Type: | Bug | |
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: | ||||
Bug Blocks: | 1610587 |
Description
Yiqian Wei
2018-07-31 08:50:26 UTC
Is this a valid hotplug config? i.e. when hotpluging via libvirt does it use this config? (In reply to Amnon Ilan from comment #2) > Is this a valid hotplug config? i.e. when hotpluging via libvirt does it > use this config? I retest this bug with libvirt,as follows: 1.boot a rhel7.6 guest with virt-manager 2.edit vm XML file [1] virsh # edit vm Domain vm XML configuration edited. 3.hotplug NIC to guest by: #virsh attach-device vm /home/bz/nic1.xml test results: after step3, # virsh attach-device vm /home/bz/nic1.xml error: Failed to attach device from /home/bz/nic1.xml error: internal error: Only PCI device addresses with function=0 are supported additional info: [1].Modified part in vm XML file <interface type='bridge'> <mac address='52:54:00:23:ba:95'/> <source bridge='switch'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0' multifunction='on'/> </interface> 2.cat nic1.xml <interface type='bridge'> <mac address='52:54:00:23:ba:93'/> <source bridge='switch'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x1'/> </interface> to comment 0, it looks like you supply the same function in both cases. You can only hotplug an entire slot at once. The PCI standard doesn't allow hotplugging something into an unused function of a slot that already has a device in it. IOW, what you're trying to do is explicitly illegal. |