x86/HVM: correct cleanup after failed viridian_vcpu_init()
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Nov 2021 08:37:10 +0000 (09:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Nov 2021 08:37:10 +0000 (09:37 +0100)
commitf240f9c3c635222069b4e2e037c5eb7aa3687075
treebd012ab86be90c83b3bb575399a5bcfac9569b7e
parentd204a149501ab11f18aa59f6b3333fd5005e15d7
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>
master commit: 66675056c6e59b8a8b651a29ef53c63e9e04f58d
master date: 2021-10-18 14:21:17 +0200
xen/arch/x86/hvm/hvm.c