vbox: use priorities in run scripts

By using priorities, we make sure that the timer gets scheduled whenever
it is able to run regardless of how much load is on the system.
This commit is contained in:
Alexander Boettcher
2014-07-02 12:11:20 +02:00
committed by Norman Feske
parent 21e9eebf25
commit 605a5d7df2
4 changed files with 26 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ build $build_components
create_boot_directory
set config {
<config>
<config prio_levels="4">
<parent-provides>
<service name="ROM"/>
<service name="RAM"/>
@@ -37,7 +37,7 @@ set config {
</start>}
append_if [have_spec acpi] config {
<start name="acpi">
<start name="acpi" priority="-1">
<resource name="RAM" quantum="5M"/>
<binary name="acpi_drv"/>
<provides>
@@ -51,25 +51,25 @@ append_if [have_spec acpi] config {
</start>}
append_if [expr ![have_spec acpi] && [have_spec pci]] config {
<start name="pci_drv">
<start name="pci_drv" priority="-1">
<resource name="RAM" quantum="2M"/>
<provides> <service name="PCI"/> </provides>
</start>}
append_if [have_spec ps2] config {
<start name="ps2_drv">
<start name="ps2_drv" priority="-1">
<resource name="RAM" quantum="1M"/>
<provides><service name="Input"/></provides>
</start>}
append_if [have_spec framebuffer] config {
<start name="fb_drv">
<start name="fb_drv" priority="-1">
<resource name="RAM" quantum="4M"/>
<provides><service name="Framebuffer"/></provides>
</start>}
append_if [have_spec sdl] config {
<start name="fb_sdl">
<start name="fb_sdl" priority="-1">
<resource name="RAM" quantum="4M"/>
<provides>
<service name="Input"/>
@@ -78,7 +78,7 @@ append_if [have_spec sdl] config {
</start>}
append_if [have_spec x86] config {
<start name="rtc_drv">
<start name="rtc_drv" priority="-1">
<resource name="RAM" quantum="1M"/>
<provides>
<service name="Rtc"/>
@@ -86,7 +86,7 @@ append_if [have_spec x86] config {
</start>}
append config {
<start name="virtualbox">
<start name="virtualbox" priority="-2">
<resource name="RAM" quantum="1G"/>
<config>
<image type="iso" file="test.iso" />