-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use shorter virtiofsd and swtpm socket paths #13320
Use shorter virtiofsd and swtpm socket paths #13320
Conversation
4ff7490
to
b87e251
Compare
Has the idea of passing an FD been proved to work? Before we get too bogged down in code style etc? |
No, it hasn't. For now I ask we focus our discussions in either understanding the problem with this approach or suggesting alternatives. |
b87e251
to
c0bd203
Compare
Another thing you could try is experimenting with the See https://www.qemu.org/docs/master/interop/qemu-qmp-ref.html#qapidoc-1240. |
a6c22cd
to
241024d
Compare
qemu.config
@hamistao once this is ready for review please can you mark it as ready for review and let me know. Thanks |
@tomponline I found that the same problem was ocurring in other situations(when attaching a device to a running instance and when adding a tpm device) so I changed back to draft to include those additional fixes, will be pushing the next version in a few minutes. |
f9e0f2c
to
12900de
Compare
12900de
to
871a419
Compare
How did you get on with this @hamistao ? |
@tomponline The approach of passing the file descriptor to QEMU works but is considerably more complicated than the current apporach so that part will remain the same. All the rest remains as discussed and I will be pushing the changes in a few minutes. |
Please can I have some more details on this, also specifically what are you referring to? |
@tomponline Sure! I tried passing a file descriptor to the socket file instead of the path when calling |
97e9be4
to
5c1750a
Compare
@hamistao i was just about to merge this and but you've pushed a change? |
@tomponline yes, the pushed changes just include the |
OK so ill re review again |
@tomponline Sorry if there was some confusion. If those changes aren't needed please let me know so I can remove them. |
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
…t paths Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
5c1750a
to
0dd71dd
Compare
@tomponline done! |
Thanks! |
Fixes #12539.
These changes generally include getting the file descriptor of the directory of a socket's file to use an alternative shorter path to the same socket. This same fix is applied during VM start (with disk virtiofsd sockets, qemu config virtiofsd sockets and the swtpm sockets), and when hotplugging a disk on a VM (with disk virtiofsd sockets)