From: Jan Kiszka <[email protected]>

If msg_to_cell was not JAILHOUSE_MSG_SHUTDOWN_REQUEST, we took the
default path which also sent back JAILHOUSE_MSG_UNKNOWN - and cleared
msg_to_cell before that. This created a race condition with the
hypervisor trying to sent the cell a message. Due to the hlt, the race
normally didn't matter so far. It will when moving to polling-based
idle.

Signed-off-by: Jan Kiszka <[email protected]>
---
 inmates/demos/x86/apic-demo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/inmates/demos/x86/apic-demo.c b/inmates/demos/x86/apic-demo.c
index 920fbd71..2f3a6070 100644
--- a/inmates/demos/x86/apic-demo.c
+++ b/inmates/demos/x86/apic-demo.c
@@ -147,6 +147,8 @@ void inmate_main(void)
                        } else
                                terminate = true;
                        break;
+               case JAILHOUSE_MSG_NONE:
+                       break;
                default:
                        jailhouse_send_reply_from_cell(comm_region,
                                        JAILHOUSE_MSG_UNKNOWN);
--
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to