camkes-vm
camkes-vm copied to clipboard
CNode_Revoke failed when reset resources
I want to reboot vm0 component, but it was failed when reset resources.
so i do some test. i direct revoke after untyped retype, it was also failed.
Have u meet the same issue?
BR
@bennoleslie @stevebob @jashank @ajaysusarla @lsf37 can u help with this issue?
thanks!
This reset_resources() implementation was made a while ago for a particular project requirement and may not still work. It's implemented by the component and not by CAmkES, so if the component has moved the untyped capabilities out of the initial slots, then the revoke operations would fail like you are seeing. The first thing I would try would be to call reset_resources early on during the component initialization to see if the function still works when the component is in a fresh state.
@kent-mcleod
thanks for the reply!!!
I found the root cause that can not revoke
I specified the depth , it works well.
but i meet a new issue :
hi @kent-mcleod I am developing a feature that can reboot vm linux, but i meet some issues. reference to the existing code , it does not work :( Is there a sample that can reboot vm component or vm linux successfully?
maybe I can refer it ! :)
thanks!!! BR
hi @kent-mcleod I am developing a feature that can reboot vm linux, but i meet some issues. reference to the existing code , it does not work :( Is there a sample that can reboot vm component or vm linux successfully?
maybe I can refer it ! :)
thanks!!! BR
@Makebug
I did not follow the full thread; I recalled something that might be useful.
If you just want to reboot a VM without changing memory size, IRQ allocation, or other things, you could do the following steps while the VM is stopped:
0 Zero out the VM memory (optional). 1 Copy the Linux kernel image and DTB. 2 Reset the VM registers. 3 Set the kernel entry point and DTB address. 4 Set the SCTLR_EL1 to SCTLR_DEFAUT, with MMU disabled. 5 Set VBAR_EL1, TTBR0_EL1, TTBR1_El1, and TCR to 0.
The stage-2 mapping does not have to be destroyed if you do not want to change the memory mapping.
hi @yyshen
I tried it in your way, but it is halting .
have u meet the same issue?