loongson-dune
loongson-dune copied to clipboard
:zap: Process virtualization based on KVM. More useable, stable and practical than Stanford Dune.
Road map
## review mode - [ ] how kvm_main works ## ideas - [ ] host should work in another thread, then anything did in `host_loop` just like another thread, so...
- [ ] init - [x] seems no hardware enable is needed, kind of unbelieveable - [ ] hardware_enable_all - [ ] kvm_vz_hardware_enable - [ ] kvm_vz_vcpu_put - [ ]...
- [x] kvm_vz_vcpu_load_tlb - [ ] kvm_vz_vcpu_load_wired - [ ] why load tlb in `kvm_vz_vcpu_run` instead of everytime `vmexit` # TLB need special attention 1. should we copy TLB used...
## Something related to emualted: - [x] `mapped` and `unmapped` - [x] kvm_mips_gpa_pte_to_gva_unmapped, kvm_mips_gpa_pte_to_gva_mapped - [x] kvm_mips_handle_kseg0_tlb_fault
- [x] page flags - [x] PDX - [x] level - [ ] pgroot - [ ] cr3 for mips ? - [ ] vm.c : dune_vm_default_pgflt_handler : we will...
## Context Switch && Interrupt, here I came. - [ ] dune_config - [ ] dune_trap_regs : general purpose regs + rip + rflags, we can ignore it savely.