Skip to content

Conversation

@rbradford
Copy link
Member

Support adding at most one virtio-vsock device.

Sebastien Boeuf and others added 8 commits April 29, 2020 10:36
It's possible to have multiple vsock devices so in preparation for
hotplug/unplug it is important to be able to have a unique identifier
for each device.

Signed-off-by: Sebastien Boeuf <[email protected]>
Signed-off-by: Rob Bradford <[email protected]>
This means it can be reused with ch-remote.

Signed-off-by: Rob Bradford <[email protected]>
Create a new VirtioVsock device and add it to the PCI bus upon hotplug.

Signed-off-by: Rob Bradford <[email protected]>
Add the vsock device to the device manager and patch the config to add
the new vsock device.

Signed-off-by: Rob Bradford <[email protected]>
When doing device unplug remove the vsock device from the configuration
if present.

Signed-off-by: Rob Bradford <[email protected]>
This allows the hotplugging of vsock devices.

Signed-off-by: Rob Bradford <[email protected]>
Add support for adding a vsock device using the HTTP API.

Signed-off-by: Rob Bradford <[email protected]>
@rbradford rbradford linked an issue Apr 29, 2020 that may be closed by this pull request
Test basic vsock functionality works with hotplugged vsock device.

Signed-off-by: Rob Bradford <[email protected]>
@rbradford rbradford force-pushed the 2020-04-28-make-vsock-hotpluggable branch from 3c2590c to a5bb1e0 Compare April 29, 2020 11:01
@rbradford rbradford merged commit 3012975 into cloud-hypervisor:master Apr 29, 2020
@rbradford rbradford deleted the 2020-04-28-make-vsock-hotpluggable branch April 29, 2020 11:51
likebreath added a commit to likebreath/cloud-hypervisor that referenced this pull request Jul 16, 2020
With recent changes (cloud-hypervisor#1030 cloud-hypervisor#1084), the '/vm.remove-device' API is no
longer restricted to remove VFIO PCI devices. It now supports (almost)
all hotpluggable devices, e.g. disk/net/pmem/fs/vsock.

Signed-off-by: Bo Chen <[email protected]>
sameo pushed a commit that referenced this pull request Jul 16, 2020
With recent changes (#1030 #1084), the '/vm.remove-device' API is no
longer restricted to remove VFIO PCI devices. It now supports (almost)
all hotpluggable devices, e.g. disk/net/pmem/fs/vsock.

Signed-off-by: Bo Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add vsock hotplug/unplug/multiple on CLI

2 participants