Skip to content

Conversation

@phip1611
Copy link
Member

@phip1611 phip1611 commented Aug 18, 2025

Part of #7291 to work towards live-migration with FDs for virtio-net devices.

Misc improvements to debugabillity and traceability improvements.

TL;DR: Without these helpful logging messages, we (Cyberus
Technology) would not have been able to refactor large parts
of the CH driver in libvirt and to productize things. Upstream
libvirt patches will follow within the next weeks and months.

Steps to Undraft

One can call `to_vec()` anyway if one needs an owned copy. This change
further helps to prevent needless copies in upcoming changes.

Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
@phip1611 phip1611 force-pushed the productize-network_fd_livemig_prep-3 branch 2 times, most recently from 078b212 to f58f1d0 Compare August 18, 2025 13:12
During development this new message helps to quickly parse the
logs for success. In case this message is not shown but the last
message is not an error, one can assume that likely a livelock
(locking a contended lock) is the cause of the problem.

Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
TL;DR: Without these helpful logging messages, we (Cyberus
Technology) would not have been able to refactor large parts
of the CH driver in libvirt and to productize things. Upstream
libvirt patches will follow within the next weeks and months.

To ease debugging of networking in the field, especially in context of
libvirt, state save/resume, and live-migration, more logging helps to
identify what happens behind the scenes in certain corner-cases as well
as (apparently) normal operation.

For example: There are multiple ways to create virtio-net devices:
- with vhost-user backend
- from provided network FDs
- from provided interface name of Tap device is given
- Tap device is created by CHV (fallback)

To confirm that the expected behavior occurs—especially in the more
complex case of network file descriptors—these logging statements
provide valuable insight into the system's internal operations.

Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
@phip1611 phip1611 force-pushed the productize-network_fd_livemig_prep-3 branch from 36f2a37 to 398510d Compare August 19, 2025 07:21
Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
@phip1611 phip1611 force-pushed the productize-network_fd_livemig_prep-3 branch from 398510d to edd89ea Compare August 19, 2025 07:42
@phip1611 phip1611 changed the title misc debugabillity and traceability improvements [network fd livemig prerequisite 3/N] misc debugabillity and traceability improvements Aug 21, 2025
@phip1611 phip1611 changed the title misc debugabillity and traceability improvements [WIP] misc debugabillity and traceability improvements Aug 21, 2025
@likebreath likebreath closed this Aug 27, 2025
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