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:
Andrew Cooper authored and Julien Grall committed 2023-07-20 23:20:04 +01:00
1 parent 4bf014c6f7
commit 2d775ee651
5 files changed
+18

No files matched your search

+5
View File
@@ -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
+5
View File
@@ -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) )
+6
View File
@@ -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;
+1
View File
@@ -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);
+1
View File
@@ -589,6 +589,7 @@ struct domain
*/
struct {
unsigned int val;
unsigned int arch_val;
struct vcpu *vcpu;
} teardown;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.