Bug 1455001

Summary: RHEL7.4 guest shows error log when hotpluging virtio-vsock device
Product: Red Hat Enterprise Linux 7 Reporter: FuXiangChun <xfu>
Component: qemu-kvm-rhevAssignee: Stefan Hajnoczi <stefanha>
Status: CLOSED DUPLICATE QA Contact: FuXiangChun <xfu>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: chayang, drjones, juzhang, knoel, michen, qzhang, virt-maint, xfu, yhong
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-31 09:03:35 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:

Description FuXiangChun 2017-05-24 01:22:11 UTC
Description of problem:
hotplug qmp command:
{ "execute": "device_add", "arguments": { "driver": "vhost-vsock-pci","id":"vhost-vsock-pci3","guest-cid":6}}

guest dmesg error log:
....
[47.273648] vmw_vsock_virtio_transport: probe of virtio3 failed with error -16



Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.Boot 7.4 guest

/usr/libexec/qemu-kvm -name guest=r7,debug-threads=on -enable-kvm -M pc -cpu SandyBridge -m 4096 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1 -boot strict=on -rtc base=localtime,clock=host,driftfix=slew \

-drive file=rhel74.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop,serial=QEMU-DISK1 -device virtio-scsi-pci,id=scsi0,bus=pci.0,ioeventfd=off -device scsi-hd,bus=scsi0.0,drive=drive-system-disk,id=system-disk,channel=0,scsi-id=0,lun=0,ver=mike,serial=ababab,bootindex=1 \

-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,bus=pci.0,addr=0x4 -vnc :2 -monitor stdio -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=net0,mac=12:54:00:5c:88:61 \

-device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=3 \

-qmp tcp:0:4444,server,nowait \

2.hotplug virtio-vsock device

{ "execute": "device_add", "arguments": { "driver": "vhost-vsock-pci","id":"vhost-vsock-pci3","guest-cid":6}}

3.

Actual results:

[   47.237208] pci 0000:00:06.0: [1af4:1012] type 00 class 0x078000
[   47.237334] pci 0000:00:06.0: reg 0x10: [io  0x0000-0x001f]
[   47.237375] pci 0000:00:06.0: reg 0x14: [mem 0x00000000-0x00000fff]
[   47.237524] pci 0000:00:06.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[   47.238360] pci 0000:00:06.0: BAR 4: assigned [mem 0xc0000000-0xc0003fff 64bit pref]
[   47.238418] pci 0000:00:06.0: BAR 1: assigned [mem 0xc0004000-0xc0004fff]
[   47.238439] pci 0000:00:06.0: BAR 0: assigned [io  0x1000-0x101f]
[   47.238586] virtio-pci 0000:00:06.0: enabling device (0000 -> 0003)
[   47.273648] vmw_vsock_virtio_transport: probe of virtio3 failed with error -16


Expected results:
no error

Additional info:

Comment 2 FuXiangChun 2017-05-24 01:25:34 UTC
host and guest kernel version: 3.10.0-671.el7.x86_64
qemu-kvm-rhev version: qemu-kvm-rhev-2.9.0-6.el7.x86_64

Comment 3 Stefan Hajnoczi 2017-05-31 09:03:35 UTC
The virtio-vsock guest drivers do not support multiple instances.  I'm not aware of a use case where a guest needs to use multiple virtio-vsock devices at the same time.

*** This bug has been marked as a duplicate of bug 1455015 ***