aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_kvm_arm64.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/common_kvm_arm64.h b/executor/common_kvm_arm64.h
index 201fa87e9..6369cdd81 100644
--- a/executor/common_kvm_arm64.h
+++ b/executor/common_kvm_arm64.h
@@ -66,8 +66,10 @@ static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volat
}
struct kvm_vcpu_init init;
- ioctl(cpufd, KVM_ARM_PREFERRED_TARGET, &init);
+ // Queries KVM for preferred CPU target type.
+ ioctl(vmfd, KVM_ARM_PREFERRED_TARGET, &init);
init.features[0] = features;
+ // Use the modified struct kvm_vcpu_init to initialize the virtual CPU.
ioctl(cpufd, KVM_ARM_VCPU_INIT, &init);
if (text_size > 1000)