Remove Allocator_guard

This patch removes old 'Allocator_guard' utility and replaces its use
with the modern 'Constrained_ram_allocator'.

The adjustment of core in this respect has the side effect of a more
accurate capability accounting in core's CPU, TRACE, and RM services.
In particular, the dataspace capabilities needed for core-internal
allocations via the 'Sliced_heap' are accounted to the client now.
The same goes for nitpicker and nic_dump as other former users of the
allocator guard. Hence, the patch also touches code at the client and
server sides related to these services.

The only remaining user of the 'Allocator_guard' is the Intel GPU
driver. As the adaptation of this component would be too invasive
without testing, this patch leaves this component unchanged by keeping a
copy of the 'allocator_guard.h' locally at the component.

Fixes #3750
This commit is contained in:
Norman Feske
2020-05-05 14:27:29 +02:00
parent 1cc7277996
commit 9d67f9fc8e
55 changed files with 424 additions and 277 deletions

View File

@@ -47,7 +47,7 @@
</route>
</start>
<start name="platform_drv" caps="200">
<start name="platform_drv" caps="210">
<resource name="RAM" quantum="3M" constrain_phys="yes"/>
<provides>
<service name="Platform"/>
@@ -70,7 +70,7 @@
</config>
</start>
<start name="nic_drv">
<start name="nic_drv" caps="120">
<binary name="ipxe_nic_drv"/>
<resource name="RAM" quantum="4M"/>
<provides> <service name="Nic"/> </provides>

View File

@@ -72,7 +72,7 @@ install_config {
</route>
</start>
<start name="fs_query">
<start name="fs_query" caps="120">
<resource name="RAM" quantum="1M"/>
<config>
<vfs> <dir name="fs"> <fs writeable="yes"/> </dir> </vfs>