/* This is the generic event handler we are registering with the Hypervisor. Ensure the flows are for us, and then parse it enough to know if it is an interrupt or an acknowledge.  */
static void hv_handler(struct HvLpEvent *event)
/* This is the generic event handler we are registering with the Hypervisor. Ensure the flows are for us, and then parse it enough to know if it is an interrupt or an acknowledge.  */
static void hv_handler(struct HvLpEvent *event)
{
	if ((event != NULL) && (event->xType == HvLpEvent_Type_MachineFac)) {
		if (hvlpevent_is_ack(event))
			handle_ack((struct io_mf_lp_event *)event);
		else
			handle_int((struct io_mf_lp_event *)event);
	} else
		printk(KERN_ERR "mf.c: alien event received\n");
}