Re: [PATCH v4 12/14] xen/asm-generic: introduce stub header softirq.h

2023-11-27 Thread Oleksii
On Mon, 2023-11-27 at 15:36 +0100, Jan Beulich wrote: > On 27.11.2023 15:13, Oleksii Kurochko wrote: > > is common between Arm, PPC and RISC-V so it is > > moved to asm-generic. > > > > Drop Arm and PPC's softirq.h and use asm-generic version instead. > > &g

Re: [PATCH v4 13/14] xen: ifdef inclusion of in

2023-11-27 Thread Oleksii
On Mon, 2023-11-27 at 15:41 +0100, Jan Beulich wrote: > On 27.11.2023 15:13, Oleksii Kurochko wrote: > > --- a/xen/arch/ppc/include/asm/grant_table.h > > +++ /dev/null > > @@ -1,5 +0,0 @@ > > -/* SPDX-License-Identifier: GPL-2.0-only */ > > -#ifndef __ASM

[PATCH v4 05/14] xen/asm-generic: introduce stub header

2023-11-27 Thread Oleksii Kurochko
is common for Arm, PPC and RISC-V thereby it is moved to asm-generic. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich Acked-by: Julien Grall --- Changes in V4: - Added Reviewed-by: Jan Beulich - Added Acked-by: Julien Grall --- Changes in V3: - Drop Arm and PPC's random.h

[PATCH v4 13/14] xen: ifdef inclusion of in

2023-11-27 Thread Oleksii Kurochko
. is #ifdef-ed with CONFIG_GRANT_TABLE in so in case of !CONFIG_GRANT_TABLE gnttab_dom0_frames won't be available for use in arch/arm/domain_build.c. Suggested-by: Jan Beulich Signed-off-by: Oleksii Kurochko --- Changes in V4: - Nothing changed. Only rebase. --- Changes in V3: - Remove unnecessary

[PATCH v4 07/14] xen/asm-generic: introduce generalized hardirq.h

2023-11-27 Thread Oleksii Kurochko
is common through archs thereby it is moved to asm-generic. Arm and PPC were switched to asm generic verstion of hardirq.h. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich Acked-by: Julien Grall --- Changes in V4: - Added Reviewed-by: Jan Beulich . - Added Acked-by: Julien Grall

[PATCH v4 11/14] xen/asm-generic: introduce stub header numa.h

2023-11-27 Thread Oleksii Kurochko
is common through some archs so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko Reviewed-by: Michal Orzel --- Changes in V4: - Updated guards name: *ARCH_GENERIC* -> *ASM_GENERIC*. - Moved inclusion of xen/mm-frame.h under "#ifndef CONFIG_NUMA". - Added Reviewed-by:

[PATCH v4 09/14] xen/asm-generic: introduce generic header altp2m.h

2023-11-27 Thread Oleksii Kurochko
is common between several archs so it is moved to asm-generic. Arm and PPC were switched to asm-generic version of altp2m.h. Signed-off-by: Oleksii Kurochko Acked-by: Michal Orzel Acked-by: Jan Beulich --- Michal asked the following: Shouldn't this copyright be moved to generic header

[PATCH v4 14/14] xen/asm-generic: ifdef inclusion of

2023-11-27 Thread Oleksii Kurochko
Beulich Signed-off-by: Oleksii Kurochko --- Changes in V4: - Nothing changed. Only rebase. --- Changes in V3: - Remove unnecessary comment. --- xen/arch/arm/p2m.c| 1 + xen/arch/arm/traps.c | 1 + xen/arch/ppc/include/asm/mem_access.h | 5 - xen/include/xen

[PATCH v4 02/14] xen/asm-generic: introduce generic device.h

2023-11-27 Thread Oleksii Kurochko
. - #ifdef-ing iommu related things with CONFIG_HAS_PASSTHROUGH. Also Arm and PPC are switched to asm-generic version of device.h Signed-off-by: Oleksii Kurochko --- Changes in V4: - Updated the commit message - Switched Arm and PPC to asm-generic version of device.h - Replaced HAS_PCI

[PATCH v4 03/14] xen/asm-generic: introduce generic hypercall.h

2023-11-27 Thread Oleksii Kurochko
Introduce an empty generic hypercall.h for archs which don't implement it. Drop PPC's hypercall.h and switch to generic one instead. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- Changes in V4: - Nothing changed. Only rebase. --- Changes in V3: - Drop PPC's hypercall.h and switch

[PATCH v4 10/14] xen/asm-generic: introduce stub header monitor.h

2023-11-27 Thread Oleksii Kurochko
The header is shared between several archs so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich . --- Changes in V4: - Removed the double blank line. - Added Acked-by: Jan Beulich . - Update the commit message --- Changes in V3: - Use forward-declaration

[PATCH v4 12/14] xen/asm-generic: introduce stub header softirq.h

2023-11-27 Thread Oleksii Kurochko
is common between Arm, PPC and RISC-V so it is moved to asm-generic. Drop Arm and PPC's softirq.h and use asm-generic version instead. Signed-off-by: Oleksii Kurochko Reviewed-by: Michal Orzel Added Acked-by: Jan Beulich --- Changes in V4: - Added Reviewed-by: Michal Orzel - Added Acked

[PATCH v4 08/14] xen/asm-generic: introduce generic div64.h header

2023-11-27 Thread Oleksii Kurochko
All archs have the do_div implementation for BITS_PER_LONG == 64 so do_div64.h is moved to asm-generic. x86 and PPC were switched to asm-generic version of div64.h. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- Changes in V4: - Added Acked-by: Jan Beulich . - include in Arm's

[PATCH v4 04/14] xen/asm-generic: introduce generic header iocap.h

2023-11-27 Thread Oleksii Kurochko
iocap.h is common for Arm, PPC and RISC-V architectures thereby it was moved to asm-generic. Also Arm and PPC were switched to asm-generic version of iocap.h. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich Acked-by: Julien Grall --- Changes in V4: - Added Reviewed-by: Jan

[PATCH v4 01/14] xen/asm-generic: introduce stub header paging.h

2023-11-27 Thread Oleksii Kurochko
architectures are switched to generic paging.h header. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich Acked-by: Julien Grall --- Changes in V4: - Added Acked-by: Julien Grall . --- Changes in V3: - Sort xen/arch/{arm,ppc}/include/asm/Makefile alphabetically. - Add Reviewed-by: Jan Beulich

[PATCH v4 00/14] Introduce generic headers

