From d6b461d9bcc04628b6e782d80e373469bccef743 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Apr 2022 13:15:05 +0200 Subject: executor: allow external extensions of the setup phase Allow common_ext.h to provide setup_ext() function that is called during VM setup. --- executor/executor.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 28ab72206..058e90b15 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1617,6 +1617,10 @@ void setup_features(char** enable, int n) // This does any one-time setup for the requested features on the machine. // Note: this can be called multiple times and must be idempotent. flag_debug = true; +#if SYZ_HAVE_SETUP_EXT + // This can be defined in common_ext.h. + setup_ext(); +#endif #if SYZ_HAVE_FEATURES setup_sysctl(); setup_cgroups(); -- cgit mrf-deployment