Closed RangeMachine closed 5 years ago
I'm not sure what do you mean. The code is there : https://github.com/wbenny/hvpp/blob/ec4115e5af113d5b7fa57735cfc7ea85f6dad47c/src/hvpp/hvpp/vcpu.cpp#L673
Look. We are capturingexit_context_.rip = guest_rip();
before handler_->handle(*this);
. If you do something like vmwrite(guest_ip, newip)
in vmexit handler, it will not have any effect because after vm exit we are restoring captured rip guest_rsp(exit_context_.rip);
.
That's true. The idea here is that you can change the registers via vp.exit_context(). Including rip, rsp & rflags
Thanks for hint.
You capturing rip rsp and rflags before vmexit handler: ` auto captured_rsp = exitcontext.rsp; auto captured_rflags = exitcontext.rflags;
As result any modifications to rip, rsp and rflags in vmexits have not any effect. So possible solution is: ` memory_manager::allocatorguard ;