Commit 46c4937
committed
KVM: x86: move vm_destroy callback at end of kvm_arch_destroy_vm
TDX needs to free the TDR control structures last, after all paging structures
have been torn down; move the vm_destroy callback at a suitable place.
The new place is also okay for AMD; the main difference is that the
MMU has been torn down and, if anything, that is better done before
the SNP ASID is released.
Extracted from a patch by Yan Zhao.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent ea9bd29 commit 46c4937
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12880 | 12880 | | |
12881 | 12881 | | |
12882 | 12882 | | |
12883 | | - | |
12884 | 12883 | | |
12885 | 12884 | | |
12886 | 12885 | | |
| |||
12890 | 12889 | | |
12891 | 12890 | | |
12892 | 12891 | | |
| 12892 | + | |
12893 | 12893 | | |
12894 | 12894 | | |
12895 | 12895 | | |
| |||
0 commit comments