summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/kvm/testutil/testutil_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/platform/kvm/testutil/testutil_amd64.go')
-rw-r--r--pkg/sentry/platform/kvm/testutil/testutil_amd64.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/platform/kvm/testutil/testutil_amd64.go b/pkg/sentry/platform/kvm/testutil/testutil_amd64.go
index 203d71528..4c108abbf 100644
--- a/pkg/sentry/platform/kvm/testutil/testutil_amd64.go
+++ b/pkg/sentry/platform/kvm/testutil/testutil_amd64.go
@@ -21,6 +21,9 @@ import (
"syscall"
)
+// TwiddleSegments reads segments into known registers.
+func TwiddleSegments()
+
// SetTestTarget sets the rip appropriately.
func SetTestTarget(regs *syscall.PtraceRegs, fn func()) {
regs.Rip = uint64(reflect.ValueOf(fn).Pointer())