Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

vos: add udm handshake#127

Draft
YuanyuanZhao609 wants to merge 1 commit intoprojectceladon:celadon/u/mr0/masterfrom
YuanyuanZhao609:udm_handshake
Draft

vos: add udm handshake#127
YuanyuanZhao609 wants to merge 1 commit intoprojectceladon:celadon/u/mr0/masterfrom
YuanyuanZhao609:udm_handshake

Conversation

@YuanyuanZhao609
Copy link

Add udm handshake between BE and FE. When the VM which UDM run in shutdown and BE do not have change to notify FE, running FE can know the BE status change by check handshake mask.

The handshake mask lays in virtio header in share memory BAR. It is checked every 2 seconds.

@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@sysopenci sysopenci added Pending Developer Approval Pending Developer Approval Pending PR Review Pending PR Review Engineering Build Not Started Engineering Build Not Started labels Apr 23, 2025
@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

@sysopenci
Copy link

Improper Commit Message
Tracked on not found in commit message,
make sure Tracked-On: Jira-ticket is present.

Add udm synchronization between BE and FE.
1. Add handshake. When the VM which UDM run in shutdown
and BE do not have change to notify FE, running FE can know the BE
status change by check handshake mask.
The handshake mask lays in virtio header in share memory BAR. It is
checked every 2 seconds.
2. Add event interrupt. When the backend application exits normally
or the VM where the backend resides is shut down normally, BE can
trigger a interrupt, and notify FE the event.
3. Create /dev/virtio_shmemX which set auto or manual unresigter
virtio device by 'VIRTIO_SHMEM_IOCTL_AUTO_REMOVE'.
In this state, APP in user space can unregister the device by
'VIRTIO_SHMEM_IOCTL_UNREGISTER'.

Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Engineering Build Not Started Engineering Build Not Started Invalid commit message Pending Developer Approval Pending Developer Approval Pending PR Review Pending PR Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants