Re: [EXTERNAL] Re: [Patch v7 4/5] RDMA/mana_ib: Query adapter capabilities

2023-10-17 Thread Kalesh Anakkur Purayil
On Tue, Oct 17, 2023 at 11:17 AM Ajay Sharma wrote: > > > On Oct 16, 2023, at 9:32 PM, Kalesh Anakkur Purayil < > kalesh-anakkur.pura...@broadcom.com> wrote: > >  > Hi Ajay, > > One comment in line. > > Regards, > Kalesh > > On Tue, Oct 17, 2023 at 3:42 AM wrote: > >> From: Ajay Sharma >> >> Q

RE: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib

2023-10-17 Thread Long Li
> > Do you have multiple "adapters" in one ib/eth device? > > If yes, at least for IB, it will be very unexpected to see. > > > Adapter is IB specific and one per VF/pcie device. It's the handle that is > passed > between the management and VM for book keeping. I think there are some confusions o

[RFC 08/10] hv: Track decrypted status in vmbus_gpadl

2023-10-17 Thread Rick Edgecombe
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, whic

[RFC 07/10] hv: Use free_decrypted_pages()

2023-10-17 Thread Rick Edgecombe
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, whic

[RFC 10/10] uio_hv_generic: Don't free decrypted memory

2023-10-17 Thread Rick Edgecombe
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, whic

[RFC 09/10] hv_nstvsc: Don't free decrypted memory

2023-10-17 Thread Rick Edgecombe
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, whic

RE: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib

2023-10-17 Thread Ajay Sharma
> -Original Message- > From: Leon Romanovsky > Sent: Tuesday, October 17, 2023 12:48 AM > To: Ajay Sharma > Cc: sharmaa...@linuxonhyperv.com; Long Li ; Jason > Gunthorpe ; Dexuan Cui ; Wei Liu > ; David S. Miller ; Eric Dumazet > ; Jakub Kicinski ; Paolo Abeni > ; linux-r...@vger.kernel

RE: [PATCH] hv_balloon: Add module parameter to configure balloon floor value

2023-10-17 Thread Michael Kelley (LINUX)
From: Vitaly Kuznetsov Sent: Tuesday, October 17, 2023 7:41 AM > > Angelina Vu writes: > > > Currently, the balloon floor value is automatically computed, but may be > > too small depending on app usage of memory. This patch adds a balloon_floor > > value as a module parameter that can be used

Re: [PATCH] hv_balloon: Add module parameter to configure balloon floor value

2023-10-17 Thread Vitaly Kuznetsov
Angelina Vu writes: > Currently, the balloon floor value is automatically computed, but may be > too small depending on app usage of memory. This patch adds a balloon_floor > value as a module parameter that can be used to manually configure the > balloon floor value. > > Signed-off-by: Angelina

Re: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib

2023-10-17 Thread Leon Romanovsky
On Mon, Oct 16, 2023 at 10:15:18PM +, Ajay Sharma wrote: > I have sent v7 patch series with the space removed > > > -Original Message- > > From: Leon Romanovsky > > Sent: Monday, September 18, 2023 1:29 AM > > To: Ajay Sharma > > Cc: sharmaa...@linuxonhyperv.com; Long Li ; Jason > >