[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 06/12] xen-hvm: move common functions to hw/xen/xen-hvm-common.c
Hi Vikram, On 15/10/2022 06:07, Vikram Garhwal wrote: +void xen_register_ioreq(XenIOState *state, unsigned int max_cpus, + MemoryListener xen_memory_listener) +{ [...] + + xen_bus_init(); + + /* Initialize backend core & drivers */ + if (xen_be_init() != 0) { + error_report("xen backend core setup failed"); + goto err; + } + xen_be_register_common(); Calling xen_be_init() and xen_be_register_common() from xen_register_ioreq() sounds wrong to me. There are no dependency between the two. I think it would be better to create a new function to register backends. Cheers, -- Julien Grall
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |