mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
x86/hvm: make domain_destroy() method optional
This method is currently empty for SVM so make it optional and, while in the neighbourhood, make it an alternative_vcall(). Signed-off-by: Paul Durrant <pdurrant@amazon.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
10a6e9cb5d
commit
f5cdb099e7
2 files changed
+3
-6
No files matched your search
@@ -747,7 +747,9 @@ void hvm_domain_destroy(struct domain *d)
|
||||
|
||||
hvm_destroy_cacheattr_region_list(d);
|
||||
|
||||
hvm_funcs.domain_destroy(d);
|
||||
if ( hvm_funcs.domain_destroy )
|
||||
alternative_vcall(hvm_funcs.domain_destroy, d);
|
||||
|
||||
rtc_deinit(d);
|
||||
stdvga_deinit(d);
|
||||
vioapic_deinit(d);
|
||||
|
||||
@@ -1155,10 +1155,6 @@ static int svm_domain_initialise(struct domain *d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void svm_domain_destroy(struct domain *d)
|
||||
{
|
||||
}
|
||||
|
||||
static int svm_vcpu_initialise(struct vcpu *v)
|
||||
{
|
||||
int rc;
|
||||
@@ -2425,7 +2421,6 @@ static struct hvm_function_table __initdata svm_function_table = {
|
||||
.cpu_up = svm_cpu_up,
|
||||
.cpu_down = svm_cpu_down,
|
||||
.domain_initialise = svm_domain_initialise,
|
||||
.domain_destroy = svm_domain_destroy,
|
||||
.vcpu_initialise = svm_vcpu_initialise,
|
||||
.vcpu_destroy = svm_vcpu_destroy,
|
||||
.save_cpu_ctxt = svm_save_vmcb_ctxt,
|
||||
|
||||