Get rid of static spare pages after VM startup.

This commit is contained in:
Cristiano Giuffrida
2010-07-20 21:59:27 +00:00
parent 40b4e71db2
commit 0d984b36ef
4 changed files with 95 additions and 3 deletions

View File

@@ -30,6 +30,9 @@ struct proc *p;
p->p_seg.p_cr3 = m_ptr->SVMCTL_PTROOT;
p->p_seg.p_cr3_v = (u32_t *) m_ptr->SVMCTL_PTROOT_V;
p->p_misc_flags |= MF_FULLVM;
if(p == ptproc) {
write_cr3(p->p_seg.p_cr3);
}
} else {
p->p_seg.p_cr3 = 0;
p->p_seg.p_cr3_v = NULL;