Get rid of static spare pages after VM startup.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user