You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: make sure to choose the optimal api_call_N structure that exactly matches the number of arguments required by your new primitive (e.g., use struct api_call_2 for a command needing two arguments).
169
+
168
170
### Step 2: Implement Guest Logic and Dispatch
169
171
In the same file (or corresponding source), implement the guest logic.
170
172
@@ -189,6 +191,16 @@ In the same file (or corresponding source), implement the guest logic.
189
191
Expose the new command to `syzkaller` in the description file (e.g., `sys/linux/dev_kvm_amd64.txt`).
190
192
191
193
1.**Define Structures:** Define any necessary constants or structures.
194
+
```
195
+
syzos_api_nested_amd_vmcb_write_mask {
196
+
vm_id syzos_api_vm_id
197
+
offset vmcb_offset
198
+
set_mask int64
199
+
unset_mask int64
200
+
flip_mask int64
201
+
}
202
+
```
203
+
192
204
2. **Map Command ID:** Add the command to the `syzos_api_call` union. **Crucial:** The ID (e.g., `380`) must match the enum in the C header.
0 commit comments