loongson-dune
loongson-dune copied to clipboard
kernel mode : init
- [ ] init
- [x] seems no hardware enable is needed, kind of unbelieveable
- [ ] hardware_enable_all
- [ ] kvm_vz_hardware_enable
- [ ] kvm_vz_vcpu_put
- [ ] entry setup
- [ ] remove kvm_host.h : kvm_vcpu and arch_vcpu
- [ ] register the entry
- [ ] hypercall / skip one instruction
- [ ] PF_VCPU
if (current->flags & PF_VCPU)
kvm_vz_vcpu_save_wired(vcpu);
what should be inited and how?
currently, I just want to do a following how dune works:
- dune_enter => vz_launch => create_vcpu && create_vm (Yes, VM and VCPU is one-to-one pair)
- dune_init(this is module related init)
use Loongson VZ instead of VZ
- [ ] we will diff the code later