Skip to content

fix(runtime): keep unpublished MicroVM listeners in-guest for scale relay (#370) - #378

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/370-microvm-tcp-relay
Sep 14, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/370-microvm-tcp-relay

Conversation

@ZhiXiao-Lin

@ZhiXiao-Lin ZhiXiao-Lin commented Sep 14, 2026 •

Copy link
Copy Markdown

Summary

Test plan

Made with Cursor

…elay (#370)

TSI unpublished listen returns -EPERM so krun-guest keeps a native INET socket that guest-init can loopback-connect. Scale ready_replicas counts declared endpoints only after the advertised host URL serves a request. Pins libkrun daec6e8 / libkrun#12. Does not restore scale port_map or flip B2.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit b2d1aaf into main Sep 14, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/370-microvm-tcp-relay branch September 14, 2026 09:11
ZhiXiao-Lin added a commit that referenced this pull request Sep 17, 2026
Bump vendored libkrun so connect(127.0.0.1|::1, guest_port) reaches the
host listener. Drop the stale TSI localhost health-check warning now that
unpublished (#378) and published (#448) loopback both work.

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 17, 2026
* fix(tsi): deliver published-port FIN without 5s reaper delay (#447)

Bump vendored libkrun so reverse-proxy OP_SHUTDOWN is forwarded after
data (or for half-close). Premature both-direction close from a forking
parent remains ignored, matching release().

Co-authored-by: Cursor <[email protected]>

* fix(tsi): hairpin in-guest loopback to published -p ports (#448)

Bump vendored libkrun so connect(127.0.0.1|::1, guest_port) reaches the
host listener. Drop the stale TSI localhost health-check warning now that
unpublished (#378) and published (#448) loopback both work.

Co-authored-by: Cursor <[email protected]>

* build(libkrun): pin vendored submodule to upstream main f7c6918

Use the merged libkrun main tip (#13 FIN + #14 hairpin) instead of the
parallel vendor-branch tip, matching A3S-Lab/libkrun production history.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[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.

[linux][P1] runtime: MicroVM TCP relay rejects all scale endpoints

1 participant