[CORE] vmm_vcpu_irq: refactor a bit of code

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>