This repository was archived by the owner on Jan 27, 2026. It is now read-only.
Commit 8236c07
Yuanyuan Zhao
vos: add BE and FE status synchronization
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>1 parent d1d157b commit 8236c07
4 files changed
Lines changed: 430 additions & 74 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 139 | | |
146 | 140 | | |
147 | 141 | | |
| |||
166 | 160 | | |
167 | 161 | | |
168 | 162 | | |
169 | | - | |
| 163 | + | |
170 | 164 | | |
171 | 165 | | |
172 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 37 | | |
62 | 38 | | |
63 | 39 | | |
| |||
95 | 71 | | |
96 | 72 | | |
97 | 73 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 74 | | |
105 | 75 | | |
106 | 76 | | |
| |||
118 | 88 | | |
119 | 89 | | |
120 | 90 | | |
| 91 | + | |
121 | 92 | | |
122 | 93 | | |
123 | 94 | | |
124 | 95 | | |
125 | 96 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 97 | | |
134 | 98 | | |
135 | 99 | | |
| |||
154 | 118 | | |
155 | 119 | | |
156 | 120 | | |
157 | | - | |
| 121 | + | |
158 | 122 | | |
159 | 123 | | |
160 | 124 | | |
| |||
0 commit comments