How to know the interrupt ID which is signaled currently without acknowledging it

At EL2, all the interrupts are trapped to EL2. Based on the interrupt ID I want to switch to guest to further handle.

Is it safe to rely on ICC_HPPIR1_EL1 to peek the highest pending interrupt and based on the INT ID switch to guest to which the interrupt is assigned?

I don't want to acknowledge the interrupt in EL2 by reading ICC_IAR1_EL1.

0