vmx: allocate sticky instead of more expensive fixed segment
This commit is contained in:
parent
6f6df11db7
commit
faae8eb752
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ mksegment(char *sn)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue