ref: faae8eb752fc9df65811ffb1b8cb8f0594cd4b2f
parent: 6f6df11db70363d600a30960b7c7f00076e22664
author: cinap_lenrek <[email protected]>
date: Mon Aug 14 00:18:13 EDT 2017
vmx: allocate sticky instead of more expensive fixed segment
--- a/sys/src/cmd/vmx/vmx.c
+++ b/sys/src/cmd/vmx/vmx.c
@@ -347,7 +347,7 @@
snprint(buf, sizeof(buf), "#g/%s/ctl", sn);
fd = open(buf, OWRITE|OTRUNC);
if(fd < 0) sysfatal("open: %r");
- snprint(buf, sizeof(buf), "va %#ullx %#ullx fixed", 0x10000000ULL, (uvlong)sz);
+ snprint(buf, sizeof(buf), "va %#ullx %#ullx sticky", 0x10000000ULL, (uvlong)sz);
if(write(fd, buf, strlen(buf)) < 0) sysfatal("write: %r");
close(fd);
gmem = segattach(0, sn, nil, sz);