5
edits
Changes
New page: == ACPI sleep == It is a bit tricky to make ACPI sleep and OpenVZ work together. ACPI sleep is enabled by <code>ACPI_SLEEP</code> kernel option. The following dependencies are declared i...
== ACPI sleep ==
It is a bit tricky to make ACPI sleep and OpenVZ work together.
ACPI sleep is enabled by <code>ACPI_SLEEP</code> kernel option. The following dependencies are declared in kernel configs:
ACPI_SLEEP depends on X86 && (!SMP || SUSPEND_SMP)
SUSPEND_SMP depends on HOTPLUG_CPU && X86 && PM
FAIRSCHED depends on SCHED_VCPU
And <code>SCHED_VCPU</code> is incompatible with <code>HOTPLUG_CPU</code>:
./kernel/cpu.c:#error "CONFIG_HOTPLUG_CPU isn't supported with CONFIG_SCHED_VCPU"
On non-SMP machine, you may disable <code>SMP</code>, this will resolve the conflict.
If you have SMP machine, you can only disable <code>FAIRSCHED</code> and <code>SCHED_VCPU</code>. This will loose isolation between VEs (scheduling will be performed per-task, not per-VE), but it is acceptable solution if your VEs are trusted (and it's hard to imagine untrusted VEs on notebook ;)
[[Category:Kernel]]
It is a bit tricky to make ACPI sleep and OpenVZ work together.
ACPI sleep is enabled by <code>ACPI_SLEEP</code> kernel option. The following dependencies are declared in kernel configs:
ACPI_SLEEP depends on X86 && (!SMP || SUSPEND_SMP)
SUSPEND_SMP depends on HOTPLUG_CPU && X86 && PM
FAIRSCHED depends on SCHED_VCPU
And <code>SCHED_VCPU</code> is incompatible with <code>HOTPLUG_CPU</code>:
./kernel/cpu.c:#error "CONFIG_HOTPLUG_CPU isn't supported with CONFIG_SCHED_VCPU"
On non-SMP machine, you may disable <code>SMP</code>, this will resolve the conflict.
If you have SMP machine, you can only disable <code>FAIRSCHED</code> and <code>SCHED_VCPU</code>. This will loose isolation between VEs (scheduling will be performed per-task, not per-VE), but it is acceptable solution if your VEs are trusted (and it's hard to imagine untrusted VEs on notebook ;)
[[Category:Kernel]]