Re: [PATCH V3 4/6] vDPA: !FEATURES_OK should not block querying device config space

2022-08-01 Thread Jason Wang
On Tue, Aug 2, 2022 at 6:58 AM Si-Wei Liu wrote: > > > > On 8/1/2022 3:53 PM, Si-Wei Liu wrote: > > > > > > On 7/31/2022 9:44 PM, Jason Wang wrote: > >> > >> 在 2022/7/30 04:55, Si-Wei Liu 写道: > >>> > >>> > >>> On 7/28/2022 7:04 PM, Zhu, Lingshan wrote: > > > On 7/29/2022 5:48 AM, Si

Re: [RFC PATCH v2 0/9] vsock: updates for SO_RCVLOWAT handling

2022-08-01 Thread Vishnu Dasa via Virtualization
> On Jul 27, 2022, at 5:37 AM, Stefano Garzarella wrote: > > Hi Arseniy, > > On Mon, Jul 25, 2022 at 07:54:05AM +, Arseniy Krasnov wrote: >> Hello, >> >> This patchset includes some updates for SO_RCVLOWAT: >> >> 1) af_vsock: >> During my experiments with zerocopy receive, i found, that

Re: [RFC PATCH v2 0/9] vsock: updates for SO_RCVLOWAT handling

2022-08-01 Thread Vishnu Dasa via Virtualization
> On Jul 27, 2022, at 11:08 PM, Arseniy Krasnov > wrote: > > On 27.07.2022 15:37, Stefano Garzarella wrote: >> Hi Arseniy, >> >> On Mon, Jul 25, 2022 at 07:54:05AM +, Arseniy Krasnov wrote: >>> Hello, >>> >>> This patchset includes some updates for SO_RCVLOWAT: >>> >>> 1) af_vsock: >>>

Re: [PATCH V3 4/6] vDPA: !FEATURES_OK should not block querying device config space

2022-08-01 Thread Si-Wei Liu
On 8/1/2022 3:53 PM, Si-Wei Liu wrote: On 7/31/2022 9:44 PM, Jason Wang wrote: 在 2022/7/30 04:55, Si-Wei Liu 写道: On 7/28/2022 7:04 PM, Zhu, Lingshan wrote: On 7/29/2022 5:48 AM, Si-Wei Liu wrote: On 7/27/2022 7:43 PM, Zhu, Lingshan wrote: On 7/28/2022 8:56 AM, Si-Wei Liu wrote:

Re: [PATCH V3 4/6] vDPA: !FEATURES_OK should not block querying device config space

2022-08-01 Thread Si-Wei Liu
On 7/31/2022 9:44 PM, Jason Wang wrote: 在 2022/7/30 04:55, Si-Wei Liu 写道: On 7/28/2022 7:04 PM, Zhu, Lingshan wrote: On 7/29/2022 5:48 AM, Si-Wei Liu wrote: On 7/27/2022 7:43 PM, Zhu, Lingshan wrote: On 7/28/2022 8:56 AM, Si-Wei Liu wrote: On 7/27/2022 4:47 AM, Zhu, Lingshan wro

Re: [PATCH v6 1/2] Create debugfs file with virtio balloon usage information

2022-08-01 Thread David Hildenbrand
>>> + >>> + if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM)) >>> + num_pages = -num_pages; >> With VIRTIO_BALLOON_F_DEFLATE_ON_OOM this will now always report "0". >> >> which would be the same as "num_pages = 0;" and would deserve a comment >> explaining why we don't

[PATCH v1 1/1] iommu/virtio: Do not dereference fwnode in struct device

2022-08-01 Thread Andy Shevchenko
In order to make the underneath API easier to change in the future, prevent users from dereferencing fwnode from struct device. Instead, use the specific device_match_fwnode() API for that. Signed-off-by: Andy Shevchenko --- drivers/iommu/virtio-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v6 1/2] Create debugfs file with virtio balloon usage information

2022-08-01 Thread David Hildenbrand
On 26.07.22 16:08, Alexander Atanasov wrote: > Allow the guest to know how much it is ballooned by the host > and how that memory is accounted. > > It is useful when debugging out of memory conditions, > as well for userspace processes that monitor the memory pressure > and for nested virtualizati

Re: [PATCH v6 2/2] Unify how inflated memory is accounted in virtio balloon driver

2022-08-01 Thread David Hildenbrand
On 26.07.22 16:10, Alexander Atanasov wrote: > Always account inflated memory as used for both cases - with and > without deflate on oom. Do not change total ram which can confuse > userspace and users. Sorry, but NAK. This would affect existing users / user space / balloon stats. For example HV