x86/HVM: correct cleanup after failed viridian_vcpu_init()
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Oct 2021 12:21:17 +0000 (14:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Oct 2021 12:21:17 +0000 (14:21 +0200)
commit66675056c6e59b8a8b651a29ef53c63e9e04f58d
treea9d61ea461be969bca637ad49be97467a1f17e50
parent52d0847d7c6972baa74156f14ee8544f5aba1d2d
x86/HVM: correct cleanup after failed viridian_vcpu_init()

This happens after nestedhvm_vcpu_initialise(), so its effects also need
to be undone.

Fixes: 40a4a9d72d16 ("viridian: add init hooks")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/hvm/hvm.c