diff options
author | Andrei Vagin <avagin@gmail.com> | 2021-09-13 16:52:47 -0700 |
---|---|---|
committer | Andrei Vagin <avagin@google.com> | 2021-09-22 14:39:36 -0700 |
commit | 0bdd79ccd4695ba4539f2a288f88c60c8dd2ce1d (patch) | |
tree | a8bcc326a116577047c84b28423625cc3d2deffc /pkg/ring0 | |
parent | 981111a9ee27c68c22ab78197cb82539442fb581 (diff) |
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 <avagin@google.com>
Diffstat (limited to 'pkg/ring0')
-rw-r--r-- | pkg/ring0/pagetables/pagetables.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/ring0/pagetables/pagetables.go b/pkg/ring0/pagetables/pagetables.go index 9dac53c80..3f17fba49 100644 --- a/pkg/ring0/pagetables/pagetables.go +++ b/pkg/ring0/pagetables/pagetables.go @@ -322,12 +322,3 @@ func (p *PageTables) Lookup(addr hostarch.Addr, findFirst bool) (virtual hostarc func (p *PageTables) MarkReadOnlyShared() { p.readOnlyShared = true } - -// PrefaultRootTable touches the root table page to be sure that its physical -// pages are mapped. -// -//go:nosplit -//go:noinline -func (p *PageTables) PrefaultRootTable() PTE { - return p.root[0] -} |