Carry HANDOFF connections into a cloudhv fiber

Đang mở
#60 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, linux
Lĩnh vực
backend, networking

Hướng nghiên cứu

Read pkg/backend/cloudhv/cloudhv_linux.go and the existing HANDOFF implementations in proc and runc to understand how the backend reports handoff support. Then trace the guest's AF_VSOCK connection to the engine and the HANDOFF conformance path. Done means a host-side socket can reach the guest as an accepted template connection, with a cloudhv backend table case and the KVM conformance test passing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

The cloudhv backend reports Handoff() == false (pkg/backend/cloudhv/cloudhv_linux.go), so the host refuses a HANDOFF-mode grant on it. A handoff fiber takes the caller's TCP socket over SCM_RIGHTS, and a file descriptor cannot cross into a VM.

So callers that need a TLS connection routed to one fiber by server name cannot use the micro-VM tier. proc and runc support it.

Fix idea. Keep the socket on the host and splice it to the guest over vsock. fiberd already dials the engine over AF_VSOCK from the guest (cae1463), so a per-fiber vsock port could carry the handed-off stream. The guest side would present it to the template as an accepted connection.

Test. A table case for the cloudhv backend's handoff support, plus the HANDOFF conformance path on cloudhv KVM.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.