Displaying 5 results from an estimated 5 matches for "send_stop_to_host_via_vq".
2017 Nov 15
2
[PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...d, another is the free
page reporting worker thread.
- what the config handler does is simply:
1.1: WRITE_ONCE(vb->reporting_stop, true);
- what the reporting thread will do is
2.1: WRITE_ONCE(vb->reporting_stop, true);
2.2: send_stop_to_host_via_vq();
From the guest point of view, no matter 1.1 is executed first or 2.1
first, it doesn't make a difference to the end result -
vb->reporting_stop is set.
From the host point of view, it knows that cmd_id=1 has truly stopped
the reporting when it receives a "stop" sign via t...
2017 Nov 15
2
[PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...d, another is the free
page reporting worker thread.
- what the config handler does is simply:
1.1: WRITE_ONCE(vb->reporting_stop, true);
- what the reporting thread will do is
2.1: WRITE_ONCE(vb->reporting_stop, true);
2.2: send_stop_to_host_via_vq();
From the guest point of view, no matter 1.1 is executed first or 2.1
first, it doesn't make a difference to the end result -
vb->reporting_stop is set.
From the host point of view, it knows that cmd_id=1 has truly stopped
the reporting when it receives a "stop" sign via t...
2017 Nov 15
0
[PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
...eporting worker thread.
>
> - what the config handler does is simply:
> 1.1: WRITE_ONCE(vb->reporting_stop, true);
>
> - what the reporting thread will do is
> 2.1: WRITE_ONCE(vb->reporting_stop, true);
> 2.2: send_stop_to_host_via_vq();
>
> From the guest point of view, no matter 1.1 is executed first or 2.1 first,
> it doesn't make a difference to the end result - vb->reporting_stop is set.
>
> From the host point of view, it knows that cmd_id=1 has truly stopped the
> reporting when it receives a &q...
2017 Nov 14
2
[PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
On 11/14/2017 01:32 AM, Michael S. Tsirkin wrote:
>> - guest2host_cmd: written by the guest to ACK to the host about the
>> commands that have been received. The host will clear the corresponding
>> bits on the host2guest_cmd register. The guest also uses this register
>> to send commands to the host (e.g. when finish free page reporting).
> I am not sure what is the
2017 Nov 14
2
[PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ
On 11/14/2017 01:32 AM, Michael S. Tsirkin wrote:
>> - guest2host_cmd: written by the guest to ACK to the host about the
>> commands that have been received. The host will clear the corresponding
>> bits on the host2guest_cmd register. The guest also uses this register
>> to send commands to the host (e.g. when finish free page reporting).
> I am not sure what is the