From 0bdd79ccd4695ba4539f2a288f88c60c8dd2ce1d Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Mon, 13 Sep 2021 16:52:47 -0700 Subject: kvm: trap mmap syscalls to map new regions to the guest We install seccomp rules so that the SIGSYS signal is generated for each mmap system call. Then our signal handler executes the real mmap syscall and if a new regions is created, it maps it to the guest. Signed-off-by: Andrei Vagin --- pkg/sync/atomicptr/generic_atomicptr_unsafe.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/sync/atomicptr') diff --git a/pkg/sync/atomicptr/generic_atomicptr_unsafe.go b/pkg/sync/atomicptr/generic_atomicptr_unsafe.go index 82b6df18c..7b9c2a4db 100644 --- a/pkg/sync/atomicptr/generic_atomicptr_unsafe.go +++ b/pkg/sync/atomicptr/generic_atomicptr_unsafe.go @@ -37,6 +37,8 @@ func (p *AtomicPtr) loadPtr(v *Value) { // Load returns the value set by the most recent Store. It returns nil if there // has been no previous call to Store. +// +//go:nosplit func (p *AtomicPtr) Load() *Value { return (*Value)(atomic.LoadPointer(&p.ptr)) } -- cgit v1.2.3