From be9e3862febd938fc90a69277b9cc218a5e46e28 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 22 Jul 2024 11:55:49 +0200 Subject: vm: add snapshot interface --- pkg/mgrconfig/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg') diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go index 0909cd605..b4368f6d5 100644 --- a/pkg/mgrconfig/config.go +++ b/pkg/mgrconfig/config.go @@ -137,6 +137,11 @@ type Config struct { // on this value. SandboxArg int64 `json:"sandbox_arg"` + // Enables snapshotting mode. In this mode VM is snapshotted and restarted from the snapshot + // before executing each test program. This provides better reproducibility and avoids global + // accumulated state. Currently only qemu VMs and Linux support this mode. + Snapshot bool `json:"snapshot"` + // Use KCOV coverage (default: true). Cover bool `json:"cover"` // Use coverage filter. Supported types of filter: -- cgit mrf-deployment