github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/vm/qemu/snapshot_unimpl.go (about) 1 // Copyright 2024 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 //go:build !linux 5 6 package qemu 7 8 import ( 9 "fmt" 10 ) 11 12 type snapshot struct{} 13 14 var errNotImplemented = fmt.Errorf("snapshots are not implemeneted") 15 16 func (inst *instance) snapshotClose() { 17 } 18 19 func (inst *instance) snapshotEnable() ([]string, error) { 20 return nil, errNotImplemented 21 } 22 23 func (inst *instance) snapshotHandshake() error { 24 return errNotImplemented 25 } 26 27 func (inst *instance) SetupSnapshot(input []byte) error { 28 return errNotImplemented 29 } 30 31 func (inst *instance) RunSnapshot(input []byte) (result, output []byte, err error) { 32 return nil, nil, errNotImplemented 33 }