2023-11-27 Thread Oleksii Kurochko
ssary in the future ) - [PATCH v1 28/29] xen/asm-generic: introduce stub header p2m.h ( probably not so generic as I expected, I'll back to it if it will be necessary in the future ) - For the rest of the patches please look at changes for each patch separately. --- Oleksii Kurochko (14

[PATCH v4 06/14] xen/asm-generic: introduce generic header percpu.h

2023-11-27 Thread Oleksii Kurochko
a place where is included in because asm-generic version of percpu.h started to include which requires definition of DECLARE_PER_CPU. As well the patch switches Arm, PPC and x86 architectures to use asm-generic version of percpu.h. Signed-off-by: Oleksii Kurochko Acked-by: Julien Grall

Re: [PATCH v3 09/14] xen/asm-generic: introduce generic header altp2m.h

2023-11-27 Thread Oleksii
On Fri, 2023-11-24 at 14:18 +0100, Jan Beulich wrote: > On 24.11.2023 14:00, Michal Orzel wrote: > > On 17/11/2023 13:24, Oleksii Kurochko wrote: > > > --- a/xen/arch/arm/include/asm/altp2m.h > > > +++ /dev/null > > > @@ -1,39 +0,0 @@ > > > -/* > >

Re: [PATCH v3 11/14] xen/asm-generic: introduce stub header numa.h

2023-11-27 Thread Oleksii
Hello Michal, On Fri, 2023-11-24 at 14:03 +0100, Michal Orzel wrote: > > On 17/11/2023 13:24, Oleksii Kurochko wrote: > > > > > > is common through some archs so it is moved > > to asm-generic. > > > > Signed-off-by: Oleksii Kurochko > >

Re: [PATCH v2] xen: remove

2023-11-27 Thread Oleksii
Hello Shawn, Could you kindly review the patch when you have a moment? It can help with merging other patch series. Thanks in advance. ~ Oleksii On Tue, 2023-10-31 at 16:28 +0200, Oleksii Kurochko wrote: > only declares udelay() function so udelay() > declaration was moved to xen/d

Re: [PATCH v3 02/14] xen/asm-generic: introduce generic device.h

2023-11-24 Thread Oleksii
On Fri, 2023-11-24 at 11:01 +, Julien Grall wrote: > Hi Oleksii, > > On 17/11/2023 12:24, Oleksii Kurochko wrote: > > Arm, PPC and RISC-V use the same device.h thereby device.h > > was moved to asm-generic. > > I read "was moved" as the patch sho

Re: [PATCH v3 08/14] xen/asm-generic: introduce generic div64.h header

2023-11-24 Thread Oleksii
Hi Julien, On Fri, 2023-11-24 at 11:29 +, Julien Grall wrote: > Hi, > > On 17/11/2023 12:24, Oleksii Kurochko wrote: > > All archs have the do_div implementation for BITS_PER_LONG == 64 > > so do_div64.h is moved to asm-generic. > > You are saying "all archs&

[PATCH v2 30/39] xen/riscv: define an address of frame table

2023-11-24 Thread Oleksii Kurochko
Also the patchs adds some helpful macros. Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/config.h | 21 + 1 file changed, 21 insertions(+) diff --git a/xen/arch/riscv/include/asm/config.h b/xen/arch/riscv

[PATCH v2 39/39] xen: fix compilation issue of serial.c

2023-11-24 Thread Oleksii Kurochko
it was added an inclusion of the header to serial.c. Signed-off-by: Oleksii Kurochko --- Changes in V2: - New commit introduced in V2 --- xen/drivers/char/serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/drivers/char/serial.c b/xen/drivers/char/serial.c index 00efe69574..35df58fe33 100644

[PATCH v2 35/39] xen: add necessary headers to common to build full Xen for RISC-V

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/include/xen/domain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/include/xen/domain.h b/xen/include/xen/domain.h index 54d88bf5e3..a4e11342e3 100644 --- a/xen/include/xen/domain.h +++ b/xen

[PATCH v2 25/39] xen/riscv: introduce asm/p2m.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/p2m.h | 105 +++ 1 file changed, 105 insertions(+) create mode 100644 xen/arch/riscv/include/asm/p2m.h diff --git a/xen/arch/riscv/include/asm/p2m.h b

[PATCH v2 32/39] xen/riscv: add minimal stuff to asm/page.h to build full Xen

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/page.h | 21 + 1 file changed, 21 insertions(+) diff --git a/xen/arch/riscv/include/asm/page.h b/xen/arch/riscv/include/asm/page.h index 95074e29b3..abbae75aaf

[PATCH v2 29/39] xen/riscv: add definition of __read_mostly

2023-11-24 Thread Oleksii Kurochko
The definition of __read_mostly should be removed in: https://lore.kernel.org/xen-devel/f25eb5c9-7c14-6e23-8535-2c66772b3...@suse.com/ The patch introduces it in arch-specific header to not block enabling of full Xen build for RISC-V. Signed-off-by: Oleksii Kurochko --- - update the commit

[PATCH v2 33/39] xen/riscv: add minimal stuff to asm/processor.h to build full Xen

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/processor.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/xen/arch/riscv/include/asm/processor.h b/xen/arch/riscv/include/asm/processor.h index 6db681d805

[PATCH v2 26/39] xen/riscv: introduce asm/regs.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - change xen/lib.h to xen/bug.h - remove unnecessary empty line --- xen/arch/riscv/include/asm/regs.h | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 xen/arch/riscv/include/asm/regs.h diff --git a/xen

[PATCH v2 20/39] xen/riscv: define bug frame tables in xen.lds.S

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/xen.lds.S | 10 ++ 1 file changed, 10 insertions(+) diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S index 3fa7db3bf9..a10e0ad87c 100644 --- a/xen/arch/riscv/xen.lds.S

[PATCH v2 37/39] xen/rirscv: add minimal amount of stubs to build full Xen

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - define udelay stub - remove 'select HAS_PDX' from RISC-V Kconfig because of https://lore.kernel.org/xen-devel/20231006144405.1078260-1-andrew.coop...@citrix.com/ --- xen/arch/riscv/Makefile | 1 + xen/arch/riscv/early_printk.c

[PATCH v2 36/39] xen/riscv: add minimal stuff to asm/mm.h to build full Xen

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - define stub for arch_get_dma_bitsize(void) --- xen/arch/riscv/include/asm/mm.h | 270 +++- 1 file changed, 268 insertions(+), 2 deletions(-) diff --git a/xen/arch/riscv/include/asm/mm.h b/xen/arch/riscv/include

[PATCH v2 34/39] xen: add RISCV support for pmu.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/include/public/pmu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/public/pmu.h b/xen/include/public/pmu.h index 5a176b6ac3..af8b7babdd 100644 --- a/xen/include/public/pmu.h +++ b/xen

[PATCH v2 24/39] xen/riscv: introduce asm/irq.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - add ifdef CONFIG_HAS_DEVICE_TREE for things that shouldn't be in case !CONFIG_HAS_DEVICE_TREE - use proper includes. --- xen/arch/riscv/include/asm/irq.h | 37 1 file changed, 37

[PATCH v2 31/39] xen/riscv: add required things to asm/current.h

2023-11-24 Thread Oleksii Kurochko
Add minimal requied things to be able to build full Xen. Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/current.h | 20 1 file changed, 20 insertions(+) diff --git a/xen/arch/riscv/include/asm/current.h b

[PATCH v2 23/39] xen/riscv: introduce asm/guest_access.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - change xen/mm.h to xen/types.h --- xen/arch/riscv/include/asm/guest_access.h | 29 +++ 1 file changed, 29 insertions(+) create mode 100644 xen/arch/riscv/include/asm/guest_access.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 21/39] xen/riscv: introduce bit operations

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/Makefile| 1 + xen/arch/riscv/lib/Makefile| 1 + xen/arch/riscv/lib/find_next_bit.c | 278 + 3 files changed, 280 insertions(+) create mode

[PATCH v2 38/39] xen/riscv: enable full Xen build

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/Makefile | 16 +++- xen/arch/riscv/arch.mk | 4 xen/arch/riscv/configs/tiny64_defconfig | 1 - 3 files changed, 15 insertions(+), 6 deletions

[PATCH v2 22/39] xen/riscv: introduce asm/domain.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/domain.h | 43 + 1 file changed, 43 insertions(+) create mode 100644 xen/arch/riscv/include/asm/domain.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 14/39] xen/riscv: introduce bitops.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/bitops.h | 288 1 file changed, 288 insertions(+) create mode 100644 xen/arch/riscv/include/asm/bitops.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 28/39] xen/riscv: introduce asm/event.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/event.h | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 xen/arch/riscv/include/asm/event.h diff --git a/xen/arch/riscv/include/asm/event.h

[PATCH v2 27/39] xen/riscv: introduce asm/time.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - change xen/lib.h to xen/bug.h - remove inclusion of as it's not needed. --- xen/arch/riscv/include/asm/time.h | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 xen/arch/riscv/include/asm/time.h diff --git

[PATCH v2 18/39] xen/riscv: introduce cmpxchg.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - update the comment at the top of the header. - change xen/lib.h to xen/bug.h. - sort inclusion of headers properly. --- xen/arch/riscv/include/asm/cmpxchg.h | 379 +++ 1 file changed, 379

[PATCH v2 16/39] xen/riscv: introduce asm/smp.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/smp.h | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 xen/arch/riscv/include/asm/smp.h diff --git a/xen/arch/riscv/include/asm/smp.h b/xen/arch

[PATCH v2 13/39] xen/riscv: introduce asm/system.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/system.h | 79 + 1 file changed, 79 insertions(+) create mode 100644 xen/arch/riscv/include/asm/system.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 07/39] xen/riscv: introduce arch-riscv/hvm/save.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - remove copyright an the top of hvm/save.h as the header write now is a newly introduced empty header. --- xen/include/public/arch-riscv/hvm/save.h | 20 xen/include/public/hvm/save.h| 2 ++ 2 files changed

[PATCH v2 11/39] xen/riscv: introduce asm/nospec.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/nospec.h | 25 + 1 file changed, 25 insertions(+) create mode 100644 xen/arch/riscv/include/asm/nospec.h diff --git a/xen/arch/riscv/include/asm/nospec.h

[PATCH v2 09/39] xen/riscv: introduce asm/guest_atomics.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/guest_atomics.h | 48 ++ 1 file changed, 48 insertions(+) create mode 100644 xen/arch/riscv/include/asm/guest_atomics.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 05/39] xen/riscv: introduce spinlock.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - update definition of arch_lock_signal() to not violate cod style. - update definition of arch_lock_signal_wmb() to use WMB aspect. --- xen/arch/riscv/include/asm/spinlock.h | 15 +++ 1 file changed, 15 insertions(+) create mode

[PATCH v2 03/39] xen/riscv:introduce asm/byteorder.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/byteorder.h | 16 1 file changed, 16 insertions(+) create mode 100644 xen/arch/riscv/include/asm/byteorder.h diff --git a/xen/arch/riscv/include/asm/byteorder.h

[PATCH v2 19/39] xen/riscv: introduce asm/io.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/io.h | 134 1 file changed, 134 insertions(+) create mode 100644 xen/arch/riscv/include/asm/io.h diff --git a/xen/arch/riscv/include/asm/io.h b

[PATCH v2 17/39] xen/riscv: introduce asm/atomic.h

2023-11-24 Thread Oleksii Kurochko
From: Bobby Eshleman Signed-off-by: Oleksii Kurochko --- Changes in V2: - Change an author of commit. I got this header from Bobby's old repo. --- xen/arch/riscv/include/asm/atomic.h | 375 1 file changed, 375 insertions(+) create mode 100644 xen/arch/riscv

[PATCH v2 15/39] xen/riscv: introduce flushtlb.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/flushtlb.h | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 xen/arch/riscv/include/asm/flushtlb.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 12/39] xen/riscv: introduce asm/setup.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/setup.h | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 xen/arch/riscv/include/asm/setup.h diff --git a/xen/arch/riscv/include/asm/setup.h b/xen/arch/riscv/include

[PATCH v2 08/39] xen/riscv: introduce asm/cpufeature.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/cpufeature.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 xen/arch/riscv/include/asm/cpufeature.h diff --git a/xen/arch/riscv/include/asm

[PATCH v2 10/39] xen/riscv: introduce asm/iommu.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/iommu.h | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 xen/arch/riscv/include/asm/iommu.h diff --git a/xen/arch/riscv/include/asm/iommu.h b/xen/arch/riscv

[PATCH v2 00/39] Enable build of full Xen for RISC-V

2023-11-24 Thread Oleksii Kurochko
Eshleman (1): xen/riscv: introduce asm/atomic.h Oleksii Kurochko (38): xen/riscv: disable unnecessary configs xen/riscv: use some asm-generic headers xen/riscv:introduce asm/byteorder.h xen/riscv: add public arch-riscv.h xen/riscv: introduce spinlock.h xen/riscv: introduce fence.h

[PATCH v2 06/39] xen/riscv: introduce fence.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/fence.h | 12 1 file changed, 12 insertions(+) create mode 100644 xen/arch/riscv/include/asm/fence.h diff --git a/xen/arch/riscv/include/asm/fence.h b/xen/arch/riscv

[PATCH v2 02/39] xen/riscv: use some asm-generic headers

2023-11-24 Thread Oleksii Kurochko
Some headers are the same as asm-generic verions of them so use them instead of arch-specific headers. Signed-off-by: Oleksii Kurochko --- Changes in V2: - New commit introduced in V2. --- xen/arch/riscv/include/asm/Makefile | 14 ++ 1 file changed, 14 insertions(+) create mode

[PATCH v2 04/39] xen/riscv: add public arch-riscv.h

2023-11-24 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V2: - align with arch-arm.h. --- xen/include/public/arch-riscv.h | 93 + xen/include/public/xen.h| 2 + 2 files changed, 95 insertions(+) create mode 100644 xen/include/public/arch-riscv.h diff --git

[PATCH v2 01/39] xen/riscv: disable unnecessary configs

2023-11-24 Thread Oleksii Kurochko
The patch also fixes the build script as conf util expects to have each config on separate line. Signed-off-by: Oleksii Kurochko --- Changes in V2: - update the commit message. - remove xen/arch/riscv/Kconfig changes. --- automation/gitlab-ci/build.yaml | 122

Re: [PATCH v3 06/14] xen/asm-generic: introduce generic header percpu.h

2023-11-21 Thread Oleksii
On Tue, 2023-11-21 at 16:56 +0100, Jan Beulich wrote: > On 17.11.2023 13:24, Oleksii Kurochko wrote: > > --- a/xen/arch/ppc/include/asm/current.h > > +++ b/xen/arch/ppc/include/asm/current.h > > @@ -4,6 +4,8 @@ > >   > >  #include > >   > &g

Re: [PATCH v3 02/14] xen/asm-generic: introduce generic device.h

2023-11-21 Thread Oleksii
On Tue, 2023-11-21 at 16:43 +0100, Jan Beulich wrote: > On 17.11.2023 13:24, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/include/asm-generic/device.h > > @@ -0,0 +1,147 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef __AS

Re: Interest in Release Manager Role

2023-11-21 Thread Oleksii
Hello Henry and Kelly, On Tue, 2023-11-21 at 01:48 +, Henry Wang wrote: > Hi Oleksii, > > > On Nov 20, 2023, at 22:06, Oleksii > > wrote: > > > > Dear Xen Community, > > > > I am keen on stepping into the role of a Release Manager for our >

Interest in Release Manager Role

2023-11-20 Thread Oleksii
Dear Xen Community, I am keen on stepping into the role of a Release Manager for our next release. Despite not having direct experience yet, I am eager to learn, adapt, and grow into this role with your guidance and support. Have a nice week. Best regards, Oleksii

[PATCH v3 10/14] xen/asm-generic: introduce stub header monitor.h

2023-11-17 Thread Oleksii Kurochko
The header is shared between archs so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Use forward-declaration of struct domain instead of " #include ". - Add ' include ' - Drop PPC's monitor.h. --- Changes in V2: - remove inclusion of

[PATCH v3 14/14] xen/asm-generic: ifdef inclusion of

2023-11-17 Thread Oleksii Kurochko
Beulich Signed-off-by: Oleksii Kurochko --- Changes in V3: - Remove unnecessary comment. --- xen/arch/arm/p2m.c| 1 + xen/arch/arm/traps.c | 1 + xen/arch/ppc/include/asm/mem_access.h | 5 - xen/include/xen/mem_access.h | 2 ++ 4 files changed, 4

[PATCH v3 12/14] xen/asm-generic: introduce stub header softirq.h

2023-11-17 Thread Oleksii Kurochko
is common between Arm, PPC and RISC-V so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop Arm and PPC's softirq.h - Update the commit message. --- Changes in V2: - update the commit message. --- xen/arch/arm/include/asm/Makefile

[PATCH v3 07/14] xen/asm-generic: introduce generalized hardirq.h

2023-11-17 Thread Oleksii Kurochko
is common through archs thereby it is moved to asm-generic. Arm and PPC were switched to asm generic verstion of hardirq.h. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop Arm and PPC's hardirq.h - Update the commit message. --- Changes in V2: - add #include

[PATCH v3 06/14] xen/asm-generic: introduce generic header percpu.h

2023-11-17 Thread Oleksii Kurochko
a place where is included in because asm-generic version of percpu.h started to include which requires definition of DECLARE_PER_CPU. As well the patch switches Arm, PPC and x86 architectures to use asm-generic version of percpu.h. Signed-off-by: Oleksii Kurochko --- Changes in V3: - switch

[PATCH v3 01/14] xen/asm-generic: introduce stub header paging.h

2023-11-17 Thread Oleksii Kurochko
architectures are switched to generic paging.h header. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich --- Changes in V3: - Sort xen/arch/{arm,ppc}/include/asm/Makefile alphabetically. - Add Reviewed-by: Jan Beulich --- Changes in V2: - evaluate argument of macros - covert

[PATCH v3 04/14] xen/asm-generic: introduce generic header iocap.h

2023-11-17 Thread Oleksii Kurochko
iocap.h is common for Arm, PPC and RISC-V architectures thereby it was moved to asm-generic. Also Arm and PPC were switched to asm-generic version of iocap.h. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop Arm and PPC's iocap.h and switch to asm-generic's version. - Update

[PATCH v3 00/14] Introduce generic headers

2023-11-17 Thread Oleksii Kurochko
at changes for each patch separately. Oleksii Kurochko (14): xen/asm-generic: introduce stub header paging.h xen/asm-generic: introduce generic device.h xen/asm-generic: introduce generic hypercall.h xen/asm-generic: introduce generic header iocap.h xen/asm-generic: introduce stub header

[PATCH v3 09/14] xen/asm-generic: introduce generic header altp2m.h

2023-11-17 Thread Oleksii Kurochko
is common between archs so it is moved to asm-generic. Arm and PPC were switched to asm-generic version of altp2m.h. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop Arm and PPC's altp2m.h - Update the commit message. --- Changes in V2: - change uint16_t to unsigned int

[PATCH v3 13/14] xen: ifdef inclusion of in

2023-11-17 Thread Oleksii Kurochko
. is #ifdef-ed with CONFIG_GRANT_TABLE in so in case of !CONFIG_GRANT_TABLE gnttab_dom0_frames won't be available for use in arch/arm/domain_build.c. Suggested-by: Jan Beulich Signed-off-by: Oleksii Kurochko --- Changes in V3: - Remove unnecessary comment. --- xen/arch/arm/domain_build.c

[PATCH v3 11/14] xen/asm-generic: introduce stub header numa.h

2023-11-17 Thread Oleksii Kurochko
is common through some archs so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Remove old header inclusion in asm-generic numa.h and include and - Drop Arm and PPC's numa.h and use asm-generic version instead. --- Changes in V2: - update

[PATCH v3 05/14] xen/asm-generic: introduce stub header

2023-11-17 Thread Oleksii Kurochko
is common for Arm, PPC and RISC-V thereby it is moved to asm-generic. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop Arm and PPC's random.h and switch to asm-generic verison. --- Changes in V2: - update the commit messages --- xen/arch/arm/include/asm/Makefile | 1 + xen/arch/arm

[PATCH v3 08/14] xen/asm-generic: introduce generic div64.h header

2023-11-17 Thread Oleksii Kurochko
All archs have the do_div implementation for BITS_PER_LONG == 64 so do_div64.h is moved to asm-generic. x86 and PPC were switched to asm-generic version of div64.h. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Drop x86 and PPC's div64.h. - Update the commit message. --- Changes in V2

[PATCH v3 03/14] xen/asm-generic: introduce generic hypercall.h

2023-11-17 Thread Oleksii Kurochko
Introduce an empty generic hypercall.h for archs which don't implement it. Drop PPC's hypercall.h and switch to generic one instead. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- Changes in V3: - Drop PPC's hypercall.h and switch to generic one. - Update the commit message - Add

[PATCH v3 02/14] xen/asm-generic: introduce generic device.h

2023-11-17 Thread Oleksii Kurochko
. Signed-off-by: Oleksii Kurochko --- It is still open question if device.h should be in asm-generic. Need more opinions. --- Changes in V3: - ifdef device tree related things. - update the commit message --- Changes in V2: - take ( as common ) device.h from Arm as PPC and RISC-V use

Re: [PATCH v2 09/15] xen/asm-generic: introduce generic header smp.h

2023-11-17 Thread Oleksii
I will drop this patch as it will be hard to make it generic for Arm, PPC and RISC-V. ~ Oleksii On Fri, 2023-11-10 at 18:30 +0200, Oleksii Kurochko wrote: > is expcted to be generic between Arm, PPC and RISC-V > there by it is moved to asm-generic. > > Right now it is common

Re: [PATCH v2 08/15] xen/asm-generic: introduce generic header percpu.h

2023-11-17 Thread Oleksii
On Thu, 2023-11-16 at 13:28 +0100, Jan Beulich wrote: > On 16.11.2023 13:04, Oleksii wrote: > > On Thu, 2023-11-16 at 08:36 +0100, Jan Beulich wrote: > > > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > > > --- /dev/null > > > > +++ b/xen/include/

Re: [PATCH v2 08/15] xen/asm-generic: introduce generic header percpu.h

2023-11-16 Thread Oleksii
On Thu, 2023-11-16 at 08:36 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/include/asm-generic/percpu.h > > @@ -0,0 +1,35 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef __AS

Re: [PATCH v2 08/15] xen/asm-generic: introduce generic header percpu.h

2023-11-15 Thread Oleksii
I have to drop arch specific headers and switch to asm-generic version. I'll do the same for patches 09-12 in the next patch version. ~ Oleksii On Fri, 2023-11-10 at 18:30 +0200, Oleksii Kurochko wrote: > Signed-off-by: Oleksii Kurochko > --- > Changes in V2: > - use smp_

Re: [PATCH v2] xen: remove

2023-11-15 Thread Oleksii
On Wed, 2023-11-15 at 11:24 +0100, Jan Beulich wrote: > On 31.10.2023 15:28, Oleksii Kurochko wrote: > > only declares udelay() function so udelay() > > declaration was moved to xen/delay.h. > > > > For x86, __udelay() was renamed to udelay() and removed &g

Re: [PATCH v2 13/15] xen/asm-generic: introduce stub header monitor.h

2023-11-15 Thread Oleksii
On Wed, 2023-11-15 at 14:54 +0200, Oleksii wrote: > On Wed, 2023-11-15 at 11:00 +0100, Jan Beulich wrote: > > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > > --- /dev/null > > > +++ b/xen/include/asm-generic/monitor.h > > > @@ -0,0 +1,62 @@ > &

Re: [PATCH v2 14/15] xen/asm-generic: introduce stub header numa.h

2023-11-15 Thread Oleksii
On Wed, 2023-11-15 at 11:07 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/include/asm-generic/numa.h > > @@ -0,0 +1,40 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef _

Re: [PATCH v2 13/15] xen/asm-generic: introduce stub header monitor.h

2023-11-15 Thread Oleksii
On Wed, 2023-11-15 at 11:00 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/include/asm-generic/monitor.h > > @@ -0,0 +1,62 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * include/asm

Re: [PATCH v2 07/15] xen/asm-generic: introduce stub header

2023-11-15 Thread Oleksii
On Wed, 2023-11-15 at 10:56 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > is common for Arm, PPC and RISC-V thereby it > > is moved to asm-generic. > > When you say "moved", ... > > > Signed-off-by: Oleksii Kurochko

Re: [PATCH v3] xen/asm-generic: ifdef inclusion of

2023-11-15 Thread Oleksii
On Tue, 2023-11-14 at 18:19 +0100, Jan Beulich wrote: > On 14.11.2023 16:13, Oleksii Kurochko wrote: > > ifdefing inclusion of in > > allows to avoid generation of empty header > > for the case when !CONFIG_MEM_ACCESS. > > > > For Arm it was explicitly

Re: [PATCH v2 02/15] xen/asm-generic: introduce generic device.h

2023-11-14 Thread Oleksii
On Mon, 2023-11-13 at 17:43 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/include/asm-generic/device.h > > @@ -0,0 +1,140 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef __AS

[PATCH v3] xen: ifdef inclusion of in

2023-11-14 Thread Oleksii Kurochko
. is #ifdef-ed with CONFIG_GRANT_TABLE in so in case of !CONFIG_GRANT_TABLE gnttab_dom0_frames won't be available for use in arch/arm/domain_build.c. Suggested-by: Jan Beulich Signed-off-by: Oleksii Kurochko --- This patch was part of patch series: https://lore.kernel.org/xen-devel/cover.1699633310

[PATCH v3] xen/asm-generic: ifdef inclusion of

2023-11-14 Thread Oleksii Kurochko
Beulich Signed-off-by: Oleksii Kurochko --- This patch was part of patch series: https://lore.kernel.org/xen-devel/cover.1699633310.git.oleksii.kuroc...@gmail.com/ The patch series hasn't been reviewed all yet so send this path separately. --- xen/arch/arm/p2m.c | 6 ++ xen/arch/arm

Re: [PATCH v2 05/15] xen/asm-generic: introduce generic header iocap.h

2023-11-14 Thread Oleksii
On Mon, 2023-11-13 at 17:48 +0100, Jan Beulich wrote: > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > iocap.h is common for Arm, PPC and RISC-V architectures thereby > > it was moved to asm-generic. > > > > Signed-off-by: Oleksii Kurochko > > --- > > The

Re: [PATCH v2 04/15] xen/asm-generic: introduce generic hypercall.h

2023-11-14 Thread Oleksii
On Mon, 2023-11-13 at 17:50 +0100, Jan Beulich wrote: > On 13.11.2023 17:45, Jan Beulich wrote: > > On 10.11.2023 17:30, Oleksii Kurochko wrote: > > > Introduce an empty generic hypercall.h for archs which don't > > > implement it. > > > > > > Si

Re: [PATCH v2 06/15] xen/asm-generic: ifdef inclusion of

2023-11-13 Thread Oleksii
On Mon, 2023-11-13 at 18:01 +0100, Jan Beulich wrote: > On 11.11.2023 11:24, Oleksii wrote: > > This patch should be reworked as it fails Arm builds: > > https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1068867920 > > Took me a while to actually find the error.

Re: [PATCH v2 03/15] xen: ifdef inclusion of in

2023-11-13 Thread Oleksii
On Mon, 2023-11-13 at 14:29 +0100, Jan Beulich wrote: > On 13.11.2023 14:13, Oleksii wrote: > > On Sat, 2023-11-11 at 12:25 +0200, Oleksii wrote: > > > I missed to check the patch properly. > > > > > > The patch fails for Arm randconfigs: > > > ht

Re: [PATCH v2 03/15] xen: ifdef inclusion of in

2023-11-13 Thread Oleksii
On Sat, 2023-11-11 at 12:25 +0200, Oleksii wrote: > I missed to check the patch properly. > > The patch fails for Arm randconfigs: > https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1068865674 > > I need to do an additional investigation. So the only one macro c

Re: [PATCH v2 03/15] xen: ifdef inclusion of in

2023-11-11 Thread Oleksii
I missed to check the patch properly. The patch fails for Arm randconfigs: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1068865674 I need to do an additional investigation. Does it make sense to re-send this patch separately out of this patch series? ~ Oleksii On Fri, 2023-11

<    2   3   4   5   6   7   8   9   10   11   >