search for: virtio_balloon_vq_id_defl

Displaying 8 results from an estimated 8 matches for "virtio_balloon_vq_id_defl".

2018 Jan 24
0
[PATCH v23 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...rs/virtio/virtio_balloon.c @@ -51,9 +51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); static struct vfsmount *balloon_mnt; #endif +/* The number of virtqueues supported by virtio-balloon */ +#define VIRTIO_BALLOON_VQ_NUM 4 +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 +#define VIRTIO_BALLOON_VQ_ID_STATS 2 +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 + struct virtio_balloon { struct virtio_device *vdev; - struct virtqueue *inflate_vq, *deflate_vq, *stats_vq; + struct virtqueue *inflate_vq, *deflate_vq, *stats_vq, *free_page_vq; + + /* Balloon's own wq fo...
2018 Jan 24
3
[PATCH v23 0/2] Virtio-balloon: support free page reporting
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_VQ, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of VMs. Here is an introduction of this usage: Live migration needs to transfer the VM's memory
2018 Jan 24
0
[PATCH v24 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...rs/virtio/virtio_balloon.c @@ -51,9 +51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); static struct vfsmount *balloon_mnt; #endif +/* The number of virtqueues supported by virtio-balloon */ +#define VIRTIO_BALLOON_VQ_NUM 4 +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 +#define VIRTIO_BALLOON_VQ_ID_STATS 2 +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 + struct virtio_balloon { struct virtio_device *vdev; - struct virtqueue *inflate_vq, *deflate_vq, *stats_vq; + struct virtqueue *inflate_vq, *deflate_vq, *stats_vq, *free_page_vq; + + /* Balloon's own wq fo...
2018 Jan 24
2
[PATCH v23 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...+51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); > static struct vfsmount *balloon_mnt; > #endif > > +/* The number of virtqueues supported by virtio-balloon */ > +#define VIRTIO_BALLOON_VQ_NUM 4 > +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 > +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 > +#define VIRTIO_BALLOON_VQ_ID_STATS 2 > +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 > + > struct virtio_balloon { > struct virtio_device *vdev; > - struct virtqueue *inflate_vq, *deflate_vq, *stats_vq; > + struct virtqueue *inflate_vq, *deflate_vq, *stats_vq, *free_page...
2018 Jan 24
2
[PATCH v23 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...+51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); > static struct vfsmount *balloon_mnt; > #endif > > +/* The number of virtqueues supported by virtio-balloon */ > +#define VIRTIO_BALLOON_VQ_NUM 4 > +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 > +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 > +#define VIRTIO_BALLOON_VQ_ID_STATS 2 > +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 > + > struct virtio_balloon { > struct virtio_device *vdev; > - struct virtqueue *inflate_vq, *deflate_vq, *stats_vq; > + struct virtqueue *inflate_vq, *deflate_vq, *stats_vq, *free_page...
2018 Jan 24
4
[PATCH v24 0/2] Virtio-balloon: support free page reporting
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of VMs. Here is an introduction of this usage: Live migration needs to transfer the VM's
2018 Jan 24
3
[PATCH v24 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...+51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); > static struct vfsmount *balloon_mnt; > #endif > > +/* The number of virtqueues supported by virtio-balloon */ > +#define VIRTIO_BALLOON_VQ_NUM 4 > +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 > +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 > +#define VIRTIO_BALLOON_VQ_ID_STATS 2 > +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 > + Please do an enum instead of defines. VQ_ID can be just VQ (it's not an ID, it's just the number). > struct virtio_balloon { > struct virtio_device *vdev; > - struct virtqueu...
2018 Jan 24
3
[PATCH v24 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...+51,21 @@ MODULE_PARM_DESC(oom_pages, "pages to free on OOM"); > static struct vfsmount *balloon_mnt; > #endif > > +/* The number of virtqueues supported by virtio-balloon */ > +#define VIRTIO_BALLOON_VQ_NUM 4 > +#define VIRTIO_BALLOON_VQ_ID_INFLATE 0 > +#define VIRTIO_BALLOON_VQ_ID_DEFLATE 1 > +#define VIRTIO_BALLOON_VQ_ID_STATS 2 > +#define VIRTIO_BALLOON_VQ_ID_FREE_PAGE 3 > + Please do an enum instead of defines. VQ_ID can be just VQ (it's not an ID, it's just the number). > struct virtio_balloon { > struct virtio_device *vdev; > - struct virtqueu...