]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
inmates: Block reconfigurations during execution of APIC Demo
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 12 Apr 2014 09:58:37 +0000 (11:58 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sat, 3 May 2014 12:56:57 +0000 (14:56 +0200)
Extend the APIC demo to lock all cell configurations while it is
running. This lock can be resolved by destroying the APIC demo cell.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/apic-demo.c

index 8a529e1f9d2f605d19e3c7e4de659d20376fe853..f9ffaf5fae75f31aec892fa36a0f0f9296e944f1 100644 (file)
@@ -142,6 +142,8 @@ void inmate_main(void)
                                break;
        } while (n < UART_IDLE_LOOPS);
 
+       comm_region->cell_state = JAILHOUSE_CELL_RUNNING_LOCKED;
+
        if (init_pm_timer())
                init_apic();