summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/kvm/address_space.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/platform/kvm/address_space.go')
-rw-r--r--pkg/sentry/platform/kvm/address_space.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/sentry/platform/kvm/address_space.go b/pkg/sentry/platform/kvm/address_space.go
index e81cc0caf..a777533c5 100644
--- a/pkg/sentry/platform/kvm/address_space.go
+++ b/pkg/sentry/platform/kvm/address_space.go
@@ -89,7 +89,10 @@ func (as *addressSpace) mapHost(addr usermem.Addr, m hostMapEntry, at usermem.Ac
// important; if the pagetable mappings were installed before
// ensuring the physical pages were available, then some other
// thread could theoretically access them.
- prev := as.pageTables.Map(addr, length, true /* user */, at, physical)
+ prev := as.pageTables.Map(addr, length, pagetables.MapOpts{
+ AccessType: at,
+ User: true,
+ }, physical)
inv = inv || prev
m.addr += length
m.length -= length