Re: [RFC PATCH] xen/gntdev: reduce stack usage by dynamically allocating gntdev_copy_batch

2025-07-03 Thread Christophe JAILLET
Le 03/07/2025 à 07:22, Jürgen Groß a écrit : On 03.07.25 00:42, Tu Dinh wrote: On 01/07/2025 23:53, Abinash wrote: Hi , Thanks for pointing that out. I haven’t measured the performance impact yet — my main focus was on getting rid of the stack usage warning triggered by LLVM due to inlining.

Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script

2024-11-15 Thread Christophe JAILLET
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit : > Suggested-by: Anna-Maria Behnsen > Signed-off-by: Easwar Hariharan > --- > scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/scripts/coccinelle/misc/secs_to_jiffies.

Re: [PATCH] xen-netback: Use seq_putc() in xenvif_dump_hash_info()

2024-07-15 Thread Christophe JAILLET
Le 15/07/2024 à 18:01, Jakub Kicinski a écrit : On Sat, 13 Jul 2024 15:18:42 +0200 Markus Elfring wrote: Single characters (line breaks) should be put into a sequence. Thus use the corresponding function “seq_putc”. This issue was transformed by using the Coccinelle software. I prefer to only

[PATCH] xen/manage: Constify struct shutdown_handler

2024-06-23 Thread Christophe JAILLET
391e9f drivers/xen/manage.o After: = textdata bss dec hex filename 7164 676 878481ea8 drivers/xen/manage.o Signed-off-by: Christophe JAILLET --- Compile tested-only --- drivers/xen/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 28/30] x86/xen: Use kstrtobool() instead of strtobool()

2022-11-01 Thread Christophe JAILLET
strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET --- This patch

Re: [PATCH v2] xen-blkfront: Use the bitmap API when applicable

2021-12-14 Thread Christophe JAILLET
Le 14/12/2021 à 12:08, Roger Pau Monné a écrit : On Tue, Dec 14, 2021 at 11:59:39AM +0100, Roger Pau Monné wrote: On Thu, Dec 02, 2021 at 09:16:04PM +0100, Christophe JAILLET wrote: Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in

Re: [PATCH] xen-blkfront: Use the bitmap API when applicable

2021-12-03 Thread Christophe JAILLET
Le 03/12/2021 à 22:04, Boris Ostrovsky a écrit : On 12/3/21 10:54 AM, Christophe JAILLET wrote: Le 03/12/2021 à 04:03, Joe Perches a écrit : I get your point now, and I agree with you. Maybe something as what is done in mc-entity.c? Explicitly require more bits (which will be allocated

Re: [PATCH] xen-blkfront: Use the bitmap API when applicable

2021-12-03 Thread Christophe JAILLET
Le 03/12/2021 à 04:03, Joe Perches a écrit : On Thu, 2021-12-02 at 20:07 +0100, Christophe JAILLET wrote: Le 02/12/2021 à 19:16, Joe Perches a écrit : On Thu, 2021-12-02 at 19:12 +0100, Christophe JAILLET wrote: Le 02/12/2021 à 07:12, Juergen Gross a écrit : On 01.12.21 22:10, Christophe

[PATCH v2] xen-blkfront: Use the bitmap API when applicable

2021-12-02 Thread Christophe JAILLET
Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in allocator arguments. Also change the corresponding 'kfree()' into 'bitmap_free()' to keep consistency. Use 'bitmap_copy()' to avoid an explicit '

Re: [PATCH] xen-blkfront: Use the bitmap API when applicable

2021-12-02 Thread Christophe JAILLET
Le 02/12/2021 à 19:16, Joe Perches a écrit : On Thu, 2021-12-02 at 19:12 +0100, Christophe JAILLET wrote: Le 02/12/2021 à 07:12, Juergen Gross a écrit : On 01.12.21 22:10, Christophe JAILLET wrote: Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some

Re: [PATCH] xen-blkfront: Use the bitmap API when applicable

2021-12-02 Thread Christophe JAILLET
Le 02/12/2021 à 07:12, Juergen Gross a écrit : On 01.12.21 22:10, Christophe JAILLET wrote: Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in allocator arguments. Also change the corresponding 'kfree()' into &#x

[PATCH] xen-blkfront: Use the bitmap API when applicable

2021-12-01 Thread Christophe JAILLET
Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid some open-coded arithmetic in allocator arguments. Also change the corresponding 'kfree()' into 'bitmap_free()' to keep consistency. Use 'bitmap_copy()' to avoid an explicit '

[PATCH] xen/pvcalls-back: Remove redundant 'flush_workqueue()' calls

2021-10-14 Thread Christophe JAILLET
e(E); Signed-off-by: Christophe JAILLET --- drivers/xen/pvcalls-back.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/xen/pvcalls-back.c b/drivers/xen/pvcalls-back.c index b47fd8435061..d6f945fd4147 100644 --- a/drivers/xen/pvcalls-back.c +++ b/drivers/xen/pvcalls-back.c @@ -465,7