Closed SuchAFuriousDeath closed 2 months ago
I decided to do a refactor, so Kvm and Vm now have their own wrapper types around OwnedFd. I think this is better because it makes it more clear whata method on kvm and what is a method on vm
@ultimaweapon If we only run the game in a vm, how do we deal with multiple threads?
It will be the same as other kernels. That is, switch between threads when the VM exits due to the time slice used up.
Didn't know that was possible. Nice
So I guess ... now we just map the module into memory, set the registers and run the KVM_RUN ioctl, right? Roughly
+ the scheduler
We need to fix the process VM to allocate from Ram
and setup page table for the game process.
@ultimaweapon
IDPS do be broken tho-
Yeah you... Never defined it in UI, Ultima xD
Better to create an issue for this.
I think this is rougly what we want. Tbh, I'm not completely sure about the Error::from_raw_os_error.