Displaying 4 results from an estimated 4 matches for "kvmi_arch_stop_single_step".
2019 Aug 12
1
[RFC PATCH v6 64/92] kvm: introspection: add single-stepping
...ng by both STI and MOV/POP SS is not possible.
> + */
> + if (kvm_arch_interrupt_allowed(vcpu))
> + kvm_set_interrupt_shadow(vcpu, KVM_X86_SHADOW_INT_STI);
This is wrong, the STI shadow only exists if interrupts were unblocked
prior to STI. I'm guessing this is a hack to workaround
kvmi_arch_stop_single_step() not properly handling the clearing case.
> +
> +}
> +
> +void kvmi_arch_stop_single_step(struct kvm_vcpu *vcpu)
> +{
> + kvm_set_mtf(vcpu, false);
> + /*
> + * The blocking by STI is cleared after the guest
> + * executes one instruction or incurs an exception.
>...
2019 Aug 09
0
[RFC PATCH v6 64/92] kvm: introspection: add single-stepping
...rt_single_step(struct kvm_vcpu *vcpu)
+{
+ kvm_set_mtf(vcpu, true);
+
+ /*
+ * Set block by STI only if the RFLAGS.IF = 1.
+ * Blocking by both STI and MOV/POP SS is not possible.
+ */
+ if (kvm_arch_interrupt_allowed(vcpu))
+ kvm_set_interrupt_shadow(vcpu, KVM_X86_SHADOW_INT_STI);
+
+}
+
+void kvmi_arch_stop_single_step(struct kvm_vcpu *vcpu)
+{
+ kvm_set_mtf(vcpu, false);
+ /*
+ * The blocking by STI is cleared after the guest
+ * executes one instruction or incurs an exception.
+ * However we migh stop the SS before entering to guest,
+ * so be sure we are clearing the STI blocking.
+ */
+ kvm_set_interrupt...
2019 Aug 09
117
[RFC PATCH v6 00/92] VM introspection
The KVM introspection subsystem provides a facility for applications running
on the host or in a separate VM, to control the execution of other VM-s
(pause, resume, shutdown), query the state of the vCPUs (GPRs, MSRs etc.),
alter the page access bits in the shadow page tables (only for the hardware
backed ones, eg. Intel's EPT) and receive notifications when events of
interest have taken place
2019 Aug 09
117
[RFC PATCH v6 00/92] VM introspection
The KVM introspection subsystem provides a facility for applications running
on the host or in a separate VM, to control the execution of other VM-s
(pause, resume, shutdown), query the state of the vCPUs (GPRs, MSRs etc.),
alter the page access bits in the shadow page tables (only for the hardware
backed ones, eg. Intel's EPT) and receive notifications when events of
interest have taken place