|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [RFC PATCH 1/1] xsm: allows system domains to allocate evtchn
Hi Daniel, On 29/03/2022 19:57, Daniel P. Smith wrote: Auditing existing calls is somewhat easy. The trouble are for new calls. I would say they are unlikely, but we would need to rely on the reviewers to spot any misuse. So this is a bit risky.On 3/29/22 02:43, Jan Beulich wrote:On 28.03.2022 22:36, Daniel P. Smith wrote:During domain construction under dom0less and hyperlaunch it is necessary to allocate at least the event channel for xenstore and potentially the event channel for the core console. When dom0less and hyperlaunch are doing their construction logic they are executing under the idle domain context. The idle domain is not a privileged domain, it is not the target domain, and as a result under the current default XSM policy is not allowed to allocate the event channel.I appreciate the change is only needed there right now, but it feels inconsistent. _If_ it is to remain that way, at least a comment needs to be put in xsm_evtchn_unbound() making clear why this is a special case, and hence clarifying to people what the approximate conditions are to have such also put elsewhere. But imo it would be better to make the adjustment right in xsm_default_action(), without touching event_channel.c at all. Iirc altering xsm_default_action() was discussed before, but I don't recall particular reasons speaking against that approach. I am also a bit worry that we would end up to convert a lot of XSM_TARGET to XSM_HOOK (Note I have Live-Update in mind). This would make more difficult to figure what would the XSM calls allows without looking at the helper. I quite like the proposal from Roger. If we define two helpers (e.g. xsm_{enable, disable}_build_domain()), we could elevate the privilege for the idle domain for a short period of time (this could be restricted to when the dummy policy is used). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |