Skip to content

Commit 8d22bd8

Browse files
docs: tweak syzos.md to reflect void arguments
1 parent be17c9c commit 8d22bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/syzos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Modify the architecture-specific executor header (e.g., `executor/common_kvm_amd
165165
GUEST_CODE static void guest_handle_nested_amd_vmcb_write_mask(struct api_call_5* cmd, uint64 cpu_id);
166166
```
167167

168-
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).
168+
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). If no arguments are required, omit the `cmd` parameter altogether. If the guest code does not access VMCB/VMCS, omit the `cpu_id` parameter.
169169

170170
### Step 2: Implement Guest Logic and Dispatch
171171
In the same file (or corresponding source), implement the guest logic.

0 commit comments

Comments
 (0)