mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
domain: move vmtrace_alloc_buffer() invocation in vcpu_create()
The label used upon the function failing is wrong. Instead of correcting
the label, move the invocation up a little, to also avoid it altogether
for the idle domain (where ->vmtrace_size would be zero, and hence the
function would bail right away anyway).
Fixes: 217dd79ee2 ("xen/domain: Add vmtrace_size domain creation parameter")
Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
505b2afae4
commit
adfbdaa347
1 file changed
+3
-3
+3
-3
@@ -500,14 +500,14 @@ struct vcpu *vcpu_create(struct domain *d, unsigned int vcpu_id)
|
||||
set_bit(_VPF_down, &v->pause_flags);
|
||||
vcpu_info_reset(v);
|
||||
init_waitqueue_vcpu(v);
|
||||
|
||||
if ( vmtrace_alloc_buffer(v) != 0 )
|
||||
goto fail_wq;
|
||||
}
|
||||
|
||||
if ( sched_init_vcpu(v) != 0 )
|
||||
goto fail_wq;
|
||||
|
||||
if ( vmtrace_alloc_buffer(v) != 0 )
|
||||
goto fail_wq;
|
||||
|
||||
if ( arch_vcpu_create(v) != 0 )
|
||||
goto fail_sched;
|
||||
|
||||
|
||||