mm: rename vmm api to mm

This commit is contained in:
Matheus
2026-07-01 14:57:05 -03:00
parent c650036cfe
commit 239c267ed3
47 changed files with 402 additions and 413 deletions
+3 -3
View File
@@ -75,10 +75,10 @@ int arch_ldt_set_entry(unsigned int which, ldt_entry_t entry) {
done = 0;
for (int i = 0; i < arch_smp_cpusawake; ++i) {
// reading the vmm context like this is racey but there are no ill side effects other than spurious shootdowns
// if a cpu changes to this vmmctx, they will already have done a ldt invalidation.
// reading the mm context like this is racey but there are no ill side effects other than spurious shootdowns
// if a cpu changes to this mmctx, they will already have done a ldt invalidation.
// if it changes out of it, same thing
if (smp_cpus[i] == current_cpu() || (smp_cpus[i]->vmmctx != current_thread()->vmmctx))
if (smp_cpus[i] == current_cpu() || (smp_cpus[i]->mmctx != current_thread()->mmctx))
continue;
++shootdown_total;