diff options
| author | Alexander Potapenko <glider@google.com> | 2024-08-08 17:12:18 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-09-03 12:16:36 +0000 |
| commit | 89418520e59f2957dbb192c9db4eb45f108459a4 (patch) | |
| tree | 1704e0524bcf12e712d793d6624a497864eaecdc /executor/common_linux.h | |
| parent | be562dffcc62a7644ab55833c9650774fb462ebe (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/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 3669dee0f..9e7d9717d 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3173,7 +3173,7 @@ error_clear_loop: } #endif -#if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu +#if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu || __NR_syz_kvm_vgic_v3_setup // KVM is not yet supported on RISC-V #if !GOARCH_riscv64 && !GOARCH_arm #include <errno.h> @@ -3190,12 +3190,18 @@ error_clear_loop: #include "common_kvm_arm64.h" #elif GOARCH_ppc64 || GOARCH_ppc64le #include "common_kvm_ppc64.h" -#elif !GOARCH_arm +#elif !GOARCH_arm && (SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu) static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5, volatile long a6, volatile long a7) { return 0; } #endif +#if !GOARCH_arm64 && (SYZ_EXECUTOR || __NR_syz_kvm_vgic_v3_setup) +static long syz_kvm_vgic_v3_setup(volatile long a0, volatile long a1, volatile long a2) +{ + return 0; +} +#endif #endif #endif |
