xen/domain: Introduce vcpu_teardown()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Sep 2020 13:17:02 +0000 (14:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 19 Jan 2021 15:27:50 +0000 (15:27 +0000)
commita59e56b65c410792f2e75ac36251e9a911c43109
treed713ac272d26ef88c5131727b091d05f4083d405
parentb7f462872ab1e7de8d3e02f9e71dee11d0fd3560
xen/domain: Introduce vcpu_teardown()

Similarly to c/s 98d4d6d8a6 "xen/domain: Introduce domain_teardown()",
introduce a common mechanism for restartable per-vcpu teardown logic.

Extend the PROGRESS() mechanism to support saving and restoring the vcpu loop
variable across hypercalls.

This will eventually supersede domain_reliquish_resources(), and reduce the
quantity of redundant logic performed.

No functional change (yet).

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/domain.c
xen/include/xen/sched.h