Displaying 1 result from an estimated 1 matches for "entropy_leak_detected".
2023 Jan 20
0
[PATCH 1/2] virtio-rng: implement entropy leak feature
...save(&vi->lock, flags);
> +
> + vq = get_active_leakq(vi);
> + ret = add_copy_on_leak_request(vi, vq, to, from, len);
> + if (ret)
> + virtqueue_kick(vq);
> +
> + spin_unlock_irqrestore(&vi->lock, flags);
> +
> + return ret;
> +}
> +
> +static void entropy_leak_detected(struct virtqueue *vq)
> +{
> + struct virtrng_info *vi = vq->vdev->priv;
> + struct virtqueue *activeq;
> + unsigned int len;
> + unsigned long flags;
> + void *buffer;
> + bool kick_activeq = false;
> +
> + spin_lock_irqsave(&vi->lock, flags);
> +
> +...