]> rtime.felk.cvut.cz Git - jailhouse.git/commit
driver: Prevent disabling when there are offlined CPUs
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 15 May 2015 07:57:41 +0000 (09:57 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 15 May 2015 08:00:09 +0000 (10:00 +0200)
commitaf3732499fd661bf1dd601095a054dd3e1fc0c70
tree52fd2a7c2771cfb8cfae0247910db385fbe9680f
parent2efcb610816b52f306f95fee01c1e8b20a307844
driver: Prevent disabling when there are offlined CPUs

If Linux has some of the CPUs offlined itself, i.e. not for passing them
to other cells, and we disable the hypervisor then, those CPUs will not
be released. Attempts to online them again later on will fail. Reject
disable requests in such a case.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/cell.c
driver/cell.h
driver/main.c