aboutsummaryrefslogtreecommitdiffstats
path: root/executor/kvm.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-08-08 17:12:18 +0200
committerAlexander Potapenko <glider@google.com>2024-09-03 12:16:36 +0000
commit89418520e59f2957dbb192c9db4eb45f108459a4 (patch)
tree1704e0524bcf12e712d793d6624a497864eaecdc /executor/kvm.h
parentbe562dffcc62a7644ab55833c9650774fb462ebe (diff)
executor: pkg/vminfo: sys/linux: define syz_kvm_vgic_v3_setup
The new pseudo-syscall sets up VGICv3 IRQ controller on the host. That still requires guest setup code, which will be submitted separately.
Diffstat (limited to 'executor/kvm.h')
-rw-r--r--executor/kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/executor/kvm.h b/executor/kvm.h
index a66aa6727..32fda309d 100644
--- a/executor/kvm.h
+++ b/executor/kvm.h
@@ -76,6 +76,9 @@
#define NEXT_INSN $0xbadc0de
#define PREFIX_SIZE 0xba1d
+// GICv3 distributor/redistributor addresses.
+#define ARM64_ADDR_GICD_BASE 0x08000000
+#define ARM64_ADDR_GICR_BASE 0x080A0000
// Write to this page to trigger a page fault and stop KVM_RUN.
#define ARM64_ADDR_EXIT 0xdddd0000
// Dedicated address within the exit page for the uexit command.