[PATCH v2] tools/hv: Add memory allocation check in hv_fcopy_start

2024-08-28 Thread Zhu Jun
Added error handling for memory allocation failures of file_name and path_name. Signed-off-by: Zhu Jun --- v1->v2: Add cleanup memory tools/hv/hv_fcopy_uio_daemon.c | 12 1 file changed, 12 insertions(+) diff --git a/tools/hv/hv_fcopy_uio_daemon.c b/tools/hv/hv_fcopy_uio_d

Re: [PATCH v4] net: netvsc: Update default VMBus channels

2024-08-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 26 Aug 2024 22:16:31 -0700 you wrote: > Change VMBus channels macro (VRSS_CHANNEL_DEFAULT) in > Linux netvsc from 8 to 16 to align with Azure Windows VM > and improve networking throughput. > > For VMs having

Re: [RFC 0/7] Introduce swiotlb throttling

2024-08-28 Thread Robin Murphy
On 2024-08-28 2:03 pm, Petr Tesařík wrote: On Wed, 28 Aug 2024 13:02:31 +0100 Robin Murphy wrote: On 2024-08-22 7:37 pm, mhkelle...@gmail.com wrote: From: Michael Kelley Background == Linux device drivers may make DMA map/unmap calls in contexts that cannot block, such as in an inte

Re: [RFC 0/7] Introduce swiotlb throttling

2024-08-28 Thread Petr Tesařík
On Wed, 28 Aug 2024 16:30:04 + Michael Kelley wrote: > From: Petr Tesařík Sent: Wednesday, August 28, 2024 6:04 AM > > > > On Wed, 28 Aug 2024 13:02:31 +0100 > > Robin Murphy wrote: > > > > > On 2024-08-22 7:37 pm, mhkelle...@gmail.com wrote: > > > > From: Michael Kelley > > > > > >

RE: [RFC 0/7] Introduce swiotlb throttling

2024-08-28 Thread Michael Kelley
From: Petr Tesařík Sent: Wednesday, August 28, 2024 6:04 AM > > On Wed, 28 Aug 2024 13:02:31 +0100 > Robin Murphy wrote: > > > On 2024-08-22 7:37 pm, mhkelle...@gmail.com wrote: > > > From: Michael Kelley > > > > > > Background > > > == > > > Linux device drivers may make DMA map/unmap

RE: [PATCH v4] net: netvsc: Update default VMBus channels

2024-08-28 Thread Michael Kelley
From: Erni Sri Satya Vennela Sent: Monday, August 26, 2024 10:17 PM > > Change VMBus channels macro (VRSS_CHANNEL_DEFAULT) in > Linux netvsc from 8 to 16 to align with Azure Windows VM > and improve networking throughput. > > For VMs having less than 16 vCPUS, the channels depend > on number of

RE: [PATCH 2/2] Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic

2024-08-28 Thread Michael Kelley
From: Saurabh Singh Sengar Sent: Tuesday, August 27, 2024 11:24 AM > > On Mon, Aug 26, 2024 at 05:40:37AM +, Michael Kelley wrote: > > From: Naman Jain Sent: Sunday, August 25, > > 2024 10:32 PM > > > > > > On 8/25/2024 8:27 AM, Michael Kelley wrote: > > > > From: Naman Jain Sent: Thursda

RE: [PATCH v2] x86/hyperv: fix kexec crash due to VP assist page corruption

2024-08-28 Thread Michael Kelley
From: Anirudh Rayabharam Sent: Wednesday, August 28, 2024 4:22 AM > > commit 9636be85cc5b ("x86/hyperv: Fix hyperv_pcpu_input_arg handling when > CPUs go online/offline") introduces a new cpuhp state for hyperv > initialization. > > cpuhp_setup_state() returns the state number if state is > CPU

Re: [PATCH] x86/tdx: Enhance code generation for TDCALL and SEAMCALL wrappers

2024-08-28 Thread Edgecombe, Rick P
On Tue, 2024-06-04 at 12:34 -0700, Sean Christopherson wrote: > > If we're willing to suffer a few gnarly macros, I think we get a satisfactory > mix > of standardized arguments and explicit operands, and generate vastly better > code. Hi Sean, We are kind of stuck on improving the code generati

Re: [RFC 0/7] Introduce swiotlb throttling

2024-08-28 Thread Petr Tesařík
On Wed, 28 Aug 2024 13:02:31 +0100 Robin Murphy wrote: > On 2024-08-22 7:37 pm, mhkelle...@gmail.com wrote: > > From: Michael Kelley > > > > Background > > == > > Linux device drivers may make DMA map/unmap calls in contexts that > > cannot block, such as in an interrupt handler. Conseq

Re: [PATCH v2] x86/hyperv: fix kexec crash due to VP assist page corruption

2024-08-28 Thread Vitaly Kuznetsov
Anirudh Rayabharam writes: > From: Anirudh Rayabharam (Microsoft) > > commit 9636be85cc5b ("x86/hyperv: Fix hyperv_pcpu_input_arg handling when > CPUs go online/offline") introduces a new cpuhp state for hyperv > initialization. > > cpuhp_setup_state() returns the state number if state is > CPUH

Re: [RFC 0/7] Introduce swiotlb throttling

2024-08-28 Thread Robin Murphy
On 2024-08-22 7:37 pm, mhkelle...@gmail.com wrote: From: Michael Kelley Background == Linux device drivers may make DMA map/unmap calls in contexts that cannot block, such as in an interrupt handler. Consequently, when a DMA map call must use a bounce buffer, the allocation of swiotlb m

[PATCH v2] x86/hyperv: fix kexec crash due to VP assist page corruption

2024-08-28 Thread Anirudh Rayabharam
From: Anirudh Rayabharam (Microsoft) commit 9636be85cc5b ("x86/hyperv: Fix hyperv_pcpu_input_arg handling when CPUs go online/offline") introduces a new cpuhp state for hyperv initialization. cpuhp_setup_state() returns the state number if state is CPUHP_AP_ONLINE_DYN or CPUHP_BP_PREPARE_DYN and

Re: [PATCH] x86/hyperv: fix kexec crash due to VP assist page corruption

2024-08-28 Thread Anirudh Rayabharam
On Tue, Aug 27, 2024 at 10:32:41AM +0200, Vitaly Kuznetsov wrote: > Anirudh Rayabharam writes: > > > On Mon, Aug 26, 2024 at 02:36:44PM +0200, Vitaly Kuznetsov wrote: > >> Anirudh Rayabharam writes: > >> > >> > From: Anirudh Rayabharam (Microsoft) > >> > > >> > 9636be85cc5b ("x86/hyperv: Fix h

Re: [PATCH] tools/hv: Add memory allocation check in hv_fcopy_start

2024-08-28 Thread Praveen Kumar
On 28/08/24 15:30, Zhu Jun wrote: Added checks for `file_name` and `path_name` memory allocation failures, with error logging and process exit on failure. Signed-off-by: Zhu Jun --- tools/hv/hv_fcopy_uio_daemon.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/hv/hv_fcopy_uio_d

[PATCH] tools/hv: Add memory allocation check in hv_fcopy_start

2024-08-28 Thread Zhu Jun
Added checks for `file_name` and `path_name` memory allocation failures, with error logging and process exit on failure. Signed-off-by: Zhu Jun --- tools/hv/hv_fcopy_uio_daemon.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/hv/hv_fcopy_uio_daemon.c b/tools/hv/hv_fcopy_uio_daemon