 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 7/7] xen/arm: introduce new xen,enhanced property value
 Hi Stefano, On 24/08/2022 22:59, Stefano Stabellini wrote: On Wed, 24 Aug 2022, Rahul Singh wrote:On 24 Aug 2022, at 4:36 pm, Julien Grall <julien@xxxxxxx> wrote: On 24/08/2022 15:42, Rahul Singh wrote:On 24 Aug 2022, at 1:59 pm, Julien Grall <julien@xxxxxxx> wrote: On 24/08/2022 13:15, Rahul Singh wrote:Hi Julien,Hi Rahul, Correct. and now we are only enabling a subset: xen,enhanced = "evtchn"; Is that a correct understanding? Yes with some cavears (see below). If so, we can clarify that: xen,enhanced; it is a convenient shortend for: xen,enhanced = "xenstore,gnttab,evtchn"; and that other combinations are also acceptable, e.g.: xen,enhanced = "gnttab"; xen,enhanced = "evtchn"; xen,enhanced = "evtchn,gnttab"; It is OK to panic if the user specifies an option that is currently unsupported (e.g. "gnttab"). So today, if you create the node "xen,xen", the guest will expect to be able to use both grant-table and event channel. Therefore, in the list above, the only configuration we can sensibly support without any major rework is "evtchn,gnttab". If we want to support "evtchn" or "gnttab" only. Then we likely need to define a new binding (or new version) because neither "regs" nor "interrupts" are optional (although a guest OS is free to ignore them). In practice xenstore requires both gnttab and evtchn, I don't know if we want to write that down in the device tree bindings. We could panic if the user specifies: xen,enhanced = "xenstore,evtchn"; I think the interface for dom0less domUs is quite messy at the moment. Even if we don't advertise the support for event channel and grant-table, hypercalls. They are still accessible if the guest wish to do so. If we decide to introduce "evtchn", "gnttab" & co then we should also make sure that if "evtchn" is not specified then we are not allowing the guest to allocate any event channel (or map the grant-table). Otherwise, this is pointless if we try to tell the user "evtchn", "gnttab"... And just to be clear, I would be perfectly happy to break anyone tryingto use event channel without "xen,enanced" because we didn't advertise the feature. So they should not use it. Cheers, -- Julien Grall 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |