Re: [PATCH 5/5] xen/ppc: Implement early serial console on PowerNV

2023-08-02 Thread Jan Beulich
On 02.08.2023 00:54, Shawn Anastasio wrote: > On 8/1/23 6:19 AM, Jan Beulich wrote: >> On 28.07.2023 23:35, Shawn Anastasio wrote: >>> +static void opal_putchar(char c) >> >> Can't this be __init? > > Unlike OpenFirmware, OPAL calls are expected to be used by the OS during > its entire lifecycle,

Re: [PATCH 1/4] xen/ppc: Switch to medium PIC code model

2023-08-02 Thread Jan Beulich
On 02.08.2023 02:11, Shawn Anastasio wrote: > --- a/xen/arch/ppc/include/asm/asm-defns.h > +++ b/xen/arch/ppc/include/asm/asm-defns.h > @@ -16,6 +16,13 @@ > lis reg, (val) @h; > \ > ori reg, reg, (val) @l;

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive

2023-08-02 Thread Jan Beulich
On 01.08.2023 23:02, Julien Grall wrote: > Hi, > > Title: This patch is not arm32 specific anymore. So I would replace > 'arm32' with 'arm'. This can be done on commit. > > On 01/08/2023 18:49, Khem Raj wrote: >> Assembler from binutils 2.41 rejects [1] this syntax >> >> .section "name"[, flags.

[XEN PATCH] xen/string: add missing parameter names

2023-08-02 Thread Federico Serafini
Add missing parameter names to address violations of MISRA C:2012 Rule 8.2 ("Function types shall be in prototype form with named parameters"). No functional changes. Signed-off-by: Federico Serafini --- xen/include/xen/string.h | 42 1 file changed, 21

Re: [PATCH 2/2] fdt: make fdt handling reusable across arch

2023-08-02 Thread Jan Beulich
On 01.08.2023 18:14, Daniel P. Smith wrote: > This refactors reusable code from Arm's bootfdt.c and device-tree.h that is > general fdt handling code. The Kconfig parameter CORE_DEVICE_TREE is > introduced for when the ability of parsing DTB files is needed by a capability > such as hyperlaunch. >

Re: [XEN PATCH 3/4] automation/eclair: add scheduled pipelines

2023-08-02 Thread Simone Ballarin
Il 02/08/2023 02:08 Stefano Stabellini ha scritto: On Wed, 2 Aug 2023, Marek Marczykowski-Górecki wrote: On Tue, Aug 01, 2023 at 03:55:20PM -0700, Stefano Stabellini wrote: > On Tue, 1 Aug 2023, Simone Ballarin wrote: > > This patch introduces six new ECLAIR jobs that run only > > when triggered

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-02 Thread Jan Beulich
On 02.08.2023 02:24, Stefano Stabellini wrote: > On Tue, 1 Aug 2023, Daniel P. Smith wrote: >> --- a/xen/include/xen/sched.h >> +++ b/xen/include/xen/sched.h >> @@ -1058,6 +1058,13 @@ void scheduler_disable(void); >> void watchdog_domain_init(struct domain *d); >> void watchdog_domain_destroy(str

Re: [XEN PATCH 1/4] automation/eclair: add support for tag pipelines

2023-08-02 Thread Simone Ballarin
Il 02/08/2023 00:54 Stefano Stabellini ha scritto: On Tue, 1 Aug 2023, Simone Ballarin wrote: The ECLAIR jobs fail when triggered by tag pipelines (e.g. xen-project/patchew/xen). This patch extends the integration to support such pipelines. Signed-off-by: Simone Ballarin Acked-by: Stefano S

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-02 Thread Jan Beulich
On 01.08.2023 22:20, Daniel P. Smith wrote: > A legacy concept is that the initial domain will have a domain id of zero. As > a > result there are places where a check that a domain is the inital domain is > determined by an explicit check that the domid is zero. It might help if you at least out

Re: [RFC 2/6] roles: provide abstraction for the possible domain roles

2023-08-02 Thread Jan Beulich
On 01.08.2023 22:20, Daniel P. Smith wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -340,6 +340,14 @@ static int late_hwdom_init(struct domain *d) > setup_io_bitmap(dom0); > #endif > > +/* > + * "dom0" may have been created under the unbounded role, demote it fr

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive

2023-08-02 Thread Julien Grall
Hi Jan, On 02/08/2023 08:22, Jan Beulich wrote: On 01.08.2023 23:02, Julien Grall wrote: Hi, Title: This patch is not arm32 specific anymore. So I would replace 'arm32' with 'arm'. This can be done on commit. On 01/08/2023 18:49, Khem Raj wrote: Assembler from binutils 2.41 rejects [1] this

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive

2023-08-02 Thread Jan Beulich
On 02.08.2023 09:54, Julien Grall wrote: > On 02/08/2023 08:22, Jan Beulich wrote: >> On 01.08.2023 23:02, Julien Grall wrote: >>> Title: This patch is not arm32 specific anymore. So I would replace >>> 'arm32' with 'arm'. This can be done on commit. >>> >>> On 01/08/2023 18:49, Khem Raj wrote: >>>

[ovmf test] 182108: all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182108 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/182108/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf d11968fcc56cbbffef7d906048b00faea9415447 baseline version: ovmf 677f2c6f1509da21258e0

[XEN PATCH v2] x86/cpu-policy: justify a violation of MISRA C:2012 Rule 1.3

2023-08-02 Thread Nicola Vetrini
The empty feature set 'str_7c1' in 'tools/misc/xen-cpuid.c' causes the struct declaration to have no named members, hence violating Rule 1.3: "There shall be no occurrence of undefined or critical unspecified behaviour" because it is forbidden by ISO/IEC 9899:1999(E), Section 6.7.2.1.7: "If the str

[PATCH] x86/gen-cpuid: avoid violations of Misra rule 1.3

2023-08-02 Thread Jan Beulich
Structures or unions without any named members aren't liked by Misra (nor the C standard). Avoid emitting such for leaves without any known bits. At this occasion also add the script to the X86 section in ./MAINTAINERS. Signed-off-by: Jan Beulich --- a/MAINTAINERS +++ b/MAINTAINERS @@ -601,6 +6

[XEN PATCH 0/4] x86: address some violations of MISRA C:2012 Rule 5.3

2023-08-02 Thread Nicola Vetrini
Some variables are renamed or deleted in this series to avoid shadowing, which violates MISRA C:2012 Rule 5.3, whose headline is: "An identifier declared in an inner scope shall not hide an identifier declared in an outer scope". Nicola Vetrini (4): x86/mce: address MISRA C:2012 Rule 5.3 x86/m

[XEN PATCH 2/4] x86/mtrr: address MISRA C:2012 Rule 5.3

2023-08-02 Thread Nicola Vetrini
Rename variables to avoid shadowing and thus address MISRA C:2012 Rule 5.3: "An identifier declared in an inner scope shall not hide an identifier declared in an outer scope" No functional changes. Signed-off-by: Nicola Vetrini --- xen/arch/x86/hvm/mtrr.c | 32

[XEN PATCH 3/4] x86/irq: rename variable to address MISRA C:2012 Rule 5.3

2023-08-02 Thread Nicola Vetrini
The extern variable 'irq_desc' defined in 'irq.h' is shadowed by local variables in the changed file. To avoid this, the variable is renamed to 'irq_description'. No functional change. Signed-off-by: Nicola Vetrini --- xen/arch/x86/hvm/hvm.c | 2 +- xen/arch/x86/include/asm/irq.h | 2

[XEN PATCH 1/4] x86/mce: address MISRA C:2012 Rule 5.3

2023-08-02 Thread Nicola Vetrini
Suitable mechanical renames are made to avoid shadowing, thus addressing violations of MISRA C:2012 Rule 5.3: "An identifier declared in an inner scope shall not hide an identifier declared in an outer scope" Signed-off-by: Nicola Vetrini --- xen/arch/x86/cpu/mcheck/barrier.c | 8 xen/a

[XEN PATCH 4/4] x86/setup: address MISRA C:2012 Rule 5.3

2023-08-02 Thread Nicola Vetrini
The parameters renamed in the function declaration caused shadowing with the homonymous variable in 'xen/common/efi/boot.c'. Renaming them also addresses Rule 8.3: "All declarations of an object or function shall use the same names and type qualifiers". The local variable 'mask' is removed because

Re: [XEN PATCH v2] x86/cpu-policy: justify a violation of MISRA C:2012 Rule 1.3

2023-08-02 Thread Jan Beulich
On 02.08.2023 10:57, Nicola Vetrini wrote: > The empty feature set 'str_7c1' in 'tools/misc/xen-cpuid.c' causes the > struct declaration to have no named members, hence violating > Rule 1.3: > "There shall be no occurrence of undefined or critical unspecified behaviour" > because it is forbidden by

Re: [XEN PATCH v2] x86/cpu-policy: justify a violation of MISRA C:2012 Rule 1.3

2023-08-02 Thread Nicola Vetrini
On 02/08/2023 11:47, Jan Beulich wrote: On 02.08.2023 10:57, Nicola Vetrini wrote: The empty feature set 'str_7c1' in 'tools/misc/xen-cpuid.c' causes the struct declaration to have no named members, hence violating Rule 1.3: "There shall be no occurrence of undefined or critical unspecified beh

[qemu-mainline test] 182096: regressions - FAIL

2023-08-02 Thread osstest service owner
flight 182096 qemu-mainline real [real] flight 182113 qemu-mainline real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/182096/ http://logs.test-lab.xenproject.org/osstest/logs/182113/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be

Re: [PATCH] x86/gen-cpuid: avoid violations of Misra rule 1.3

2023-08-02 Thread Andrew Cooper
On 02/08/2023 10:43 am, Jan Beulich wrote: > Structures or unions without any named members aren't liked by Misra > (nor the C standard). Avoid emitting such for leaves without any known > bits. > > At this occasion also add the script to the X86 section in ./MAINTAINERS. > > Signed-off-by: Jan Beu

Re: [PATCH] console: generalize the ability for domU access

2023-08-02 Thread Jan Beulich
On 01.08.2023 18:06, Daniel P. Smith wrote: > This patch reworks the console rotation logic to provide a general mechanism > to > incorporate domU in to the rotation. It does so by walking the domain list > using the XSM console privlege check to determine if the domain is given > access. > > In

Re: [XEN PATCH v2] x86/cpu-policy: justify a violation of MISRA C:2012 Rule 1.3

2023-08-02 Thread Jan Beulich
On 02.08.2023 12:01, Nicola Vetrini wrote: > On 02/08/2023 11:47, Jan Beulich wrote: >> On 02.08.2023 10:57, Nicola Vetrini wrote: >>> The empty feature set 'str_7c1' in 'tools/misc/xen-cpuid.c' causes the >>> struct declaration to have no named members, hence violating >>> Rule 1.3: >>> "There sha

[ovmf test] 182111: all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182111 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/182111/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 5cadb8ce2148979b6c464f6da5a8cd97425c5165 baseline version: ovmf d11968fcc56cbbffef7d9

[xen-unstable-smoke test] 182112: tolerable all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182112 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182112/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[PATCH v2] x86/gen-cpuid: Avoid violations of Misra rule 1.3

2023-08-02 Thread Andrew Cooper
Add the script to the X86 section in ./MAINTAINERS. Structures or unions without any named members aren't liked by Misra (nor the C standard). Avoid emitting such for leaves without any known bits. The placeholders are affected similarly, but are only visible to MISRA in the middle of a patch ser

Re: [PATCH v2] x86/gen-cpuid: Avoid violations of Misra rule 1.3

2023-08-02 Thread Jan Beulich
On 02.08.2023 15:10, Andrew Cooper wrote: > Add the script to the X86 section in ./MAINTAINERS. > > Structures or unions without any named members aren't liked by Misra > (nor the C standard). Avoid emitting such for leaves without any known > bits. > > The placeholders are affected similarly, bu

Re: [PATCH -next] xen/evtchn: Remove unused function declaration xen_set_affinity_evtchn()

2023-08-02 Thread Juergen Gross
On 01.08.23 16:54, Yue Haibing wrote: Commit 67473b8194bc ("xen/events: Remove disfunct affinity spreading") leave this unused declaration. Signed-off-by: Yue Haibing Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature De

Re: [PATCH v2] x86/gen-cpuid: Avoid violations of Misra rule 1.3

2023-08-02 Thread Andrew Cooper
On 02/08/2023 2:22 pm, Jan Beulich wrote: > On 02.08.2023 15:10, Andrew Cooper wrote: >> Add the script to the X86 section in ./MAINTAINERS. >> >> Structures or unions without any named members aren't liked by Misra >> (nor the C standard). Avoid emitting such for leaves without any known >> bits.

Re: [PATCH -next] xen/evtchn: Remove unused function declaration xen_set_affinity_evtchn()

2023-08-02 Thread Rahul Singh
Hi Yue, > On 1 Aug 2023, at 3:54 pm, Yue Haibing wrote: > > Commit 67473b8194bc ("xen/events: Remove disfunct affinity spreading") > leave this unused declaration. > > Signed-off-by: Yue Haibing Reviewed-by: Rahul Singh Regards, Rahul Singh > --- > include/xen/events.h | 1 - > 1 file chang

[RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Luca Fancellu
Introduce Kconfig GICV2 to be able to compile the GICv2 driver only when needed, the option is active by default. Introduce Kconfig VGICV2 that depends on GICV2 or GICV3 and compiles the GICv2 emulation for guests, it is required only when using GICV2 driver, otherwise using GICV3 it is optional a

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Michal Orzel
Hi Luca, On 02/08/2023 15:53, Luca Fancellu wrote: > > > Introduce Kconfig GICV2 to be able to compile the GICv2 driver only > when needed, the option is active by default. > > Introduce Kconfig VGICV2 that depends on GICV2 or GICV3 and compiles > the GICv2 emulation for guests, it is required

[XEN PATCH 01/11] x86/efi: move variable declaration to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
The variable declaration is moved where it's actually used, rather than being declared in the switch before any clause, thus being classified as unreachable code. No functional changes. Signed-off-by: Nicola Vetrini --- xen/arch/x86/efi/efi-boot.h | 5 ++--- 1 file changed, 2 insertions(+), 3 d

[XEN PATCH 05/11] drivers/pci: move variable definitions to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Variable declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the variable declarations are moved in the smallest enclosing scope, near other variable definitions. Signed

[XEN PATCH 02/11] x86: move declarations to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Variable declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the declarations are moved in the smallest enclosing scope, near other variable definitions. Signed-off-by:

[XEN PATCH 00/11] xen: address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
The headline for Rule 2.1 states: "A project shall not contain unreachable code". Violations of this rule addressed by this patch are caused by two constructs: 1. Declarations inside switch statements, before any clause. This construct is allowed by the language, but is considered unreachable

[XEN PATCH 03/11] x86/uaccess: move declarations to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
The variable declarations inside macros {put,get}_unsafe_size are considered unreachable code, as they appear in a switch statement, before any clause. They are moved in the enclosing scope to resolve the violation. No functional changes. Signed-off-by: Nicola Vetrini --- xen/arch/x86/include/a

[XEN PATCH 07/11] xen: address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Rule 2.1 states: "A project shall not contain unreachable code". The functions - machine_halt - maybe_reboot - machine_restart are not supposed to return, hence the following break statement is marked as intentionally unreachable with the ASSERT_UNREACHABLE() macro to justify the violation of the

[XEN PATCH 08/11] xen: move declarations to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the variable declarations are moved in the smallest enclosing scope, near other variable definitions. Signed-off-by:

[XEN PATCH 09/11] x86/xstate: moved BUILD_BUG_ON to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Variable declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the variable declarations are moved in the smallest enclosing scope, near other variable definitions. Signed

[XEN PATCH 04/11] x86emul: move variable definitions to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Variable declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the variable declarations are moved in the only clause scope that uses it. Signed-off-by: Nicola Vetrini --

[XEN PATCH 06/11] xen/ioreq: move variable declaration to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
Variable declarations between a switch statement guard and before any case label are unreachable code, and hence violate Rule 2.1: "A project shall not contain unreachable code". Therefore the variable declarations are moved in the smallest enclosing scope, near other variable definitions. Signed

[XEN PATCH 11/11] x86/mm: Add assertion to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
The ASSERT_UNREACHABLE() assertion is added before a definitely unreachable return statement to address MISRA C:2012 Rule 2.1, because the explicit return from a non-void function is a defensive coding measure, and thus intended to be unreachable. No functional changes. Signed-off-by: Nicola Vetr

[XEN PATCH 10/11] xen/sched: add ASSERT_UNREACHABLE() to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Nicola Vetrini
The break statement after the return statement is definitely unreachable. As such, an call to the ASSERT_UNREACHABLE() macro is added to signal the intentionality of such construct. Signed-off-by: Nicola Vetrini --- The break in the clause is mandated by Required Rule 16.3, which is not yet an ac

[xen-4.17-testing test] 182110: regressions - trouble: fail/pass/starved

2023-08-02 Thread osstest service owner
flight 182110 xen-4.17-testing real [real] flight 182117 xen-4.17-testing real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/182110/ http://logs.test-lab.xenproject.org/osstest/logs/182117/ Regressions :-( Tests which did not succeed and are blocking, including tests which could

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Luca Fancellu
> On 2 Aug 2023, at 15:26, Michal Orzel wrote: > > Hi Luca, > > On 02/08/2023 15:53, Luca Fancellu wrote: >> >> >> Introduce Kconfig GICV2 to be able to compile the GICv2 driver only >> when needed, the option is active by default. >> >> Introduce Kconfig VGICV2 that depends on GICV2 or GIC

Re: [XEN PATCH 02/11] x86: move declarations to address MISRA C:2012 Rule 2.1

2023-08-02 Thread Andrew Cooper
On 02/08/2023 3:38 pm, Nicola Vetrini wrote: > diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c > index 5f66c2ae33..015f7b14ab 100644 > --- a/xen/arch/x86/domain.c > +++ b/xen/arch/x86/domain.c > @@ -2268,6 +2268,17 @@ int domain_relinquish_resources(struct domain *d) > { > int ret;

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Michal Orzel
Hi, On 02/08/2023 16:42, Luca Fancellu wrote: > > >> On 2 Aug 2023, at 15:26, Michal Orzel wrote: >> >> Hi Luca, >> >> On 02/08/2023 15:53, Luca Fancellu wrote: >>> >>> >>> Introduce Kconfig GICV2 to be able to compile the GICv2 driver only >>> when needed, the option is active by default. >>>

Re: [PATCH 3/3] x86: Delete str()

2023-08-02 Thread Andrew Cooper
On 31/07/2023 9:25 am, Jan Beulich wrote: > On 28.07.2023 21:43, Andrew Cooper wrote: >> This is used in an assertion only, which is somewhat dubious to begin with >> and >> won't surivive the x86-S work (where TR will become be a NUL selector). > I'm kind of okay with the removal, but I can't rea

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Luca Fancellu
> On 2 Aug 2023, at 15:48, Michal Orzel wrote: > > Hi, > > On 02/08/2023 16:42, Luca Fancellu wrote: >> >> >>> On 2 Aug 2023, at 15:26, Michal Orzel wrote: >>> >>> Hi Luca, >>> >>> On 02/08/2023 15:53, Luca Fancellu wrote: Introduce Kconfig GICV2 to be able to compile the

[PATCH] xen/x86: Constify the vCPU parameter for expand_xsave_states()

2023-08-02 Thread Julien Grall
From: Julien Grall expand_xsave_states() is not meant to modify the vCPU. So the parameter can be const. Signed-off-by: Julien Grall --- xen/arch/x86/include/asm/xstate.h | 2 +- xen/arch/x86/xstate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x

Network interfaces naming changes in domUs with >10 vifs (Debian bug 1042842)

2023-08-02 Thread zithro
Hello all, I report here following a discussion on #xen-devel about Debian bug 1042842 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042842). When using more than 10 vifs in a domU on Xen 4.14 (deb11), the attributions are like : vifX.0 <> eth0 vifX.1 <> eth1 vifX.2 <> eth2 [...] vifX

[PATCH v1] xen: remove a confusing comment on auto-translated guest I/O

2023-08-02 Thread Petr Tesarik
From: Petr Tesarik After removing the conditional return from xen_create_contiguous_region(), the accompanying comment was left in place, but it now precedes an unrelated conditional and confuses readers. Fixes: 989513a735f5 ("xen: cleanup pvh leftovers from pv-only sources") Signed-off-by: Petr

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Julien Grall
Hi Luca, On 02/08/2023 16:05, Luca Fancellu wrote: On 2 Aug 2023, at 15:48, Michal Orzel wrote: Hi, On 02/08/2023 16:42, Luca Fancellu wrote: On 2 Aug 2023, at 15:26, Michal Orzel wrote: Hi Luca, On 02/08/2023 15:53, Luca Fancellu wrote: Introduce Kconfig GICV2 to be able to compile

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Luca Fancellu
> On 2 Aug 2023, at 18:39, Julien Grall wrote: > > Hi Luca, > > On 02/08/2023 16:05, Luca Fancellu wrote: >>> On 2 Aug 2023, at 15:48, Michal Orzel wrote: >>> >>> Hi, >>> >>> On 02/08/2023 16:42, Luca Fancellu wrote: > On 2 Aug 2023, at 15:26, Michal Orzel wrote: > >>>

[xen-unstable test] 182097: tolerable FAIL - PUSHED

2023-08-02 Thread osstest service owner
flight 182097 xen-unstable real [real] flight 182122 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/182097/ http://logs.test-lab.xenproject.org/osstest/logs/182122/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd6

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Julien Grall
Hi, On 02/08/2023 18:54, Luca Fancellu wrote: On 2 Aug 2023, at 18:39, Julien Grall wrote: Hi Luca, On 02/08/2023 16:05, Luca Fancellu wrote: On 2 Aug 2023, at 15:48, Michal Orzel wrote: Hi, On 02/08/2023 16:42, Luca Fancellu wrote: On 2 Aug 2023, at 15:26, Michal Orzel wrote: Hi

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Luca Fancellu
> On 2 Aug 2023, at 19:39, Julien Grall wrote: > > Hi, > > On 02/08/2023 18:54, Luca Fancellu wrote: >>> On 2 Aug 2023, at 18:39, Julien Grall wrote: >>> >>> Hi Luca, >>> >>> On 02/08/2023 16:05, Luca Fancellu wrote: > On 2 Aug 2023, at 15:48, Michal Orzel wrote: > > Hi, >

Re: [PATCH v1] xen: remove a confusing comment on auto-translated guest I/O

2023-08-02 Thread Boris Ostrovsky
On 8/2/23 12:31 PM, Petr Tesarik wrote: From: Petr Tesarik After removing the conditional return from xen_create_contiguous_region(), the accompanying comment was left in place, but it now precedes an unrelated conditional and confuses readers. Fixes: 989513a735f5 ("xen: cleanup pvh leftove

[libvirt test] 182099: tolerable all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182099 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/182099/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 182068 test-armhf-armhf-libvirt-qcow2 15 saveres

Re: [RFC PATCH] arm/gicv2: make GICv2 driver and vGICv2 optional

2023-08-02 Thread Julien Grall
Hi Luca, On 02/08/2023 19:48, Luca Fancellu wrote: diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 5cdba07df964..93309cd49144 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -18,6 +18,7 @@ config ARM select HAS_PMAP select HAS_UBSAN selec

[xen-unstable-smoke test] 182124: tolerable all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182124 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182124/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[ovmf test] 182121: all pass - PUSHED

2023-08-02 Thread osstest service owner
flight 182121 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/182121/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf fa789cc68a85a5781c18c64b9112c779750b2125 baseline version: ovmf 5cadb8ce2148979b6c464

Re: [PATCH 2/2] fdt: make fdt handling reusable across arch

2023-08-02 Thread Daniel P. Smith
On 8/2/23 02:13, Henry Wang wrote: Hi Daniel, Hey Henry! -Original Message- Subject: [PATCH 2/2] fdt: make fdt handling reusable across arch This refactors reusable code from Arm's bootfdt.c and device-tree.h that is general fdt handling code. The Kconfig parameter CORE_DEVICE_TREE

Re: [PATCH 2/2] fdt: make fdt handling reusable across arch

2023-08-02 Thread Daniel P. Smith
On 8/2/23 03:27, Jan Beulich wrote: On 01.08.2023 18:14, Daniel P. Smith wrote: This refactors reusable code from Arm's bootfdt.c and device-tree.h that is general fdt handling code. The Kconfig parameter CORE_DEVICE_TREE is introduced for when the ability of parsing DTB files is needed by a ca

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive

2023-08-02 Thread Julien Grall
Hi Jan, On 02/08/2023 09:01, Jan Beulich wrote: On 02.08.2023 09:54, Julien Grall wrote: On 02/08/2023 08:22, Jan Beulich wrote: On 01.08.2023 23:02, Julien Grall wrote: Title: This patch is not arm32 specific anymore. So I would replace 'arm32' with 'arm'. This can be done on commit. On 01/

[PATCH 00/22] Cleanup and splitting of xl.cfg parsing

2023-08-02 Thread Elliott Mitchell
Is there a freeze on that I'm unaware of? Is there so much traffic from other developers that smaller output ones are being missed? I'm wondering about the initial revision of this series not getting any feedback: https://lists.xenproject.org/archives/html/xen-devel/2023-07/msg01264.html Due to

[PATCH 01/22] tools/utils: cleanup formatting of libxlutil.h

2023-08-02 Thread Elliott Mitchell
Some arguments included a name, but not all did. Now use "cfg" for all uses of XLU_Config * and "list" for uses of XLU_ConfigList *. Also fix some spaces missing from xlu_cfg_get_defbool()'s prototype. Rename the "b" argument of xlu_cfg_get_defbool() to "value_r". Similar to other functions thi

[PATCH 03/22] tools/utils: remove old declaration of xlu__cfg_yyparse()

2023-08-02 Thread Elliott Mitchell
This was added at b104c3762dc. Appears this was fixed in the intervening decade. Otherwise this could have been an issue from using advanced features of Bison. Now this appears unnecessary. Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_cfg_i.h | 6 -- 1 file changed, 6 deleti

[PATCH 04/22] tools/utils: enable all Bison warnings

2023-08-02 Thread Elliott Mitchell
Warnings from Bison seem less likely to be urgent, but on general principle enable everything. Signed-off-by: Elliott Mitchell --- tools/libs/util/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/util/Makefile b/tools/libs/util/Makefile index c3b21875dc..d2

[PATCH 06/22] tools/utils: remove libxlu_cfg_i.h from libxlu_disk.c

2023-08-02 Thread Elliott Mitchell
The upper layer disk string parser doesn't need the internals of the lower layer file parser. Split the layers apart. This looks to have been a copy&paste issue. Fixes: 5c206536ad ("libxl: disks: new xlu_disk_parse function") Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_disk.c |

[PATCH 07/22] tools/utils: merge contents of libxlu_cfg_i.h to libxlu_cfg_y.y

2023-08-02 Thread Elliott Mitchell
Bison has added the ability to emit declarations in its header. As such everything can instead be dumped in Bison's header instead of having a private one. This resolves the mixed up situation with the libxlu headers. Problem is libxlu_cfg_i.h was trying to function as a wrapper for libxlu_cfg_y

[PATCH 09/22] tools/utils: move CfgParseContext to top of libxlu_cfg_y.y

2023-08-02 Thread Elliott Mitchell
The CfgParseContext structure/typedef is used inside the parser. Whereas most #include's of libxlu_internal.h need the common declarations, not the parser internals. Due to this, the structure should be near the top of libxlu_cfg_y.h (libxlu_cfg_i.h @b104c3762d), and not towards the middle of lib

[PATCH 10/22] tools/utils: move XLU_ConfigSetting to libxl_cfg.c

2023-08-02 Thread Elliott Mitchell
XLU_ConfigSetting is only used inside libxl_cfg.c, so no need for it in the internal header. Keep the type definition in libxlu_internal.h as the incomplete definition is needed for xlu__cfg_set_free(). There is no longer any need for XLU_ConfigSetting to be transparent. Fixes: b104c3762d, 1a09c

[PATCH 05/22] tools/utils: update Bison parser directives

2023-08-02 Thread Elliott Mitchell
Update per Bison's obsolete warnings. Testing indicates these are simple and safe. Signed-off-by: Elliott Mitchell --- Someone check for acceptable Bison versions? I'm testing with Flex 2.6.4 and Bison 3.7.5. --- tools/libs/util/libxlu_cfg_y.y | 11 +-- 1 file changed, 5 insertions(+),

[PATCH 11/22] tools/utils: move XLU_ConfigValue to libxl_cfg.c

2023-08-02 Thread Elliott Mitchell
At no point was the complete type for XLU_ConfigValue used anywhere besides libxlu_cfg.c, overdue for a move. Fixes: 1a09c5113a ("libxlu: rework internal representation of setting") Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_cfg.c | 9 + tools/libs/util/libxlu_intern

[PATCH 12/22] tools/utils: remove YYLTYPE definition from libxlu_internal.h

2023-08-02 Thread Elliott Mitchell
The definition was needed due to XLU_ConfigValue being before Bison's declaration of YYLTYPE. Since XLU_ConfigValue has moved to libxlu_cfg.c, the duplication is now unnecessary. Fixes: 1a09c5113a, 6ec86e91c8 ("libxlu: record location when parsing values") Signed-off-by: Elliott Mitchell --- Had

[PATCH 02/22] tools/utils: rename "n" arguments to "key"

2023-08-02 Thread Elliott Mitchell
Hopefully make it clearer to others this is the key associated with the storage value to retrieve. Signed-off-by: Elliott Mitchell --- tools/include/libxlutil.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/include/libxlutil.h b/tools/include/libxlutil.

[PATCH 08/22] tools/utils: Bison: switch from name-prefix to api.prefix

2023-08-02 Thread Elliott Mitchell
bison -Wall declares %name-prefix deprecated. The suggested replacement is "api.prefix". "api.prefix" though effects rather a lot more places than %name-prefix does. As a result, rename YYLTYPE/YYSTYPE to match. As a quick workaround #define YYLTYPE/YYSTYPE to convince flex to interface correct

[PATCH 15/22] tools/utils: move XLU_Config to libxlu_cfg.c

2023-08-02 Thread Elliott Mitchell
Only the lowest layer of configuration handling looks inside XLU_Config. As such the structure can move to this header instead of the shared header. Mark ->config_source as constant. Most places it truly is constant, only the free() violates the constant. Signed-off-by: Elliott Mitchell --- Thi

[PATCH 17/22] tools/utils: move setting free loop to xlu__cfg_set_free()

2023-08-02 Thread Elliott Mitchell
This better breaks layers apart. xlu_cfg_destroy() now only knows about the XLU_Config structure, while xlu__cfg_set_free() knows about XLU_ConfigSetting. Move declaration of xlu__cfg_set_free() to shared header to indicate it will bridge layers. Signed-off-by: Elliott Mitchell --- This is the

[PATCH 18/22] tools/utils: spread xlu_cfg_printf() over libxlu_cfg.c

2023-08-02 Thread Elliott Mitchell
There are far more printf()s inside libxlu_cfg.c, so these had been left alone briefly. Now attack all of these. Signed-off-by: Elliott Mitchell --- Note, several messages change mildly. The message in parse() didn't previously include the filename. --- tools/libs/util/libxlu_cfg.c | 78 ++

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive

2023-08-02 Thread Julien Grall
Hi, On 01/08/2023 22:49, Khem Raj wrote: On Tue, Aug 1, 2023 at 2:03 PM Julien Grall wrote: Hi, Title: This patch is not arm32 specific anymore. So I would replace 'arm32' with 'arm'. This can be done on commit. On 01/08/2023 18:49, Khem Raj wrote: Assembler from binutils 2.41 rejects [1]

[PATCH 22/22] tools/utils: break flex/bison parser away from main config file

2023-08-02 Thread Elliott Mitchell
Potentially allowing a different parser to be substituted. Omit libxlu_internal.h from libxlu_cfg_i.c, since it is kept in libxlu_cfg_y.h. Signed-off-by: Elliott Mitchell --- tools/libs/util/Makefile | 1 + tools/libs/util/libxlu_cfg.c | 662 -

[PATCH 14/22] tools/utils: introduce xlu_cfg_printf() function

2023-08-02 Thread Elliott Mitchell
Isolate the lower layer configuration handling from the upper layer. Now only the lowest layer of configuration handling looks inside XLU_Config. Also make error messages a bit more consistent. Now PCI device parsing will report filename. Replace the XLU__PCI_ERR() with xlu_cfg_printf(). The n

[PATCH 21/22] tools/utils: add settings get function

2023-08-02 Thread Elliott Mitchell
The better to isolate the shared portion of the interface from the low-level implementation. Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_cfg.c | 7 ++- tools/libs/util/libxlu_internal.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/libs/util/

[PATCH 19/22] tools/utils: add pointer to in-progress settings to CfgParseContext

2023-08-02 Thread Elliott Mitchell
Rather than needing the full structure, for many operations the settings pointer is enough. Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_cfg.c | 13 - tools/libs/util/libxlu_cfg_y.y | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/libs/util

[PATCH 13/22] tools/utils: move XLU_ConfigList to libxl_cfg.c

2023-08-02 Thread Elliott Mitchell
With XLU_ConfigValue now in libxlu_cfg.c, XLU_ConfigList can follow. Fixes: 1a09c5113a ("libxlu: rework internal representation of setting") Signed-off-by: Elliott Mitchell --- Placing XLU_ConfigValue/XLU_ConfigList in libxlu_internal.h was certainly *wrong*. --- tools/libs/util/libxlu_cfg.c

[PATCH 16/22] tools/utils: move XLU_Operation to libxlu_cfg_y.h

2023-08-02 Thread Elliott Mitchell
This enumerated value is never used outside of the lowest layer of the configuration parser. As such, move to the internal header. Fixes: a30910bfd7 ("libxlu: Handle += in config files") Signed-off-by: Elliott Mitchell --- I'm unsure whether this is fixing a30910bfd7. Placing XLU_Operation in l

[PATCH 20/22] tools/utils: add wrapper for readfile()/readdata() functions

2023-08-02 Thread Elliott Mitchell
These functions needs to cross the boundary between core and lower-layer. As such split them in two. Pass most of the values from XLU_Config as they can be used by the lower-layer. Signed-off-by: Elliott Mitchell --- tools/libs/util/libxlu_cfg.c | 47 ++- tools/

Re: [PATCH v4 1/1] ns16550: add support for polling mode when device tree is used

2023-08-02 Thread Julien Grall
Hi, On 01/08/2023 10:59, Jan Beulich wrote: On 01.08.2023 11:46, Oleksii wrote: On Mon, 2023-07-31 at 15:24 +0200, Jan Beulich wrote: On 27.07.2023 18:45, Oleksii Kurochko wrote: @@ -654,6 +674,9 @@ static void ns16550_init_common(struct ns16550 *uart) /* Default lsr_mask = UART_LSR_

[linux-linus test] 182101: regressions - FAIL

2023-08-02 Thread osstest service owner
flight 182101 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/182101/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-arm64-arm64-libvirt-raw 13 guest-start fail REGR. vs. 180278 test-arm64-arm64-xl

[PATCH 1/9] xen/common: Add missing #includes treewide

2023-08-02 Thread Shawn Anastasio
A few files treewide depend on defininitions in headers that they don't include. This works when arch headers end up including the required headers by chance, but broke on ppc64 with only minimal/stub arch headers. Signed-off-by: Shawn Anastasio --- xen/common/memory.c | 1 + xen/common/sy

[PATCH 4/9] xen/ppc: Implement bitops.h

2023-08-02 Thread Shawn Anastasio
Implement bitops.h, based on Linux's implementation as of commit 5321d1b1afb9a17302c6cec79f0cbf823eb0d3fc Signed-off-by: Shawn Anastasio --- xen/arch/ppc/include/asm/bitops.h | 331 +- 1 file changed, 327 insertions(+), 4 deletions(-) diff --git a/xen/arch/ppc/includ

[PATCH 3/9] xen/ppc: Implement atomic.h

2023-08-02 Thread Shawn Anastasio
Implement atomic.h for PPC, based off of the original Xen 3.2 implementation. Signed-off-by: Shawn Anastasio --- xen/arch/ppc/include/asm/atomic.h | 387 ++ xen/arch/ppc/include/asm/memory.h | 34 +++ 2 files changed, 421 insertions(+) create mode 100644 xen/arch/pp

[PATCH 2/9] xen/ppc: Add public/arch-ppc.h

2023-08-02 Thread Shawn Anastasio
Signed-off-by: Shawn Anastasio --- xen/include/public/arch-ppc.h | 140 ++ 1 file changed, 140 insertions(+) create mode 100644 xen/include/public/arch-ppc.h diff --git a/xen/include/public/arch-ppc.h b/xen/include/public/arch-ppc.h new file mode 100644 index 000

[PATCH 0/9] ppc: Enable full Xen build

2023-08-02 Thread Shawn Anastasio
Hello all, This patch series performs all of the additions necessary to drop the build overrides for PPC and enable the full Xen build. Except in cases where compatibile implementations already exist (e.g. atomic.h and bitops.h), the newly added definitions are simple, unimplemented stubs that jus

  1   2   >