[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] x86/vm_event: toggle singlestep from vm_event response
On 29/06/15 14:42, Lengyel, Tamas
wrote:
In which case you must make it very clear in the commit message that
this is for Intel only and needs fixing up for AMD. Best also to
have a comment to the same effect in this function.
XEN_DOMCTL_debug_op needs the check because of vcpu_pause(). It is
always run in the context of the hypercaller domain, and must never
end up calling singlestep on itself.
However in this case, we can only legitimately use this on an
already-paused vcpu, which guarentees that Xen is not currently in
the context of the target vcpu.
It would probably be better to have a check against the vcpu pause
count here (with early return), and hvm_toggle_singlestep() assert
so.
~Andrew
|
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|