You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be handy for the instruction emulation response in KVM to not be limited only for pagefaults.
The use case behind this is to return the original opcode when breakpoint was hit, previously replaced by an int 3 opcode.
This allows to have relatively cheap race condition free breakpoints with Libvmi / KVM.
Instruction emulation response is currently only available as a
kvmi_event_pf_reply
response:https://github.com/KVM-VMI/kvm/blob/kvmi-v7/Documentation/virt/kvm/kvmi.rst#10-kvmi_event_pf
Libvmi has the
VMI_EVENT_RESPONSE_SET_EMUL_INSN
event response that could be implemented for the KVM driver.An example already demonstrate how to use it:
https://github.com/KVM-VMI/libvmi/blob/master/examples/breakpoint-emulate-example.c#L87
It would be handy for the instruction emulation response in KVM to not be limited only for pagefaults.
The use case behind this is to return the original opcode when breakpoint was hit, previously replaced by an
int 3
opcode.This allows to have relatively cheap race condition free breakpoints with Libvmi / KVM.
The fallback solution right now is to use recoiling:
https://github.com/KVM-VMI/libvmi/blob/master/examples/breakpoint-recoil-example.c
cc @mdontu, @adlazar, @tklengyel
The text was updated successfully, but these errors were encountered: