libxl: default behavior when libxl fail to map an IRQ
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
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.
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