Re: [PATCH] rombios: Work around GCC issue 99578

2023-08-17 Thread Jan Beulich
On 17.08.2023 22:45, Andrew Cooper wrote: > GCC 12 objects to pointers derived from a constant: > > util.c: In function 'find_rsdp': > util.c:429:16: error: array subscript 0 is outside array bounds of > 'uint16_t[0]' {aka 'short unsigned int[]'} [-Werror=array-bounds] > 429 | ebda_se

Re: [PATCH 3/3] xen/public: arch-arm: All PSR_* defines should be unsigned

2023-08-17 Thread Jan Beulich
On 17.08.2023 23:43, Julien Grall wrote: > --- a/xen/include/public/arch-arm.h > +++ b/xen/include/public/arch-arm.h > @@ -339,36 +339,36 @@ typedef uint64_t xen_callback_t; > > /* PSR bits (CPSR, SPSR) */ > > -#define PSR_THUMB (1<<5)/* Thumb Mode enable */ > -#define PSR_FIQ_MA

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

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

RE: [PATCH] IOMMU/x86: fix build with old gcc after IO-APIC RTE changes

2023-08-17 Thread Tian, Kevin
> From: Jan Beulich > Sent: Wednesday, August 16, 2023 5:52 PM > > Old gcc won't cope with initializers involving unnamed struct/union > fields. > > Fixes: 3e033172b025 ("x86/iommu: pass full IO-APIC RTE for remapping table > update") > Signed-off-by: Jan Beulich > Reviewed-by: Kevin Tian

Re: [PATCH 3/3] xen/public: arch-arm: All PSR_* defines should be unsigned

2023-08-17 Thread Henry Wang
Hi Julien, > On Aug 18, 2023, at 05:43, Julien Grall wrote: > > From: Julien Grall > > The defines PSR_* are field in registers and always unsigned. So > add 'U' to clarify. > > This should help with MISRA Rule 7.2. > > Signed-off-by: Julien Grall Reviewed-by: Henry Wang Tested-by: Henry

Re: [PATCH 2/3] xen/arm: vgic: Use 'unsigned int' rather than 'int' whenever it is possible

2023-08-17 Thread Henry Wang
Hi Julien, > On Aug 18, 2023, at 05:43, Julien Grall wrote: > > From: Julien Grall > > Switch to unsigned int for the return/parameters of the following > functions: >* REG_RANK_NR(): 'b' (number of bits) and the return is always positive. > 'n' doesn't need to be size specific. >

Re: [PATCH 1/3] xen/arm: vmmio: The number of entries cannot be negative

2023-08-17 Thread Henry Wang
Hi Julien, > On Aug 18, 2023, at 05:43, Julien Grall wrote: > > From: Julien Grall > > The number of virtual MMIO regions cannot be negative. So switch > the field 'num_entries' and 'max_num_entries' to 'unsigned int'. > > The new type is then propagated to the caller and the vGIC > code. >

[linux-linus test] 182371: regressions - FAIL

2023-08-17 Thread osstest service owner
flight 182371 linux-linus real [real] flight 182373 linux-linus real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/182371/ http://logs.test-lab.xenproject.org/osstest/logs/182373/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run

Re: [PATCH 3/3] xen/public: arch-arm: All PSR_* defines should be unsigned

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Julien Grall wrote: > From: Julien Grall > > The defines PSR_* are field in registers and always unsigned. So > add 'U' to clarify. > > This should help with MISRA Rule 7.2. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > xen/include/public/arc

Re: [PATCH 2/3] xen/arm: vgic: Use 'unsigned int' rather than 'int' whenever it is possible

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Julien Grall wrote: > From: Julien Grall > > Switch to unsigned int for the return/parameters of the following > functions: > * REG_RANK_NR(): 'b' (number of bits) and the return is always positive. > 'n' doesn't need to be size specific. > * vgic_rank_offset():

Re: [PATCH 1/3] xen/arm: vmmio: The number of entries cannot be negative

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Julien Grall wrote: > From: Julien Grall > > The number of virtual MMIO regions cannot be negative. So switch > the field 'num_entries' and 'max_num_entries' to 'unsigned int'. > > The new type is then propagated to the caller and the vGIC > code. > > Signed-off-by: Julien

[PATCH 3/3] xen/public: arch-arm: All PSR_* defines should be unsigned

