While implementing VMI_EVENT_RESPONSE_SET_REGISTERS in Libvmi KVM driver, I realized that it wasn't possible to set special registers and MSRs.
The API provided by kvmi-v6 allows to get these registers:
|
int kvmi_get_registers( void *dom, unsigned short vcpu, struct kvm_regs *regs, struct kvm_sregs *sregs, |
but not to set them:
|
int kvmi_set_registers( void *dom, unsigned short vcpu, const struct kvm_regs *regs ); |
While implementing
VMI_EVENT_RESPONSE_SET_REGISTERSin Libvmi KVM driver, I realized that it wasn't possible tosetspecial registers and MSRs.The API provided by
kvmi-v6allows to get these registers:kvm/tools/kvm/kvmi/include/kvmi/libkvmi.h
Line 110 in 5205f80
but not to set them:
kvm/tools/kvm/kvmi/include/kvmi/libkvmi.h
Line 112 in 5205f80