mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 00:23:16 +00:00
init: apply routing to environment sessions
The init component used to create the CPU/RAM/PD/ROM sessions (the child environment) for its children by issuing session requests to its parent, which is typically core. This policy was hard-wired. This patch enables the routing of the environment sessions of the children of init according to the configured routing policy. Because there is no hard-wired policy regarding the environment sessions anymore, routes to respective services must be explicitly declared in the init configuration. For this reason, the patch adjusts several run scripts in this respect. This patch removes the outdated '<if-args>' special handling of session labels. The '<if-args>' feature will eventually be removed completely (ref #2250) Issue #2197 Issue #2215 Issue #2233 Issue #2250
This commit is contained in:
@ -25,12 +25,9 @@
|
||||
<start name="noux">
|
||||
<resource name="RAM" quantum="24M"/>
|
||||
<route>
|
||||
<service name="Terminal">
|
||||
<if-arg key="label" value=""/><parent/>
|
||||
</service>
|
||||
<service name="Terminal">
|
||||
<if-arg key="label" value="noux(terminal_fs)"/><child name="terminal_gdb"/>
|
||||
</service>
|
||||
<service name="Terminal" label=""> <parent/> </service>
|
||||
<service name="Terminal" label="noux(terminal_fs)">
|
||||
<child name="terminal_gdb"/> </service>
|
||||
<any-service> <any-child/> <parent/> </any-service>
|
||||
</route>
|
||||
<config>
|
||||
|
@ -12,12 +12,10 @@ Example configuration:
|
||||
<input label="usb_hid" />
|
||||
</config>
|
||||
<route>
|
||||
<service name="Input">
|
||||
<if-arg key="label" value="ps2" /> <child name="ps2_drv" />
|
||||
</service>
|
||||
<service name="Input">
|
||||
<if-arg key="label" value="usb_hid" /> <child name="usb_drv" />
|
||||
</service>
|
||||
<service name="Input" label="ps2">
|
||||
<child name="ps2_drv"/> </service>
|
||||
<service name="Input" label="usb_hid">
|
||||
<child name="usb_drv" /> </service>
|
||||
<any-service> <parent /> <any-child /> </any-service>
|
||||
</route>
|
||||
</start>
|
||||
|
@ -187,7 +187,9 @@ struct Faulting_loader_grand_child_test
|
||||
"<config>\n"
|
||||
" <parent-provides>\n"
|
||||
" <service name=\"ROM\"/>\n"
|
||||
" <service name=\"RM\"/>\n"
|
||||
" <service name=\"RAM\"/>\n"
|
||||
" <service name=\"CPU\"/>\n"
|
||||
" <service name=\"PD\"/>\n"
|
||||
" <service name=\"LOG\"/>\n"
|
||||
" </parent-provides>\n"
|
||||
" <default-route>\n"
|
||||
|
Reference in New Issue
Block a user