On Mon, Feb 03, 2014 at 01:37:17PM +1030, Rusty Russell wrote:
[...]
> I changed the STATS_REPLY to STATS, and included a "want more mem"
> flag. The implication is that the host compare stats across different
> guests.
>
> Cheers,
> Rusty.
>
> diff --git a/drivers/virtio/virtio_balloon2.c b/drivers/virtio/virtio_balloon2.c
> index 93f13e7c561d..6c0151f12f8b 100644
> --- a/drivers/virtio/virtio_balloon2.c
> +++ b/drivers/virtio/virtio_balloon2.c
> @@ -39,12 +39,15 @@ struct gcmd_give_pages {
> __le64 pages[256];
> };
>
> -struct gcmd_need_mem {
> - __le64 type; /* VIRTIO_BALLOON_GCMD_NEED_MEM */
> +struct gcmd_exchange_pages {
> + __le64 type; /* VIRTIO_BALLOON_GCMD_EXCHANGE_PAGES */
> + __le64 from_balloon;
> + __le64 to_balloon;
> };
>
> -struct gcmd_stats_reply {
> +struct gcmd_stats {
> __le64 type; /* VIRTIO_BALLOON_GCMD_STATS_REPLY */
VIRTIO_BALLOON_GCMD_STATS? Please see above.
Daniel