diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-02-04 12:03:38 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-02-04 12:03:38 +0100 |
commit | 29aede13d56f877b227e7afcd049e804b8a5a3ca (patch) | |
tree | 54c8a28b33f083b09d77ca61c6c4e2d1e6de4259 /xen/arch/x86/hvm/nestedhvm.c | |
parent | e7dda8ec9fc9020e4f53345cdbb18a2e82e54a65 (diff) | |
download | xen-29aede13d56f877b227e7afcd049e804b8a5a3ca.tar.gz xen-29aede13d56f877b227e7afcd049e804b8a5a3ca.tar.bz2 xen-29aede13d56f877b227e7afcd049e804b8a5a3ca.zip |
x86/nestedhvm: properly clean up after failure to set up all vCPU-s
This implies that the individual destroy functions will have to remain
capable of being called for a vCPU that the corresponding init function
was never run on.
Once at it, also clean up some inefficiencies in the corresponding
parameter validation code.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/nestedhvm.c')
-rw-r--r-- | xen/arch/x86/hvm/nestedhvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/nestedhvm.c b/xen/arch/x86/hvm/nestedhvm.c index b3cf07dda3..964f58f1a5 100644 --- a/xen/arch/x86/hvm/nestedhvm.c +++ b/xen/arch/x86/hvm/nestedhvm.c @@ -87,7 +87,7 @@ nestedhvm_vcpu_initialise(struct vcpu *v) void nestedhvm_vcpu_destroy(struct vcpu *v) { - if ( nestedhvm_enabled(v->domain) && hvm_funcs.nhvm_vcpu_destroy ) + if ( hvm_funcs.nhvm_vcpu_destroy ) hvm_funcs.nhvm_vcpu_destroy(v); } |