mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +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> master commit:adfbdaa347master date: 2026-03-10 09:23:25 +0100
This commit is contained in:
1 parent
260740e1aa
commit
a38f515168
1 file changed
+3
-3
+3
-3
@@ -262,14 +262,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;
|
||||
|
||||
|
||||