virtio_balloon.c (7221922da2a1eb8bbc8d6570cec1197c8f484517) virtio_balloon.c (6c85d6b653caeba2ef982925703cbb4f2b3b3163)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Virtio balloon implementation, inspired by Dor Laor and Marcelo
4 * Tosatti's implementations.
5 *
6 * Copyright 2008 Rusty Russell IBM Corporation
7 */
8

--- 573 unchanged lines hidden (view full) ---

582 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
583 vqs_info[VIRTIO_BALLOON_VQ_FREE_PAGE].name = "free_page_vq";
584
585 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) {
586 vqs_info[VIRTIO_BALLOON_VQ_REPORTING].name = "reporting_vq";
587 vqs_info[VIRTIO_BALLOON_VQ_REPORTING].callback = balloon_ack;
588 }
589
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Virtio balloon implementation, inspired by Dor Laor and Marcelo
4 * Tosatti's implementations.
5 *
6 * Copyright 2008 Rusty Russell IBM Corporation
7 */
8

--- 573 unchanged lines hidden (view full) ---

582 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
583 vqs_info[VIRTIO_BALLOON_VQ_FREE_PAGE].name = "free_page_vq";
584
585 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) {
586 vqs_info[VIRTIO_BALLOON_VQ_REPORTING].name = "reporting_vq";
587 vqs_info[VIRTIO_BALLOON_VQ_REPORTING].callback = balloon_ack;
588 }
589
590 err = virtio_find_vqs_info(vb->vdev, VIRTIO_BALLOON_VQ_MAX, vqs,
591 vqs_info, NULL);
590 err = virtio_find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, vqs,
591 vqs_info, NULL);
592 if (err)
593 return err;
594
595 vb->inflate_vq = vqs[VIRTIO_BALLOON_VQ_INFLATE];
596 vb->deflate_vq = vqs[VIRTIO_BALLOON_VQ_DEFLATE];
597 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) {
598 struct scatterlist sg;
599 unsigned int num_stats;

--- 606 unchanged lines hidden ---
592 if (err)
593 return err;
594
595 vb->inflate_vq = vqs[VIRTIO_BALLOON_VQ_INFLATE];
596 vb->deflate_vq = vqs[VIRTIO_BALLOON_VQ_DEFLATE];
597 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) {
598 struct scatterlist sg;
599 unsigned int num_stats;

--- 606 unchanged lines hidden ---