This repository was archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
qemu: guest VM vsock device support #355
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Last commit ("add a global switch to enable vsock support") addresses the global switch. |
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Patch it in vendor so we don't have to use cgo for vsock related syscalls. Signed-off-by: Peng Tao <bergwolf@gmail.com>
438e6b9 to
65650bf
Compare
f21323a to
1be90c6
Compare
It only works for Linux. Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Abandon net.UnixConn so that it is possible to use vsock connection the same way. Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Treat it as normal case so that runv can keep reading until failure. Signed-off-by: Peng Tao <bergwolf@gmail.com>
so that libvirt can use it as well Signed-off-by: Peng Tao <bergwolf@gmail.com>
So that we keep track of which cid is in use. Signed-off-by: Peng Tao <bergwolf@gmail.com>
So that we can associate vm with correct vsock cid. Signed-off-by: Peng Tao <bergwolf@gmail.com>
1. for new VM, set it before .Launch returns 2. for associating, set it before .Associate returns Then we can rely on GuestCid field as indicator of vsock capability. Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PR changes qemu driver to support vsock device in guest vm:
with hyperhq/hyperstart#194, and also vsock qemu change (https://github.com/stefanha/qemu/tree/vsock), guest/guest are reachable to each other via vsock socket.
on guest
on host, find out guest-cid (1028) in this case
I think we still need a global switch to enable/disable vsock support. I'll see to it next.