]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commit
Prevent a xenagent timeout on S3/S4 transition.
authorTroy Crosley <troycrosley@gmail.com>
Tue, 1 Sep 2020 17:27:37 +0000 (13:27 -0400)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 4 Sep 2020 08:05:38 +0000 (09:05 +0100)
commit2c2e29906539cb48cd25d85be476e78237f3b508
tree02e54a44f9800048a5314238c37c7e441c61756f
parent24a6d37a7cb83b6a891816b23a5514dacb14dd4c
Prevent a xenagent timeout on S3/S4 transition.

Prevent a xenagent timeout (and live kernel dump) on S3/S4 transition by
changing CXenIfaceCreator::Log to use TryEnterCriticalSection.
Otherwise, a timeout occurs when the service control handler fails to
return due to attempting to enter a critical section object that the
main service thread already owns while responding to the
control/shutdown xenstore watch.

Signed-off-by: Troy Crosley <troycrosley@gmail.com>
[Re-ordered if statement]
Signed-off-by: Paul Durrant <paul@xen.org>
src/xenagent/service.cpp