[PATCH v3 2/2] efi: Support using Shim's LoadImage protocol

2025-09-06 Thread Gerald Elder-Vass
The existing Verify functionality of the Shim lock protocol is deprecated and will be removed, the alternative it to use the LoadImage interface to perform the verification. When the loading is successful we won't be using the newly loaded image (as of yet) so we must then immediately unload the i

Re: [PATCH v6 00/15] x86: introduce NS16550-compatible UART emulator

2025-09-06 Thread Stefano Stabellini
Oleksii and all, I would like to consider patches 1-12 of this patch series for 4.21, pending the few minor comments I made addressed. On Fri, 5 Sep 2025, dmuk...@xen.org wrote: > x86 port of Xen lacks vUART facility similar to Arm's vpl011 to support x86 > guest OS bring up in the embedded setu

[PATCH 6/7] sparc/mm: support nested lazy_mmu sections

2025-09-06 Thread Kevin Brodsky
The lazy_mmu API now allows nested sections to be handled by arch code: enter() can return a flag if called inside another lazy_mmu section, so that the matching call to leave() leaves any optimisation enabled. This patch implements that new logic for sparc: if there is an active batch, then enter

[PATCH 5/7] powerpc/mm: support nested lazy_mmu sections

2025-09-06 Thread Kevin Brodsky
The lazy_mmu API now allows nested sections to be handled by arch code: enter() can return a flag if called inside another lazy_mmu section, so that the matching call to leave() leaves any optimisation enabled. This patch implements that new logic for powerpc: if there is an active batch, then ent

[PATCH 4/7] x86/xen: support nested lazy_mmu sections (again)

2025-09-06 Thread Kevin Brodsky
Commit 49147beb0ccb ("x86/xen: allow nesting of same lazy mode") originally introduced support for nested lazy sections (LAZY_MMU and LAZY_CPU). It later got reverted by commit c36549ff8d84 as its implementation turned out to be intolerant to preemption. Now that the lazy_mmu API allows enter() to

Re: [PATCH v2] Strip build path directories in tools and hypervisor

2025-09-06 Thread Marek Marczykowski-Górecki
On Fri, Sep 05, 2025 at 10:15:12AM +0200, Jan Beulich wrote: > On 04.09.2025 16:27, Marek Marczykowski-Górecki wrote: > > On Thu, Sep 04, 2025 at 02:58:20PM +0200, Jan Beulich wrote: > >> On 04.09.2025 13:41, Marek Marczykowski-Górecki wrote: > >>> Use -fdebug-prefix-map in preference to -ffile-pre

Re: [PATCH v2 3/4] xen/arm64: allow to make aarch32 support optional

2025-09-06 Thread Julien Grall
On 05/09/2025 13:15, Volodymyr Babchuk wrote: Hi, Grygorii Strashko writes: On 27.08.25 03:16, Volodymyr Babchuk wrote: Hi Grygorii, Grygorii Strashko writes: From: Grygorii Strashko Now Arm64 AArch32 guest support is always enabled and built-in while not all Arm64 platforms supports

Re: [PATCH 7/7] mm: update lazy_mmu documentation

2025-09-06 Thread Mike Rapoport
On Thu, Sep 04, 2025 at 01:57:36PM +0100, Kevin Brodsky wrote: > We now support nested lazy_mmu sections on all architectures > implementing the API. Update the API comment accordingly. > > Signed-off-by: Kevin Brodsky Acked-by: Mike Rapoport (Microsoft) > --- > include/linux/pgtable.h | 14 +

Re: [PATCH v6 05/15] emul/ns16x50: implement SCR register

2025-09-06 Thread Mykola Kvach
Hi Denis, On Sat, Sep 6, 2025 at 2:27 AM wrote: > > From: Denis Mukhin > > Add SCR register emulation to the I/O port handler. > Firmware (e.g. OVMF) may use SCR during the guest OS boot. > > Signed-off-by: Denis Mukhin > --- > Changes since v5: > - moved earlier in the series to simplify I/O h

Re: [PATCH v6 03/15] emul/ns16x50: implement emulator stub

2025-09-06 Thread Mykola Kvach
Hi Denis, On Sat, Sep 6, 2025 at 2:27 AM wrote: > > From: Denis Mukhin > > The change is the first on the way on introducing minimally functional > NS16550-compatible UART emulator. > > Define UART state and a set of emulated registers. > > Implement alloc/free vUART hooks. > > Stub out I/O port

Re: [PATCH v6 02/15] xen/8250-uart: update definitions

2025-09-06 Thread Mykola Kvach
Hi Denis, On Sat, Sep 6, 2025 at 2:27 AM wrote: > > From: Denis Mukhin > > Added missing definitions needed for NS16550 UART emulator. > > Newly introduced MSR definitions re-used in the existing ns16550 driver. > > Also, corrected FCR DMA definition bit#3 (0x08) as per: > https://www.ti.com/l

[PATCH v7 03/12] xen/arm: vgic: implement helper functions for virq checks

2025-09-06 Thread Leonid Komarianskyi
Introduced two new helper functions for vGIC: vgic_is_valid_line and vgic_is_spi. The functions are similar to the newly introduced gic_is_valid_line and gic_is_spi, but they verify whether a vIRQ is available for a specific domain, while GIC-specific functions validate INTIDs for the real GIC hard

Re: [PATCH 2/7] mm: introduce local state for lazy_mmu sections

2025-09-06 Thread Lorenzo Stoakes
On Fri, Sep 05, 2025 at 12:14:39AM +0200, Kevin Brodsky wrote: > On 04/09/2025 19:28, Lorenzo Stoakes wrote: > > Hi Kevin, > > > > This is causing a build failure: > > > > In file included from ./include/linux/mm.h:31, > > from mm/userfaultfd.c:8: > > mm/userfaultfd.c: In function

Re: [PATCH v6 01/15] emul/vuart: introduce framework for UART emulators

2025-09-06 Thread Mykola Kvach
Hi Denis, On Sat, Sep 6, 2025 at 2:27 AM wrote: > > From: Denis Mukhin > > Introduce a driver framework to abstract UART emulators in the hypervisor. > > That allows for architecture-independent handling of virtual UARTs in the > console driver and simplifies enabling new UART emulators. > > The

Re: [PATCH 1/7] mm: remove arch_flush_lazy_mmu_mode()

2025-09-06 Thread Mike Rapoport
On Thu, Sep 04, 2025 at 01:57:30PM +0100, Kevin Brodsky wrote: > This function has only ever been used in arch/x86, so there is no > need for other architectures to implement it. Remove it from > linux/pgtable.h and all architectures besides x86. > > The arm64 implementation is not empty but it is