Skip to content

Comments

Add udm synchronization between BE and FE.#61

Draft
YuanyuanZhao609 wants to merge 1 commit intoprojectceladon:mainfrom
YuanyuanZhao609:handshake
Draft

Add udm synchronization between BE and FE.#61
YuanyuanZhao609 wants to merge 1 commit intoprojectceladon:mainfrom
YuanyuanZhao609:handshake

Conversation

@YuanyuanZhao609
Copy link

  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'.

@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.

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 join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants