aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-22 11:55:49 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-25 13:12:57 +0000
commitbe9e3862febd938fc90a69277b9cc218a5e46e28 (patch)
tree6ab258439997f1abf9da4e6e4af96f909408d3c1 /pkg
parente02ef79b9ce5bc23eac00a1919746a36a308a4ae (diff)
vm: add snapshot interface
Diffstat (limited to 'pkg')
-rw-r--r--pkg/mgrconfig/config.go5
1 files changed, 5 insertions, 0 deletions
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: