aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-07-17 16:43:39 +0200
committerAlexander Potapenko <glider@google.com>2025-07-18 11:16:37 +0000
commitee788784f8d737adcb5635629c2e78ca948e7cfa (patch)
treeef79d869745d3873639df66ef868eb3a6f82a7e5 /sys/linux
parent7494f916ebc26a1a5a53e2a7deb92925d6fb4bf3 (diff)
sys/linux/dev_kvm.txt: allow passing VM type to KVM_CREATE_VM
This should increase SEV coverage on AMD, also reach some dusty corners on ARM.
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/dev_kvm.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/linux/dev_kvm.txt b/sys/linux/dev_kvm.txt
index 2c5ebdf21..4cbb5b480 100644
--- a/sys/linux/dev_kvm.txt
+++ b/sys/linux/dev_kvm.txt
@@ -17,7 +17,9 @@ resource vcpu_mmap_size[int64]
openat$kvm(fd const[AT_FDCWD], file ptr[in, string["/dev/kvm"]], flags flags[open_flags], mode const[0]) fd_kvm
-ioctl$KVM_CREATE_VM(fd fd_kvm, cmd const[KVM_CREATE_VM], type const[0]) fd_kvmvm
+# On x86, KVM_CREATE_VM accepts types 0 to 3.
+# On ARM64 it is either 0 (default size of 40 bits) or the guest address space size in bits, from 32 to the platform limit.
+ioctl$KVM_CREATE_VM(fd fd_kvm, cmd const[KVM_CREATE_VM], type intptr[0:64]) fd_kvmvm
ioctl$KVM_CHECK_EXTENSION(fd fd_kvm, cmd const[KVM_CHECK_EXTENSION], arg intptr)
ioctl$KVM_CHECK_EXTENSION_VM(fd fd_kvmvm, cmd const[KVM_CHECK_EXTENSION], arg intptr)
ioctl$KVM_GET_VCPU_MMAP_SIZE(fd fd_kvm, cmd const[KVM_GET_VCPU_MMAP_SIZE]) vcpu_mmap_size