Skip to content

Conversation

@727Hsj
Copy link

@727Hsj 727Hsj commented Jan 1, 2026

1.Increase the ring buffer size for vsock connections.
2.When a VsockEventType::Received event is polled, the recv operation is delegated to the upper layer.
3.After recv, actively trigger a CreditUpdate event.
4.Remove unused parameter 'buf'.

… receiving creditrequest events

1.Increase the ring buffer size for vsock connections.
2.When a VsockEventType::Received event is polled, the recv operation is delegated to the upper layer.
3.After recv, actively trigger a CreditUpdate event.
4.Remove unused parameter 'buf'.
@AsakuraMizu AsakuraMizu requested a review from Copilot January 4, 2026 13:54
@AsakuraMizu AsakuraMizu changed the title fix: Solved the issue of not being able to send or receive due to not receiving creditrequest events fix(vsock): defer receiving and update credit Jan 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where vsock connections couldn't send or receive data due to missing creditrequest events. The solution changes the event handling architecture to defer data reading to the upper layer and actively trigger credit updates after recv operations.

Key changes:

  • Increases ring buffer size from default to 32KB for vsock connections
  • Modifies event handling to notify upper layer of received data without reading it immediately
  • Adds explicit credit update triggers after recv operations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
axdriver_vsock/src/lib.rs Removes unused buf parameter from poll_event trait method signature
axdriver_virtio/src/socket.rs Increases buffer capacity to 32KB, adds credit update after recv, defers data reading to upper layer in event handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AsakuraMizu AsakuraMizu mentioned this pull request Jan 4, 2026
@AsakuraMizu AsakuraMizu merged commit e92cfa5 into arceos-org:dev Jan 5, 2026
11 checks passed
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.

2 participants