/* This function needs to be called at device initialization and before updating to a set of newly-generated stats. This will ensure that no stale values stick around in case the guest reports a subset of the supported statistics.  */
static void reset_stats(VirtIOBalloon *dev)
/* This function needs to be called at device initialization and before updating to a set of newly-generated stats. This will ensure that no stale values stick around in case the guest reports a subset of the supported statistics.  */
static void reset_stats(VirtIOBalloon *dev)
{
    int i;
    for (i = 0; i < VIRTIO_BALLOON_S_NR; dev->stats[i++] = -1);
}