/* To notify on status updates, we (ab)use the NOTIFY hypercall, with the descriptor address of the device. A zero status means "reset".  */
static void set_status(struct virtio_device *vdev, u8 status)
/* To notify on status updates, we (ab)use the NOTIFY hypercall, with the descriptor address of the device. A zero status means "reset".  */
static void set_status(struct virtio_device *vdev, u8 status)
{
	unsigned long offset = (void *)to_lgdev(vdev)->desc - lguest_devices;
	to_lgdev(vdev)->desc->status = status;
	kvm_hypercall1(LHCALL_NOTIFY, (max_pfn << PAGE_SHIFT) + offset);
}