History log of /xv6-public/vm.c (Results 1 – 25 of 80)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: xv6-rev11
# 171c2cc6 30-Aug-2018 Frans Kaashoek <kaashoek@mit.edu>

thanks mataness


# 4638cabf 29-Aug-2017 Robert Morris <rtm@csail.mit.edu>

fix runoff complaints about pagination and long lines


# 03b30863 05-Feb-2017 Saarett <Saarett@users.noreply.github.com>

Free pgdir in setupkvm in case of mappages failure

There is a potential memory leak when mappages() fails inside setupkvm().
A call to freevm() is added in this case so as to reclaim the lost mappi

Free pgdir in setupkvm in case of mappages failure

There is a potential memory leak when mappages() fails inside setupkvm().
A call to freevm() is added in this case so as to reclaim the lost mapping pages.

show more ...


# ed396c06 01-Feb-2017 Frans Kaashoek <kaashoek@mit.edu>

Eliminate code for gs trick to track per-cpu state. We rely on lapiccpunum()
to find a per-cpu id with which we locate a cpu's cpu struct.


# fbb4c094 01-Feb-2017 Frans Kaashoek <kaashoek@mit.edu>

Read curproc from cpu structure, but be careful because after a schedule event
myproc() points to a different thread.

myproc();
sched();
myproc(); // this proc maybe different than the one

Read curproc from cpu structure, but be careful because after a schedule event
myproc() points to a different thread.

myproc();
sched();
myproc(); // this proc maybe different than the one before sched

Thus, in a function that operates on one thread better to retrieve the
current process once at the start of the function.

show more ...


# abf847a0 31-Jan-2017 Frans Kaashoek <kaashoek@mit.edu>

Start of an experiment to remove the use of gs for cpu local variables.


# 8d1f9963 23-Dec-2016 Peter Froehlich <peter.hans.froehlich@gmail.com>

Fix long-standing switchuvm() inconsistency.

switchuvm() is supposed to switch the TSS and page table to the
process p it is passed. Alas, instead of using p to access the
kstack field, it used the

Fix long-standing switchuvm() inconsistency.

switchuvm() is supposed to switch the TSS and page table to the
process p it is passed. Alas, instead of using p to access the
kstack field, it used the global proc. This worked fine because
(a) most uses of switchuvm() pass proc anyway and (b) because in
the schedule, where we call switchuvm with the newly scheduled
process, we actually set the global proc before the call. But I
think it's still a bug, even if it never broke a test case. :-)

show more ...


# ffe44492 26-Sep-2016 Cody Cutler <ccutler@csail.mit.edu>

fix possible memory leak in deallocuvm

when a zero PDE is encountered while searching for present PTEs to free,
resume searching at first entry of the next page table instead of the
current entry of

fix possible memory leak in deallocuvm

when a zero PDE is encountered while searching for present PTEs to free,
resume searching at first entry of the next page table instead of the
current entry of the next page table.

show more ...


Revision tags: xv6-rev9
# 4b2152cc 01-Sep-2016 Robert Morris <rtm@csail.mit.edu>

curproc -> proc in a comment


# 37939f24 26-Aug-2016 Frans Kaashoek <kaashoek@mit.edu>

better comment


# aff0c8d5 26-Aug-2016 Frans Kaashoek <kaashoek@mit.edu>

set iomb to forbid i/o instructions from user space
add to test that they indeed trap in user space
thanks to pablogventura@gmail.com and nwolovick@gmail.com


# 7894fcd2 25-Aug-2016 Frans Kaashoek <kaashoek@mit.edu>

Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done
(Thanks to Nicolás Wolovick)


# a7c03bd9 24-Aug-2016 Robert Morris <rtm@csail.mit.edu>

p2v -> P2V


# 9c65b32d 11-Aug-2016 Robert Morris <rtm@csail.mit.edu>

nothing much


# 858475e4 10-Aug-2016 Robert Morris <rtm@csail.mit.edu>

tiny clarifications to some gdt code.


# 0a4a4230 08-Aug-2016 Robert Morris <rtm@csail.mit.edu>

shell nits
fix Regehr complaint


Revision tags: xv6-rev8
# 74c77da6 29-Aug-2014 Frans Kaashoek <kaashoek@mit.edu>

Nice layout for a printout of the code


# ff278344 04-Mar-2013 Stephen Tu <stephentu@csail.mit.edu>

Correct a security bug in copyuvm()

copyuvm() should not allow new copied pages to inherit more
permissions than the original pages.


Revision tags: xv6-rev7
# 792d83ca 28-Aug-2012 Robert Morris <rtm@csail.mit.edu>

nits


# 3fb7ecee 23-Aug-2012 Frans Kaashoek <kaashoek@mit.edu>

Runoff still complaints these lines are too long, but it is now ok on printout


# 4ce832dd 23-Aug-2012 Frans Kaashoek <kaashoek@mit.edu>

Remove unused argument to setupkvm (thanks to Peter Froehlich)


Revision tags: osdi12-submit
# c092540e 13-Sep-2011 Robert Morris <rtm@csail.mit.edu>

eliminate enter_alloc -- use kalloc for everything


# 7e7cb106 13-Sep-2011 Robert Morris <rtm@csail.mit.edu>

more regular kmap[] and description


Revision tags: xv6-rev6
# dd4438b4 02-Sep-2011 Austin Clements <amdragon@mit.edu>

Nuke data.S, since we do have a custom linker script.


# 6f3ca059 02-Sep-2011 Austin Clements <amdragon@mit.edu>

Oops, dropped a paren


1234