2023-08-17 Thread Julien Grall
From: Julien Grall The defines PSR_* are field in registers and always unsigned. So add 'U' to clarify. This should help with MISRA Rule 7.2. Signed-off-by: Julien Grall --- xen/include/public/arch-arm.h | 52 +-- 1 file changed, 26 insertions(+), 26 deletions(

[PATCH 2/3] xen/arm: vgic: Use 'unsigned int' rather than 'int' whenever it is possible

2023-08-17 Thread Julien Grall
From: Julien Grall Switch to unsigned int for the return/parameters of the following functions: * REG_RANK_NR(): 'b' (number of bits) and the return is always positive. 'n' doesn't need to be size specific. * vgic_rank_offset(): 'b' (number of bits), 'n' (register index), 's'

[PATCH 0/3] xen/arm: Some clean-up found with -Wconversion and -Warith-conversion

2023-08-17 Thread Julien Grall
From: Julien Grall Hi all, This is a small series to fix some of the issues found while playing with -Wconversion and -Warith-conversion. There are a lot more but the bulk are in - bitmap - cpumask - nodemask - bitops/atomics - find_* Some are not too difficult to address but other there

[PATCH 1/3] xen/arm: vmmio: The number of entries cannot be negative

2023-08-17 Thread Julien Grall
From: Julien Grall The number of virtual MMIO regions cannot be negative. So switch the field 'num_entries' and 'max_num_entries' to 'unsigned int'. The new type is then propagated to the caller and the vGIC code. Signed-off-by: Julien Grall --- xen/arch/arm/domain.c | 3 ++- xen/ar

[PATCH] rombios: Work around GCC issue 99578

2023-08-17 Thread Andrew Cooper
GCC 12 objects to pointers derived from a constant: util.c: In function 'find_rsdp': util.c:429:16: error: array subscript 0 is outside array bounds of 'uint16_t[0]' {aka 'short unsigned int[]'} [-Werror=array-bounds] 429 | ebda_seg = *(uint16_t *)ADDR_FROM_SEG_OFF(0x40, 0xe); cc1:

Re: [XEN PATCH v2 1/3] vm_event: rework inclusions to use arch-indipendent header

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Nicola Vetrini wrote: > The arch-specific header should be included by the > common header , so that the latter can be included > in the source files. > > This also resolves violations of MISRA C:2012 Rule 8.4 that were > caused by declarations for > 'vm_event_{fill_regs,set_

Re: [XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Federico Serafini wrote: > Add entries to the exclude-list.json for those files that need to be > excluded from the analysis scan. > > Signed-off-by: Federico Serafini Acked-by: Stefano Stabellini > --- > Changes in v2: > - fixed indentation. > --- > docs/misra/exclude-l

Re: [XEN PATCH 1/2] automation/eclair: update configuration

2023-08-17 Thread Stefano Stabellini
On Thu, 17 Aug 2023, Federico Serafini wrote: > Mark more files as "adopted" and configure Rule 8.3 in order to: > - exclude violations involving the type ret_t; > - exclude violations involving both an internal and an external file, > thus avoiding touching adopted code. > > Signed-off-by: Fede

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

2023-08-17 Thread osstest service owner
flight 182370 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182370/ 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

Re: [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available

2023-08-17 Thread Nicola Vetrini
Are you saying that CONFIG_VGA implies CONFIG_VIDEO and therefore "#ifdef CONFIG_VGA" at line 14 of vga.h can be used instead of the #ifdefs inherited from the original locations to wrap all the declarations that are being moved? Yes - see drivers/video/Kconfig. Jan Ok then. I guess I can

[PATCH v2 4/4] virtio-blk: remove batch notification BH

2023-08-17 Thread Stefan Hajnoczi
There is a batching mechanism for virtio-blk Used Buffer Notifications that is no longer needed because the previous commit added batching to virtio_notify_irqfd(). Note that this mechanism was rarely used in practice because it is only enabled when EVENT_IDX is not negotiated by the driver. Moder

[PATCH v2 3/4] virtio: use defer_call() in virtio_irqfd_notify()

2023-08-17 Thread Stefan Hajnoczi
virtio-blk and virtio-scsi invoke virtio_irqfd_notify() to send Used Buffer Notifications from an IOThread. This involves an eventfd write(2) syscall. Calling this repeatedly when completing multiple I/O requests in a row is wasteful. Use the defer_call() API to batch together virtio_irqfd_notify(

[PATCH v2 2/4] util/defer-call: move defer_call() to util/

2023-08-17 Thread Stefan Hajnoczi
The networking subsystem may wish to use defer_call(), so move the code to util/ where it can be reused. As a reminder of what defer_call() does: This API defers a function call within a defer_call_begin()/defer_call_end() section, allowing multiple calls to batch up. This is a performance optimi

[PATCH v2 1/4] block: rename blk_io_plug_call() API to defer_call()

2023-08-17 Thread Stefan Hajnoczi
Prepare to move the blk_io_plug_call() API out of the block layer so that other subsystems call use this deferred call mechanism. Rename it to defer_call() but leave the code in block/plug.c. The next commit will move the code out of the block layer. Suggested-by: Ilya Maximets Signed-off-by: St

[PATCH v2 0/4] virtio-blk: use blk_io_plug_call() instead of notification BH

2023-08-17 Thread Stefan Hajnoczi
v2: - Rename blk_io_plug() to defer_call() and move it to util/ so the net subsystem can use it [Ilya] - Add defer_call_begin()/end() to thread_pool_completion_bh() to match Linux AIO and io_uring completion batching Replace the seldom-used virtio-blk notification BH mechanism with blk_io_plug

Re: [PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Andrew Cooper
On 17/08/2023 2:13 pm, Jan Beulich wrote: > On 17.08.2023 14:58, Andrew Cooper wrote: >> On 17/08/2023 12:47 pm, Jan Beulich wrote: >>> Our present approach is working fully behind the compiler's back. This >>> was found to not work with LTO. Employ ld's --wrap= option instead. Note >>> that while

Re: [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available

2023-08-17 Thread Jan Beulich
On 17.08.2023 16:52, Nicola Vetrini wrote: > On 17/08/2023 15:28, Jan Beulich wrote: >> On 17.08.2023 14:39, Nicola Vetrini wrote: >>> --- a/xen/include/xen/vga.h >>> +++ b/xen/include/xen/vga.h >>> @@ -15,4 +15,20 @@ >>> extern struct xen_vga_console_info vga_console_info; >>> #endif >>> >>> +in

Re: [PATCH v1 02/57] xen/riscv: add public arch-riscv.h

2023-08-17 Thread Jan Beulich
On 16.08.2023 12:19, Oleksii Kurochko wrote: > --- /dev/null > +++ b/xen/include/public/arch-riscv.h > @@ -0,0 +1,90 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > +/* > + * Guest OS interface to RISC-V Xen. > + * Initially based on the ARM implementation. > + */ > + > +#ifndef __XEN_PUBLI

Re: [PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Andrew Cooper
On 17/08/2023 2:15 pm, Jan Beulich wrote: > On 17.08.2023 14:58, Andrew Cooper wrote: >> On 17/08/2023 12:47 pm, Jan Beulich wrote: >>> Our present approach is working fully behind the compiler's back. This >>> was found to not work with LTO. Employ ld's --wrap= option instead. Note >>> that while

Re: [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available

2023-08-17 Thread Nicola Vetrini
On 17/08/2023 15:28, Jan Beulich wrote: On 17.08.2023 14:39, Nicola Vetrini wrote: --- a/xen/include/xen/vga.h +++ b/xen/include/xen/vga.h @@ -15,4 +15,20 @@ extern struct xen_vga_console_info vga_console_info; #endif +int fill_console_start_info(struct dom0_vga_console_info *); + +#ifdef CON

Re: [PATCH -next] xen: xenbus: Use helper function IS_ERR_OR_NULL()

2023-08-17 Thread Juergen Gross
On 17.08.23 03:47, Li Zetao wrote: Use IS_ERR_OR_NULL() to detect an error pointer or a null pointer open-coding to simplify the code. Signed-off-by: Li Zetao Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature.asc Descri

[libvirt test] 182368: tolerable all pass - PUSHED

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

Re: [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available

2023-08-17 Thread Jan Beulich
On 17.08.2023 14:39, Nicola Vetrini wrote: > --- a/xen/include/xen/vga.h > +++ b/xen/include/xen/vga.h > @@ -15,4 +15,20 @@ > extern struct xen_vga_console_info vga_console_info; > #endif > > +int fill_console_start_info(struct dom0_vga_console_info *); > + > +#ifdef CONFIG_X86 > +void vesa_earl

Re: [PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Jan Beulich
On 17.08.2023 14:58, Andrew Cooper wrote: > On 17/08/2023 12:47 pm, Jan Beulich wrote: >> Our present approach is working fully behind the compiler's back. This >> was found to not work with LTO. Employ ld's --wrap= option instead. Note >> that while this makes the build work at least with new enou

Re: [PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Jan Beulich
On 17.08.2023 14:58, Andrew Cooper wrote: > On 17/08/2023 12:47 pm, Jan Beulich wrote: >> Our present approach is working fully behind the compiler's back. This >> was found to not work with LTO. Employ ld's --wrap= option instead. Note >> that while this makes the build work at least with new enou

Re: [PATCH] xsm: removing inclusion of byteorder.h

2023-08-17 Thread Jan Beulich
On 17.08.2023 14:49, Daniel P. Smith wrote: > On 8/17/23 08:17, Jason Andryuk wrote: >> On Wed, Aug 16, 2023 at 3:05 PM Daniel P. Smith >> wrote: >>> >>> This is to complement patch 'common: move Linux-inherited fixed width type >>> decls to common header' by removing the unnecessary include of >>

Re: [PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Andrew Cooper
On 17/08/2023 12:47 pm, Jan Beulich wrote: > Our present approach is working fully behind the compiler's back. This > was found to not work with LTO. Employ ld's --wrap= option instead. Note > that while this makes the build work at least with new enough gcc (it > doesn't with gcc7, for example, du

Re: [PATCH v2 1/2] xen/vpci: header: filter PCI capabilities

2023-08-17 Thread Jan Beulich
On 16.08.2023 20:50, Stewart Hildebrand wrote: > If there are no capabilities to be exposed to the guest, a future status > register handler likely would want to mask the PCI_STATUS_CAP_LIST bit. See > [1] > for a suggestion of how this might be tracked in struct vpci_header. Can we actually get

Re: [PATCH] xsm: removing inclusion of byteorder.h

2023-08-17 Thread Daniel P. Smith
On 8/17/23 08:17, Jason Andryuk wrote: On Wed, Aug 16, 2023 at 3:05 PM Daniel P. Smith wrote: This is to complement patch 'common: move Linux-inherited fixed width type decls to common header' by removing the unnecessary include of 'asm/byteorder.h'. In the process of removing these includes,

[XEN PATCH v2 0/3] xen: fix inclusions and static storage duration

2023-08-17 Thread Nicola Vetrini
The files touched by this series contain function or variable definitions with no prior declaration visible, because it's inside an header that is not included or it's not present anywhere. This is a risk in itself, but also violates MISRA C:2012 Rule 8.4, which states the following: "A compatible

[XEN PATCH v2 2/3] vpci/msix: make 'get_slot' static

2023-08-17 Thread Nicola Vetrini
The function can become static since it's used only within this file. This also resolves a violation of MISRA C:2012 Rule 8.4 due to the absence of a declaration before the function definition. Fixes: b177892d2d0e ("vpci/msix: handle accesses adjacent to the MSI-X table") Signed-off-by: Nicola Vet

[XEN PATCH v2 1/3] vm_event: rework inclusions to use arch-indipendent header

2023-08-17 Thread Nicola Vetrini
The arch-specific header should be included by the common header , so that the latter can be included in the source files. This also resolves violations of MISRA C:2012 Rule 8.4 that were caused by declarations for 'vm_event_{fill_regs,set_registers,monitor_next_interrupt}' in not being visible

[XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available

2023-08-17 Thread Nicola Vetrini
The declarations for 'vesa_{init,early_init,endboot}' needed by 'xen/drivers/video/vesa.c' and 'fill_console_start_info' in 'vga.c' are now available by moving the relative code inside 'vga.h'. The latter is moved from 'xen/console.h' because of its close relation with vga. This also resolves viola

Re: [PATCH] xsm: removing inclusion of byteorder.h

2023-08-17 Thread Jason Andryuk
On Wed, Aug 16, 2023 at 3:05 PM Daniel P. Smith wrote: > > This is to complement patch 'common: move Linux-inherited fixed width type > decls to common header' by removing the unnecessary include of > 'asm/byteorder.h'. In the process of removing these includes, the ordering was > corrected to com

Re: [PATCH] xsm: removing inclusion of byteorder.h

2023-08-17 Thread Jan Beulich
On 16.08.2023 21:04, Daniel P. Smith wrote: > This is to complement patch 'common: move Linux-inherited fixed width type > decls to common header' by removing the unnecessary include of > 'asm/byteorder.h'. In the process of removing these includes, the ordering was > corrected to comply with curre

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

2023-08-17 Thread Jan Beulich
On 17.08.2023 12:32, Oleksii wrote: > On Wed, 2023-08-16 at 15:39 +0200, Jan Beulich wrote: >> Plus the question remains of it necessarily being com1: Is there no >> way with DT to have multiple serial ports (e.g. one for the console >> and one for a debugger)? If there indeed isn't, then unconditi

Xen 4.17.2, 4.16.5, 4.15.5, and 4.14.6 released

2023-08-17 Thread Jan Beulich
All, we're pleased to announce the release of four bug fixing Xen versions. Xen 4.17.2 has been available for a little while from its git repository http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable-4.17 (tag RELEASE-4.17.2) or from the XenProject download page https://xenpr

[PATCH] x86emul: rework wrapping of libc functions in test and fuzzing harnesses

2023-08-17 Thread Jan Beulich
Our present approach is working fully behind the compiler's back. This was found to not work with LTO. Employ ld's --wrap= option instead. Note that while this makes the build work at least with new enough gcc (it doesn't with gcc7, for example, due to tool chain side issues afaict), according to m

Re: [XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Julien Grall
Hi, On 17/08/2023 11:13, Federico Serafini wrote: On 17/08/23 12:02, Federico Serafini wrote: On 17/08/23 11:57, Julien Grall wrote: Hi, On 17/08/2023 10:55, Federico Serafini wrote: Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Sign

[xen-unstable test] 182367: tolerable FAIL

2023-08-17 Thread osstest service owner
flight 182367 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/182367/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-qemuu-rhel6hvm-amd 7 xen-install fail in 182359 pass in 182367 test-amd64-i386-libvirt-qemuu-de

[XTF PATCH] xtf-runner: python3 fix

2023-08-17 Thread Anthony PERARD
issue: File "/home/xtf/xtf-runner", line 410, in interpret_selection if not line.startswith("xen_caps"): ^^^ TypeError: startswith first arg must be bytes or a tuple of bytes, not str Adding `universal_newlines` open stdout as text file, so line should be a

Re: [XEN PATCH 2/2] misra: add more entires to exclude-list.json

2023-08-17 Thread Federico Serafini
On 17/08/23 11:42, Federico Serafini wrote: Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- docs/misra/exclude-list.json | 12 1 file changed, 12 insertions(+) diff --git a/docs/misra/

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

2023-08-17 Thread Oleksii
On Wed, 2023-08-16 at 15:39 +0200, Jan Beulich wrote: > On 11.08.2023 17:30, Oleksii Kurochko wrote: > > @@ -1555,6 +1566,9 @@ static bool __init parse_positional(struct > > ns16550 *uart, char **str) > > } > > else > >  #endif > > +    if ( strncmp(conf, "poll", 4) == 0 ) > >

Re: [XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Federico Serafini
On 17/08/23 12:02, Federico Serafini wrote: On 17/08/23 11:57, Julien Grall wrote: Hi, On 17/08/2023 10:55, Federico Serafini wrote: Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- Changes in v2: -

Re: [XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Federico Serafini
On 17/08/23 11:57, Julien Grall wrote: Hi, On 17/08/2023 10:55, Federico Serafini wrote: Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- Changes in v2: - fixed indentation. What's the difference with

Re: [XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Julien Grall
Hi, On 17/08/2023 10:55, Federico Serafini wrote: Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- Changes in v2: - fixed indentation. What's the difference with the other v2 you posted ~10 min ago? Is

[XEN PATCH v2] misra: add more entires to exclude-list.json

2023-08-17 Thread Federico Serafini
Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- Changes in v2: - fixed indentation. --- docs/misra/exclude-list.json | 12 1 file changed, 12 insertions(+) diff --git a/docs/misra/exclude-lis

[XEN PATCH 1/2] automation/eclair: update configuration

2023-08-17 Thread Federico Serafini
Mark more files as "adopted" and configure Rule 8.3 in order to: - exclude violations involving the type ret_t; - exclude violations involving both an internal and an external file, thus avoiding touching adopted code. Signed-off-by: Federico Serafini --- .../eclair_analysis/ECLAIR/deviations.

[XEN PATCH 0/2] Add files to the exclude list and update ECL files

2023-08-17 Thread Federico Serafini
Add files to exclude-list.json and adapt the ECLAIR configuration to keep track of the changes. Federico Serafini (2): automation/eclair: update configuration misra: add more entires to exclude-list.json .../eclair_analysis/ECLAIR/deviations.ecl | 29 +++ .../eclair_analy

[XEN PATCH 2/2] misra: add more entires to exclude-list.json

2023-08-17 Thread Federico Serafini
Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini --- docs/misra/exclude-list.json | 12 1 file changed, 12 insertions(+) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json in

Re: Remove unused function 'do_trap_fiq'

2023-08-17 Thread Nicola Vetrini
On 16/08/2023 17:28, Julien Grall wrote: On 16/08/2023 16:18, Nicola Vetrini wrote: Hi, Hi, the function mentioned in the subject, defined in 'xen/arch/arm/traps.c' seems to have no caller (either from C code or from asm code), so I think it can be safely removed, unless there's a reason f

Re: [XEN][PATCH v7 15/19] xen/arm: Implement device tree node removal functionalities

2023-08-17 Thread Julien Grall
Hi, On 17/08/2023 01:31, Vikram Garhwal wrote: On Mon, Jun 05, 2023 at 10:07:48PM +0100, Julien Grall wrote: +{ +int rc = 0; +struct domain *d = hardware_domain; +domid_t domid; +unsigned int naddr, len; +unsigned int i, nirq; + +domid = dt_device_used_by(device_node);

Re: [XEN][PATCH v7 04/19] common/device_tree: change __unflatten_device_tree() type

2023-08-17 Thread Julien Grall
Hi, On 17/08/2023 00:49, Vikram Garhwal wrote: On Tue, Jun 06, 2023 at 12:09:35PM -0700, Vikram Garhwal wrote: Hi Julien, Will update the commit message regarding why we need to export this for dtbo programming. On 6/5/23 12:04 PM, Julien Grall wrote: Hi, Title: 'type' is a bit confusing he

Re: [PATCH] IOMMU/x86: fix build with old gcc after IO-APIC RTE changes

2023-08-17 Thread Julien Grall
Hi, On 17/08/2023 08:25, Jan Beulich wrote: On 17.08.2023 09:06, Julien Grall wrote: On 17/08/2023 07:39, Jan Beulich wrote: On 16.08.2023 18:57, Julien Grall wrote: On 16/08/2023 10:51, Jan Beulich wrote: Old gcc won't cope with initializers involving unnamed struct/union Can you specify

Re: [RFC PATCH v2 2/2] xen/vpci: header: avoid cast for value passed to vpci_read_val

2023-08-17 Thread Jan Beulich
On 16.08.2023 20:50, Stewart Hildebrand wrote: > The only purpose of this is to give an idea of what it might look like to > introduce a new memory allocation in order to get rid of the casts for the > value > passed to vpci_read_val. If this is deemed preferable vs the casts, I will > squash it f

Re: [PATCH] IOMMU/x86: fix build with old gcc after IO-APIC RTE changes

2023-08-17 Thread Jan Beulich
On 17.08.2023 09:06, Julien Grall wrote: > On 17/08/2023 07:39, Jan Beulich wrote: >> On 16.08.2023 18:57, Julien Grall wrote: >>> On 16/08/2023 10:51, Jan Beulich wrote: Old gcc won't cope with initializers involving unnamed struct/union >>> >>> Can you specify the newest version of GCC that

Re: [XEN][PATCH v8 11/19] xen/iommu: Introduce iommu_remove_dt_device()

2023-08-17 Thread Jan Beulich
On 17.08.2023 02:39, Vikram Garhwal wrote: > Remove master device from the IOMMU. This will be helpful when removing the > overlay nodes using dynamic programming during run time. > > Signed-off-by: Vikram Garhwal Since formally required: Acked-by: Jan Beulich Jan

Re: [PATCH] IOMMU/x86: fix build with old gcc after IO-APIC RTE changes

2023-08-17 Thread Julien Grall
Hi Jan, On 17/08/2023 07:39, Jan Beulich wrote: On 16.08.2023 18:57, Julien Grall wrote: On 16/08/2023 10:51, Jan Beulich wrote: Old gcc won't cope with initializers involving unnamed struct/union Can you specify the newest version of GCC that breaks? This would help to reproduce your proble

Re: [XEN][PATCH v8 09/19] xen/iommu: Move spin_lock from iommu_dt_device_is_assigned to caller

2023-08-17 Thread Jan Beulich
On 17.08.2023 02:39, Vikram Garhwal wrote: > --- /dev/null > +++ b/xen/include/xen/iommu-private.h I don't think private headers should live in include/xen/. Judging from only the patches I was Cc-ed on, ... > @@ -0,0 +1,28 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* > + * xen/iommu-p