aboutsummaryrefslogtreecommitdiffstats
path: root/vm/qemu/snapshot_unimpl.go
blob: ab9438a474fbdfc3d0b2be01128f967609b697bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2024 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

//go:build !linux

package qemu

import (
	"fmt"
)

type snapshot struct{}

var errNotImplemented = fmt.Errorf("snapshots are not implemeneted")

func (inst *instance) snapshotClose() {
}

func (inst *instance) snapshotEnable() ([]string, error) {
	return nil, errNotImplemented
}

func (inst *instance) snapshotHandshake() error {
	return errNotImplemented
}

func (inst *instance) SetupSnapshot(input []byte) error {
	return errNotImplemented
}

func (inst *instance) RunSnapshot(input []byte) (result, output []byte, err error) {
	return nil, nil, errNotImplemented
}