vsock: switch to krun_add_vsock_port2 for listen mode support#87
Conversation
5ff9532 to
ec1efd6
Compare
jakecorrenti
left a comment
There was a problem hiding this comment.
LGTM, thanks @vyasgun !
|
@jakecorrenti thanks for the review! I realised this PR inadvertently makes |
bd097c6 to
0f7a6ab
Compare
Thanks for the follow up. I'll get around to re-reviewing and testing it tomorrow |
|
I'm having a little difficulty grokking this. Is the notion of what |
Use krun_add_vsock_port2() which accepts a listen parameter, enabling host-initiated vsock connections when listen=true (set in connect mode). Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
|
Yes, you are correct. The
This handles the inverted flag meaning between vfkit and libkrun. |
0f7a6ab to
3f96155
Compare
|
Code seems fine but I'd like it if @slp took a look at this as well. |
|
Code LGTM, but I think |
Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
|
@slp thanks for the review - I updated the docs to include the new parameters. |
Use krun_add_vsock_port2() which accepts a listen parameter, enabling host-initiated vsock connections when listen=true.
Add support for 'listen' mode as default
Related issue: #79