Skip to contentSkip to conversation

libxl: default behavior when libxl fail to map an IRQ

DISCUSSION Julien Grall 2 participants 3 messages May 14, 2014

lore
Share & tools
lore
#0 lore raw

Hello all,

It seems that libxl continue to create the domain even when the function domcreate_launch (tools/libxl/libxl_create.c) fails to map an IRQ to a domain.

I looked at the code and libxl only prints an error message when an error occurred. It's the same thing for MMIO and ioport.

Shouldn't we stop to create the domain when something is failing?

Regards,

Signature · 1 line
Julien Grall
#1 lore raw
Quoted 10 lines · Julien Grall

Hello all,

It seems that libxl continue to create the domain even when the function domcreate_launch (tools/libxl/libxl_create.c) fails to map an IRQ to a domain.

I looked at the code and libxl only prints an error message when an error occurred. It's the same thing for MMIO and ioport.

Shouldn't we stop to create the domain when something is failing?

yeah, it seems like all three of those loops are missing a goto error_out.

Ian.

#2 lore raw
Quoted 7 lines · Ian Campbell
Quoted 6 lines · Julien Grall

Hello all,

It seems that libxl continue to create the domain even when the function domcreate_launch (tools/libxl/libxl_create.c) fails to map an IRQ to a domain.

Quoted 7 lines
Quoted 4 lines

I looked at the code and libxl only prints an error message when an error occurred. It's the same thing for MMIO and ioport.

Shouldn't we stop to create the domain when something is failing?

yeah, it seems like all three of those loops are missing a goto error_out.

Thanks for you answer. I will write a patch to add a goto in theses loop.

Regards,

Signature · 1 line
Julien Grall