Re: [Xen-devel] [PATCH v3 2/2] x86/vm_event: toggle singlestep from vm_event response

2015-07-08 Thread Lengyel, Tamas
On Wed, Jul 8, 2015 at 10:39 AM, Jan Beulich wrote: > >>> On 07.07.15 at 15:52, wrote: > > --- a/xen/arch/x86/hvm/hvm.c > > +++ b/xen/arch/x86/hvm/hvm.c > > @@ -6431,6 +6431,17 @@ int hvm_debug_op(struct vcpu *v, int32_t op) > > return rc; > > } > > > > +void hvm_toggle_singlestep(struct v

Re: [Xen-devel] [PATCH v3 2/2] x86/vm_event: toggle singlestep from vm_event response

2015-07-08 Thread Jan Beulich
>>> On 07.07.15 at 15:52, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -6431,6 +6431,17 @@ int hvm_debug_op(struct vcpu *v, int32_t op) > return rc; > } > > +void hvm_toggle_singlestep(struct vcpu *v) > +{ > +ASSERT(atomic_read(&v->pause_count)); > + > +

[Xen-devel] [PATCH v3 2/2] x86/vm_event: toggle singlestep from vm_event response

2015-07-07 Thread Tamas K Lengyel
Add an option to the vm_event response to toggle singlestepping on the vCPU. This is only supported on Intel CPUs which have Monitor Trap Flag capability. Singed-off-by: Tamas K Lengyel Acked-by: Razvan Cojocaru --- v3: Remove comment describing the limitation of the flag in the public header