search for: statsq

Displaying 20 results from an estimated 25 matches for "statsq".

Did you mean: stats
2017 Mar 23
1
[PATCH v2] virtio_balloon: don't push uninitialized buffers to stats virtqueue
...to update_balloon_stats to make sure that all stats fields are initialized. Alternative fixes: * Push an empty buffer in init_vqs. Not easily done with the current virtio implementation and violates the spec "Driver MUST supply the same subset of statistics in all buffers submitted to the statsq". * Push a buffer with invalid tags in init_vqs. Violates the same spec clause, plus "invalid tag" is not really defined. Signed-off-by: Ladi Prosek <lprosek at redhat.com> --- v1->v2: * Call update_balloon_stats instead of filling the buffer with invalid tags. * Add...
2017 Mar 23
1
[PATCH v2] virtio_balloon: don't push uninitialized buffers to stats virtqueue
...to update_balloon_stats to make sure that all stats fields are initialized. Alternative fixes: * Push an empty buffer in init_vqs. Not easily done with the current virtio implementation and violates the spec "Driver MUST supply the same subset of statistics in all buffers submitted to the statsq". * Push a buffer with invalid tags in init_vqs. Violates the same spec clause, plus "invalid tag" is not really defined. Signed-off-by: Ladi Prosek <lprosek at redhat.com> --- v1->v2: * Call update_balloon_stats instead of filling the buffer with invalid tags. * Add...
2018 Mar 22
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...t; > > > * Memory statistics structure. > > > Not for this patch, but it looks to me that exporting such nr through uapi is fragile. > > Sorry, can you explain what you mean here? > > > > Jon > > Spec said "Within an output buffer submitted to the statsq, the device MUST > ignore entries with tag values that it does not recognize". So exporting > VIRTIO_BALLOON_S_NR seems useless and device implementation can not depend > on such number in uapi. > > Thanks Suggestions? I don't like to break build for people ... > >...
2017 Mar 22
2
[PATCH] virtio_balloon: don't push uninitialized buffers to stats virtqueue
...lling-interval. And they would be updated on driver (re-)load, so kind of arbitrarily from host pov. On the other hand, this patch does not really comply with (5.5.6.3.1 Driver Requirements: Memory Statistics): "Driver MUST supply the same subset of statistics in all buffers submitted to the statsq." So going by the letter of the law, we should fill in actual values. Going by the (the purpose of the initial buffer is to wait for the host to request stats), we should push an empty buffer or invalid values. >> sg_init_one(&sg, vb->stats, sizeof vb->stats); &...
2017 Mar 22
2
[PATCH] virtio_balloon: don't push uninitialized buffers to stats virtqueue
...lling-interval. And they would be updated on driver (re-)load, so kind of arbitrarily from host pov. On the other hand, this patch does not really comply with (5.5.6.3.1 Driver Requirements: Memory Statistics): "Driver MUST supply the same subset of statistics in all buffers submitted to the statsq." So going by the letter of the law, we should fill in actual values. Going by the (the purpose of the initial buffer is to wait for the host to request stats), we should push an empty buffer or invalid values. >> sg_init_one(&sg, vb->stats, sizeof vb->stats); &...
2018 Apr 09
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
.... >>>>> Not for this patch, but it looks to me that exporting such nr >>>>> through uapi is fragile. >>>> Sorry, can you explain what you mean here? >>>> >>>> Jon >>> Spec said "Within an output buffer submitted to the statsq, the >>> device MUST >>> ignore entries with tag values that it does not recognize". So exporting >>> VIRTIO_BALLOON_S_NR seems useless and device implementation can not >>> depend >>> on such number in uapi. >>> >>> Thanks >&...
2018 Apr 12
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...h, but it looks to me that exporting such nr >>>>>>> through uapi is fragile. >>>>>> Sorry, can you explain what you mean here? >>>>>> >>>>>> Jon >>>>> Spec said "Within an output buffer submitted to the statsq, the >>>>> device MUST >>>>> ignore entries with tag values that it does not recognize". So >>>>> exporting >>>>> VIRTIO_BALLOON_S_NR seems useless and device implementation can not >>>>> depend >>>>>...
2018 Mar 20
2
[PATCH v2] virtio_balloon: export hugetlb page allocation counts
> On Mar 19, 2018, at 7:31 PM, Jason Wang <jasowang at redhat.com> wrote: > > > > On 2018?03?20? 06:14, Jonathan Helman wrote: >> Export the number of successful and failed hugetlb page >> allocations via the virtio balloon driver. These 2 counts >> come directly from the vm_events HTLB_BUDDY_PGALLOC and >> HTLB_BUDDY_PGALLOC_FAIL. >> >>
2017 Mar 28
4
[PATCH v3 0/3] virtio_balloon: don't push uninitialized buffers to stats virtqueue
This series fixes issues with variable initialization in the virtio balloon driver which manifest as the driver sending invalid memory stats to the host. v1->v2: * Call update_balloon_stats instead of filling the buffer with invalid tags. * Add BUG_ON to update_balloon_stats to formalize the invariant that all slots in the buffer must be initialized. v2->v3: * Remove BUG_ON and
2017 Mar 28
4
[PATCH v3 0/3] virtio_balloon: don't push uninitialized buffers to stats virtqueue
This series fixes issues with variable initialization in the virtio balloon driver which manifest as the driver sending invalid memory stats to the host. v1->v2: * Call update_balloon_stats instead of filling the buffer with invalid tags. * Add BUG_ON to update_balloon_stats to formalize the invariant that all slots in the buffer must be initialized. v2->v3: * Remove BUG_ON and
2018 Apr 13
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...ile. > > > > > > > > Sorry, can you explain what you mean here? > > > > > > > > > > > > > > > > Jon > > > > > > > Spec said "Within an output buffer submitted to the > > > > > > > statsq, the device MUST > > > > > > > ignore entries with tag values that it does not > > > > > > > recognize". So exporting > > > > > > > VIRTIO_BALLOON_S_NR seems useless and device > > > > > > > implementation can...
2018 Apr 13
1
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...> Sorry, can you explain what you mean here? > > > > > > > > > > > > > > > > > > > > Jon > > > > > > > > > Spec said "Within an output buffer submitted to the > > > > > > > > > statsq, the device MUST > > > > > > > > > ignore entries with tag values that it does not > > > > > > > > > recognize". So exporting > > > > > > > > > VIRTIO_BALLOON_S_NR seems useless and device > > > > >...
2018 Mar 22
0
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...ON_S_NR 10 >>> /* >>> * Memory statistics structure. >> Not for this patch, but it looks to me that exporting such nr through uapi is fragile. > Sorry, can you explain what you mean here? > > Jon Spec said "Within an output buffer submitted to the statsq, the device MUST ignore entries with tag values that it does not recognize". So exporting VIRTIO_BALLOON_S_NR seems useless and device implementation can not depend on such number in uapi. Thanks > >> Thanks > > --------------------------------------------------------------...
2018 Mar 23
0
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...>> * Memory statistics structure. >>>> Not for this patch, but it looks to me that exporting such nr through uapi is fragile. >>> Sorry, can you explain what you mean here? >>> >>> Jon >> Spec said "Within an output buffer submitted to the statsq, the device MUST >> ignore entries with tag values that it does not recognize". So exporting >> VIRTIO_BALLOON_S_NR seems useless and device implementation can not depend >> on such number in uapi. >> >> Thanks > Suggestions? I don't like to break build for...
2017 Mar 22
0
[PATCH] virtio_balloon: don't push uninitialized buffers to stats virtqueue
...meone might come to depend on this. Doesn't look like a big deal to me. > On the other hand, this patch does not really comply with (5.5.6.3.1 > Driver Requirements: Memory Statistics): > > "Driver MUST supply the same subset of statistics in all buffers > submitted to the statsq." > > So going by the letter of the law, we should fill in actual values. > Going by the (the purpose of the initial buffer is to wait for the > host to request stats), we should push an empty buffer or invalid > values. > >> sg_init_one(&sg, vb->s...
2017 Mar 28
0
[PATCH v3 2/3] virtio-balloon: use actual number of stats for stats queue buffers
...ving update_balloon_stats return the actual number of counters, and its callers use it when pushing buffers to the stats virtqueue. Note that it is still out of spec to change the number of counters at run-time. "Driver MUST supply the same subset of statistics in all buffers submitted to the statsq." Suggested-by: Arnd Bergmann <arnd at arndb.de> Signed-off-by: Ladi Prosek <lprosek at redhat.com> --- drivers/virtio/virtio_balloon.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_b...
2018 Apr 11
0
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...t; Not for this patch, but it looks to me that exporting such nr >>>>>> through uapi is fragile. >>>>> Sorry, can you explain what you mean here? >>>>> >>>>> Jon >>>> Spec said "Within an output buffer submitted to the statsq, the >>>> device MUST >>>> ignore entries with tag values that it does not recognize". So >>>> exporting >>>> VIRTIO_BALLOON_S_NR seems useless and device implementation can not >>>> depend >>>> on such number in uapi....
2018 Apr 13
0
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...e that exporting such nr >>>>>>>> through uapi is fragile. >>>>>>> Sorry, can you explain what you mean here? >>>>>>> >>>>>>> Jon >>>>>> Spec said "Within an output buffer submitted to the statsq, the >>>>>> device MUST >>>>>> ignore entries with tag values that it does not recognize". So >>>>>> exporting >>>>>> VIRTIO_BALLOON_S_NR seems useless and device implementation can >>>>>> not depend &...
2018 Apr 13
0
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...h uapi is fragile. >>>>>>>>> Sorry, can you explain what you mean here? >>>>>>>>> >>>>>>>>> Jon >>>>>>>> Spec said "Within an output buffer submitted to the >>>>>>>> statsq, the device MUST >>>>>>>> ignore entries with tag values that it does not >>>>>>>> recognize". So exporting >>>>>>>> VIRTIO_BALLOON_S_NR seems useless and device >>>>>>>> implementation can not depe...
2017 Mar 22
2
[PATCH] virtio_balloon: don't push uninitialized buffers to stats virtqueue
When init_vqs runs, virtio_balloon.stats is either uninitialized or contains stale values. The host updates its state with garbage data because it has no way of knowing that this is just a marker buffer used for signaling. This patch initializes all tags with U16_MAX which is guaranteed to be ignored by the host. The alternative fix would be to push an empty buffer in init_vqs but that's not