aboutsummaryrefslogtreecommitdiffstats
path: root/executor/kvm.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-09-30 16:12:17 +0200
committerAlexander Potapenko <glider@google.com>2025-10-17 06:51:20 +0000
commit2606b77513573de02745daefe9de925c9494cfff (patch)
tree4e4d4856049ef76553068e598ad46d053fdb87d5 /executor/kvm.h
parent6f255ae2c60c113dc8eeae689561e439791cc502 (diff)
executor: refactor x86 SYZOS setup
Pass around struct kvm_syzos_vm instead of one-off pointers to various guest memory ranges.
Diffstat (limited to 'executor/kvm.h')
-rw-r--r--executor/kvm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/kvm.h b/executor/kvm.h
index 57d8aa490..8e5dc62be 100644
--- a/executor/kvm.h
+++ b/executor/kvm.h
@@ -174,7 +174,8 @@
#define KVM_MAX_VCPU 4
#define KVM_PAGE_SIZE (1 << 12)
-#define KVM_GUEST_MEM_SIZE (1024 * KVM_PAGE_SIZE)
+#define KVM_GUEST_PAGES 1024
+#define KVM_GUEST_MEM_SIZE (KVM_GUEST_PAGES * KVM_PAGE_SIZE)
#define SZ_4K 0x00001000
#define SZ_64K 0x00010000
#define GENMASK_ULL(h, l) \