From: Jan Kiszka <[email protected]>

They can (and must) be delivered directly to the cell in that mode. GIC
CPU interfaces are already passed through.

Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/arch/arm64/setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hypervisor/arch/arm64/setup.c b/hypervisor/arch/arm64/setup.c
index d8c58504..376648e3 100644
--- a/hypervisor/arch/arm64/setup.c
+++ b/hypervisor/arch/arm64/setup.c
@@ -74,6 +74,8 @@ int arch_cpu_init(struct per_cpu *cpu_data)
 
                if (smc(SDEI_PE_UNMASK) != ARM_SMCCC_SUCCESS)
                        return trace_error(-EIO);
+
+               hcr &= ~(HCR_IMO_BIT | HCR_FMO_BIT);
        }
 
        /* Setup guest traps */
-- 
2.26.2

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/31b3017324624b02a6731d9a5c6194208e7b3e3e.1616139045.git.jan.kiszka%40siemens.com.

Reply via email to