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: adfbdaa347
master date: 2026-03-10 09:23:25 +0100
This commit is contained in:
Jan Beulich committed 2026-03-10 14:45:42 +01:00
1 parent 260740e1aa
commit a38f515168
1 file changed
+3 -3
+3 -3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.