mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen: Introduce arch_domain_teardown()
Plumb it into domain_teardown(). Provide arch_val in the teardown continuation information for use by arch_domain_teardown(). No practical change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
1 parent
4bf014c6f7
commit
2d775ee651
5 files changed
+18
No files matched your search
@@ -793,6 +793,11 @@ fail:
|
||||
return rc;
|
||||
}
|
||||
|
||||
int arch_domain_teardown(struct domain *d)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void arch_domain_destroy(struct domain *d)
|
||||
{
|
||||
/* IOMMU page table is shared with P2M, always call
|
||||
|
||||
@@ -888,6 +888,11 @@ int arch_domain_create(struct domain *d,
|
||||
return rc;
|
||||
}
|
||||
|
||||
int arch_domain_teardown(struct domain *d)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void arch_domain_destroy(struct domain *d)
|
||||
{
|
||||
if ( is_hvm_domain(d) )
|
||||
|
||||
@@ -439,6 +439,7 @@ static int domain_teardown(struct domain *d)
|
||||
PROG_none,
|
||||
PROG_gnttab_mappings,
|
||||
PROG_vcpu_teardown,
|
||||
PROG_arch_teardown,
|
||||
PROG_done,
|
||||
};
|
||||
|
||||
@@ -459,6 +460,11 @@ static int domain_teardown(struct domain *d)
|
||||
return rc;
|
||||
}
|
||||
|
||||
PROGRESS(arch_teardown):
|
||||
rc = arch_domain_teardown(d);
|
||||
if ( rc )
|
||||
return rc;
|
||||
|
||||
PROGRESS(done):
|
||||
break;
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ int arch_domain_create(struct domain *d,
|
||||
struct xen_domctl_createdomain *config,
|
||||
unsigned int flags);
|
||||
|
||||
int arch_domain_teardown(struct domain *d);
|
||||
void arch_domain_destroy(struct domain *d);
|
||||
|
||||
void arch_domain_shutdown(struct domain *d);
|
||||
|
||||
@@ -589,6 +589,7 @@ struct domain
|
||||
*/
|
||||
struct {
|
||||
unsigned int val;
|
||||
unsigned int arch_val;
|
||||
struct vcpu *vcpu;
|
||||
} teardown;
|
||||
|
||||
|
||||