Re: [PATCH v8 00/11] Allow x86 to unflatten DTs

2025-07-22 Thread Jan Beulich
On 22.07.2025 02:05, Alejandro Vallejo wrote: > Hi, > > Really minor changes wrt v7 > > 1. s/BOOTMOD_XSM/BOOTMOD_XSM_POLICY/ > 2. Remove stale obj-y statements in the last patch > > pipeline: > https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/1940366600 > > v7: > https://lo

Re: [PATCH v8 7/7] xen/sysctl: wrap around sysctl hypercall

2025-07-22 Thread Jan Beulich
On 22.07.2025 08:59, Penny, Zheng wrote: > [Public] > >> -Original Message- >> From: Jan Beulich >> Sent: Tuesday, July 22, 2025 1:33 PM >> To: Penny, Zheng >> Cc: Huang, Ray ; Stefano Stabellini >> ; Andrew Cooper ; Roger >> Pau Monné ; Anthony PERARD >> ; Orzel, Michal ; Julien >> Gral

Re: [PATCH v1] xen: move getdomaininfo() to domain.c

2025-07-22 Thread Jan Beulich
On 22.07.2025 07:04, Penny Zheng wrote: > Function getdomaininfo() is not only invoked by domctl-op, but also sysctl-op, > so it shall better live in domain.c, rather than domctl.c. Which is also > applied for arch_get_domain_info(). Style corrections shall be applied at > the same time while movin

Re: [PATCH v2 6/8] serial: 8250_dw: Fix typo "notifer"

2025-07-22 Thread WangYuli
Hi greg k-h, On 2025/7/16 16:08, Greg KH wrote: Signed-off-by: WangYuli Is your name all one word like that, or should there be a " " between them? If I were to follow Western naming conventions, my name would be written as 'Yuli Wang'. However, frankly, I find it unnecessary and can't be

[PATCH v3 0/8] treewide: Fix typo "notifer"

2025-07-22 Thread WangYuli
There are some spelling mistakes of 'notifer' in comments which should be 'notifier'. Fix them and add it to scripts/spelling.txt. WangYuli (8): KVM: x86: Fix typo "notifer" cxl: mce: Fix typo "notifer" drm/xe: Fix typo "notifer" net: mvneta: Fix typo "notifer" wifi: brcmfmac: Fix typo

[PATCH v3 5/8] wifi: brcmfmac: Fix typo "notifer"

2025-07-22 Thread WangYuli
There is a spelling mistake of 'notifer' in the comment which should be 'notifier'. Acked-by: Arend van Spriel Signed-off-by: WangYuli --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadco

[PATCH v3 1/8] KVM: x86: Fix typo "notifer"

2025-07-22 Thread WangYuli
There are some spelling mistakes of 'notifer' which should be 'notifier'. Signed-off-by: WangYuli --- arch/x86/kvm/i8254.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 739aa6c0d0c3..9ff55112900a 100644 --- a/arch/x86/kv

[PATCH v3 4/8] net: mvneta: Fix typo "notifer"

2025-07-22 Thread WangYuli
There is a spelling mistake of 'notifer' in the comment which should be 'notifier'. Reviewed-by: Simon Horman Signed-off-by: WangYuli --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/ne

[PATCH v3 2/8] cxl: mce: Fix typo "notifer"

2025-07-22 Thread WangYuli
According to the context, "mce_notifer" should be "mce_notifier". Fixes: 516e5bd0b6bf ("cxl: Add mce notifier to emit aliased address for extended linear cache") Reviewed-by: Jonathan Cameron Reviewed-by: Dave Jiang Signed-off-by: WangYuli --- drivers/cxl/core/mce.h | 2 +- 1 file changed, 1

[PATCH v3 6/8] serial: 8250_dw: Fix typo "notifer"

2025-07-22 Thread WangYuli
There is a spelling mistake of 'notifer' in the comment which should be 'notifier'. Reviewed-by: Andy Shevchenko Signed-off-by: WangYuli --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/ser

[PATCH v3 8/8] scripts/spelling.txt: Add notifer||notifier to spelling.txt

2025-07-22 Thread WangYuli
This typo was not listed in scripts/spelling.txt, thus it was more difficult to detect. Add it for convenience. Reviewed-by: Jonathan Cameron Signed-off-by: WangYuli --- scripts/spelling.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index c9

[PATCH v3 3/8] drm/xe: Fix typo "notifer"

2025-07-22 Thread WangYuli
There is a spelling mistake of 'notifer' in the comment which should be 'notifier'. Signed-off-by: WangYuli --- drivers/gpu/drm/xe/xe_vm_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h index 1979e9bdb

[PATCH v3 7/8] xen/xenbus: Fix typo "notifer"

2025-07-22 Thread WangYuli
There is a spelling mistake of 'notifer' in the comment which should be 'notifier'. Reviewed-by: Juergen Gross Signed-off-by: WangYuli --- include/xen/xenbus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h index 3f90bdd387b6..00b

[PATCH] device-tree/kernel: Use memcpy in output_length()

2025-07-22 Thread Michal Orzel
Trying to boot a compressed kernel with UBSAN enabled, results in the following warning: (XEN) UBSAN: Undefined behaviour in common/device-tree/kernel.c:21:12 (XEN) load of misaligned address 0a0040f89867 for type 'uint32_t' (XEN) which requires 4 byte alignment ... (XEN)[<0a529964>

Re: [PATCH v2 6/8] serial: 8250_dw: Fix typo "notifer"

2025-07-22 Thread Greg KH
On Tue, Jul 22, 2025 at 03:22:18PM +0800, WangYuli wrote: > Hi greg k-h, > > On 2025/7/16 16:08, Greg KH wrote: > > > Signed-off-by: WangYuli > > Is your name all one word like that, or should there be a " " between > > them? > > If I were to follow Western naming conventions, my name would be w

preparations for 4.19.3

2025-07-22 Thread Jan Beulich
All, the release is due in the 1st week of August. Please point out backports you find missing from the respective staging branch, but which you consider relevant. Jan

Re: [PATCH] coverage: add support for GCC 15

2025-07-22 Thread Jan Beulich
On 16.07.2025 23:25, Volodymyr Babchuk wrote: > GCC 15 (with commit "Add prime path coverage to gcc/gcov") added a > new, tenth counter. Reflect this in gcc_4_7.c. > > Signed-off-by: Volodymyr Babchuk Acked-by: Jan Beulich

Re: [XEN][PATCH v2 1/2] xen/evtchn: enable build optimization for evtchn_move_pirqs()/send_guest_pirq()

2025-07-22 Thread Jan Beulich
On 18.07.2025 12:11, Grygorii Strashko wrote: > From: Grygorii Strashko > > On platforms without PIRQ support evtchn_move_pirqs()/send_guest_pirq() > functions are unreachable (Misra rule 2.1). > > Move these function under CONFIG_HAS_PIRQ ifdefs to fix Misra rule 2.1 > violation and resolve cal

Re: [PATCH v5 1/3] drivers: Change amd_iommu struct to contain pci_sbdf_t, simplify code

2025-07-22 Thread Jan Beulich
On 17.07.2025 09:31, Andrii Sultanov wrote: > Following on from 250d87dc3ff9 ("x86/msi: Change __msi_set_enable() to > take pci_sbdf_t"), make struct amd_iommu contain pci_sbdf_t directly > instead of specifying seg+bdf separately and regenerating sbdf_t from them, > which simplifies code. > > Blo

Re: [PATCH v5 3/3] drivers: Make ioapic_sbdf and hpet_sbdf contain pci_sbdf_t

2025-07-22 Thread Jan Beulich
On 17.07.2025 09:31, Andrii Sultanov wrote: > Following a similar change to amd_iommu struct, make two more structs > take pci_sbdf_t directly instead of seg and bdf separately. This lets us > drop several conversions from the latter to the former and simplifies > several comparisons and assignment

[PATCH v1] xen/x86: move monitor.o out of PV_SHIM_EXCLUSIVE condition

2025-07-22 Thread Penny Zheng
Since we move "!PV_SHIM_EXCLUSIVE" dependency from CONFIG_HVM, there is a chance that a randconfig picking both PV_SHIM_EXCLUSIVE=y and HVM=y results in hvm.c being built, but monitor.c not being built, which leaves functions like monitor_traps(), etc, undefined, causing linking to fail. So we move

[PATCH v1] xen/domctl: make domctl_lock generic

2025-07-22 Thread Penny Zheng
Not only domctl-op could do foreign updates to guest state, some hypercall, like HVMOP_set_param, could also do, and they all need domctl_lock for syncronization. Later, we will introduce CONFIG_DOMCTL to wrap domctl.c. In order to continue using domctl_lock when CONFIG_DOMCTL not defined, we'd lik

RE: [PATCH v1] xen: move getdomaininfo() to domain.c

2025-07-22 Thread Penny, Zheng
[Public] > -Original Message- > From: Jan Beulich > Sent: Tuesday, July 22, 2025 3:16 PM > To: Penny, Zheng > Cc: Huang, Ray ; Stefano Stabellini > ; Julien Grall ; Bertrand Marquis > ; Orzel, Michal ; > Volodymyr Babchuk ; Andrew Cooper > ; Anthony PERARD ; > Roger Pau Monné ; Daniel P.

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jason Andryuk
On 2025-07-21 20:19, Jason Andryuk wrote: Expose a domain's capabilities - control, hardware or xenstore - through stable get domain state hypercall. The xenstore domain can use this information to assign appropriate permissions on connections. Repurpose the 16bit pad field for this purpose. S

[PATCH v9] xen/console: introduce domain_console struct

2025-07-22 Thread dmkhn
From: Denis Mukhin Introduce domain_console for grouping data structures used for integrating domain's diagnostic console with Xen's console driver. Group all pbuf-related data structures under domain_console. Rename the moved fields to plain .buf, .idx and .lock names, since all uses of the fi

Re: [PATCH] x86/hvm: Replace do_sched_op calls with their underlying logic

2025-07-22 Thread Jason Andryuk
On 2025-07-22 14:07, Teddy Astie wrote: do_sched_op(SCHEDOP_yield) just calls vcpu_yield(). Remove the indirection through the hypercall handler and use the function directly. Perform the same for SCHEDOP_block. Not a functional change. Signed-off-by: Teddy Astie --- xen/arch/x86/hvm/hvm.c

RE: [EXTERNAL] Re: [XEN PATCH v3] xen/arinc653: fix delay in the start of major frame

2025-07-22 Thread Choi, Anderson
Stewart, > EXT email: be mindful of links/attachments. > > Hi, > > It largely looks OK to me, just a few small comments below. > > On 7/18/25 05:16, Anderson Choi wrote: >> ARINC653 specificaion requires partition scheduling to be >> deterministic > > Typo: s/specificaion/specification/ > Addr

Re: [PATCH v1] xen: move getdomaininfo() to domain.c

2025-07-22 Thread Stefano Stabellini
On Tue, 22 Jul 2025, Jan Beulich wrote: > On 22.07.2025 07:04, Penny Zheng wrote: > > Function getdomaininfo() is not only invoked by domctl-op, but also > > sysctl-op, > > so it shall better live in domain.c, rather than domctl.c. Which is also > > applied for arch_get_domain_info(). Style correc

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Stefano Stabellini
On Mon, 21 Jul 2025, Jason Andryuk wrote: > Expose a domain's capabilities - control, hardware or xenstore - through > stable get domain state hypercall. > > The xenstore domain can use this information to assign appropriate > permissions on connections. > > Repurpose the 16bit pad field for this

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jan Beulich
On 22.07.2025 14:09, Jason Andryuk wrote: > On 2025-07-21 20:19, Jason Andryuk wrote: >> Expose a domain's capabilities - control, hardware or xenstore - through >> stable get domain state hypercall. >> >> The xenstore domain can use this information to assign appropriate >> permissions on connecti

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jan Beulich
On 22.07.2025 02:19, Jason Andryuk wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -195,6 +195,14 @@ static void set_domain_state_info(struct > xen_domctl_get_domain_state *info, > info->state |= XEN_DOMCTL_GETDOMSTATE_STATE_DYING; > if ( d->is_dying == DOMDYING_d

Re: [PATCH] device-tree/kernel: Use memcpy in output_length()

2025-07-22 Thread Orzel, Michal
On 22/07/2025 06:50, Jason Andryuk wrote: > On 2025-07-22 03:46, Michal Orzel wrote: >> Trying to boot a compressed kernel with UBSAN enabled, results in the >> following warning: >> (XEN) UBSAN: Undefined behaviour in common/device-tree/kernel.c:21:12 >> (XEN) load of misaligned address 0a0

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jürgen Groß
On 23.07.25 08:28, Jan Beulich wrote: On 22.07.2025 02:19, Jason Andryuk wrote: --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -195,6 +195,14 @@ static void set_domain_state_info(struct xen_domctl_get_domain_state *info, info->state |= XEN_DOMCTL_GETDOMSTATE_STATE_DYING;

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jürgen Groß
On 23.07.25 08:25, Jan Beulich wrote: On 22.07.2025 14:09, Jason Andryuk wrote: On 2025-07-21 20:19, Jason Andryuk wrote: Expose a domain's capabilities - control, hardware or xenstore - through stable get domain state hypercall. The xenstore domain can use this information to assign appropria

Re: [PATCH v3 1/2] xen: Add capabilities to get_domain_state

2025-07-22 Thread Jan Beulich
On 23.07.2025 08:34, Jürgen Groß wrote: > On 23.07.25 08:28, Jan Beulich wrote: >> On 22.07.2025 02:19, Jason Andryuk wrote: >>> --- a/xen/common/domain.c >>> +++ b/xen/common/domain.c >>> @@ -195,6 +195,14 @@ static void set_domain_state_info(struct >>> xen_domctl_get_domain_state *info, >>>

Re: [PATCH] device-tree/kernel: Use memcpy in output_length()

2025-07-22 Thread Bertrand Marquis
Hi, > On 23 Jul 2025, at 08:33, Orzel, Michal wrote: > > > > On 22/07/2025 06:50, Jason Andryuk wrote: >> On 2025-07-22 03:46, Michal Orzel wrote: >>> Trying to boot a compressed kernel with UBSAN enabled, results in the >>> following warning: >>> (XEN) UBSAN: Undefined behaviour in common/dev

Re: [PATCH v7 1/8] vpci/header: Emulate extended capability list for dom0

2025-07-22 Thread Chen, Jiqian
On 2025/7/21 22:16, Roger Pau Monné wrote: > On Wed, Jul 09, 2025 at 05:34:28AM +, Chen, Jiqian wrote: >> On 2025/7/9 13:32, Jan Beulich wrote: >>> On 09.07.2025 07:29, Chen, Jiqian wrote: On 2025/7/8 22:10, Jan Beulich wrote: > On 04.07.2025 09:07, Jiqian Chen wrote: >> --- a/xen/

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Jan Beulich
On 22.07.2025 12:41, Oleksii Kurochko wrote: > On 7/21/25 2:18 PM, Jan Beulich wrote: >> On 18.07.2025 11:52, Oleksii Kurochko wrote: >>> On 7/17/25 12:25 PM, Jan Beulich wrote: On 17.07.2025 10:56, Oleksii Kurochko wrote: > On 7/16/25 6:18 PM, Jan Beulich wrote: >> On 16.07.2025 18:07

Re: [RFC PATCH v5 08/10] lib/arm: Add I/O memory copy helpers

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:41, Oleksii Moisieiev wrote: > This commit introduces two helper functions, `__memcpy_fromio` and > `__memcpy_toio`, to provide a robust mechanism for copying data between > standard memory and memory-mapped I/O (MMIO) space for the ARM > architecture. > > These functions are desi

Re: [RFC PATCH v5 09/10] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:41, Oleksii Moisieiev wrote: > --- a/docs/misc/xen-command-line.pandoc > +++ b/docs/misc/xen-command-line.pandoc > @@ -1105,6 +1105,15 @@ which serves as Driver domain. The SCMI will be > disabled for Dom0/hwdom and > SCMI nodes removed from Dom0/hwdom device tree. > (for exampl

Re: [PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Jan Beulich
On 22.07.2025 14:37, Alejandro Vallejo wrote: > On Tue Jul 22, 2025 at 2:18 PM CEST, Jan Beulich wrote: >> On 22.07.2025 13:59, Alejandro Vallejo wrote: >>> Reduce the scope of every variable so they are reinitialised. "iommu", >>> for instance, isn't being cleared, so the wrong flags may make it t

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Oleksii Kurochko
On 7/22/25 12:41 PM, Oleksii Kurochko wrote: On 7/21/25 2:18 PM, Jan Beulich wrote: On 18.07.2025 11:52, Oleksii Kurochko wrote: On 7/17/25 12:25 PM, Jan Beulich wrote: On 17.07.2025 10:56, Oleksii Kurochko wrote: On 7/16/25 6:18 PM, Jan Beulich wrote: On 16.07.2025 18:07, Oleksii Kurochk

[RFC PATCH v5 02/10] xen/arm: scmi-smc: update to be used under sci subsystem

2025-07-22 Thread Oleksii Moisieiev
From: Grygorii Strashko The introduced SCI (System Control Interface) subsystem provides unified interface to integrate in Xen SCI drivers which adds support for ARM firmware (EL3, SCP) based software interfaces (like SCMI) that are used in system management. The SCI subsystem allows to add drive

[RFC PATCH v5 10/10] docs: arm: add SCI SCMI SMC multi-agent driver docs

2025-07-22 Thread Oleksii Moisieiev
From: Grygorii Strashko Add SCI SCMI SMC multi-agent driver documentation. It includes a detailed description of the SCMI multi-agent driver. This document explains the driver's functionality, configuration, and the compilation process. The Xen SCMI multi-agent driver is designed to provide SCMI

[RFC PATCH v5 05/10] drivers: iommu: change error code when iommu is disabled

2025-07-22 Thread Oleksii Moisieiev
Change -ENOPNOTSUPP error code to -ENXIO when iommu is disabled during iommu_do_domctl call. As was discussed in [1] [0]: https://lore.kernel.org/xen-devel/alpine.DEB.2.22.394.2506171701190.1780597@ubuntu-linux-20-04-desktop/ Signed-off-by: Oleksii Moisieiev --- Changes in v5: - set error code

[RFC PATCH v5 00/10] xen/arm: scmi: introduce SCI SCMI SMC multi-agent support

2025-07-22 Thread Oleksii Moisieiev
Inroducing V4 RFC patch series on top of the Xen version 4.20-rc2 which includes implementation of the SCI SCMI SMC multi-agent support. Patch 1 "xen/arm: add generic SCI subsystem" - rebased and refactored - introduced DEVICE_ARM_SCI DT device class and used for SCI drivers probing instead of cu

[RFC PATCH v5 04/10] docs: arm: add docs for SCMI over SMC calls forwarding driver

2025-07-22 Thread Oleksii Moisieiev
From: Grygorii Strashko Add documentation section for Simple Arm SCMI over SMC/HVC calls forwarding driver (EL3). Signed-off-by: Grygorii Strashko Signed-off-by: Oleksii Moisieiev --- Changes in v5: - rename dom0_scmi_smc_passthrough in documentation .../arm/firmware/arm-scmi.rst

[RFC PATCH v5 09/10] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver

2025-07-22 Thread Oleksii Moisieiev
This patch introduces SCI driver to support for ARM EL3 Trusted Firmware-A (TF-A) which provides SCMI interface with multi-agnet support, as shown below. +-+ | | | EL3 TF-A SCMI | +---

[RFC PATCH v5 01/10] xen/arm: add generic SCI subsystem

2025-07-22 Thread Oleksii Moisieiev
This patch adds the basic framework for ARM SCI mediator. SCI is System Control Interface, which is designed to redirect requests from the Domains to ARM specific Firmware (for example SCMI). This will allow the devices, passed-through to the different Domains, to access to the System resources (su

[RFC PATCH v5 03/10] xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent

2025-07-22 Thread Oleksii Moisieiev
From: Grygorii Strashko The commit 3e322bef8bc0 ("xen/arm: firmware: Add SCMI over SMC calls handling layer") introduces simple driver which forwards SCMI over SMC calls from hwdom/dom0 to EL3 firmware (TF-A) with a single SCMI OSPM agent support. While it is working gracefully for hwdom/dom0 use

[RFC PATCH v5 08/10] lib/arm: Add I/O memory copy helpers

2025-07-22 Thread Oleksii Moisieiev
This commit introduces two helper functions, `__memcpy_fromio` and `__memcpy_toio`, to provide a robust mechanism for copying data between standard memory and memory-mapped I/O (MMIO) space for the ARM architecture. These functions are designed to handle memory transfers safely, accounting for pot

[RFC PATCH v5 06/10] xen/domctl: extend XEN_DOMCTL_assign_device to handle not only iommu

2025-07-22 Thread Oleksii Moisieiev
From: Grygorii Strashko Add chained handling of assigned DT devices to support access-controller functionality through SCI framework, so DT device assign request can be passed to FW for processing and enabling VM access to requested device (for example, device power management through FW interfac

[PATCH 07/10] dom0less: Turn arch_create_domUs into arch_parse_dom0less_node()

2025-07-22 Thread Alejandro Vallejo
It deals with a single domain, and will be called on a later patch by a new function parse_dom0less_node(), so the new name is apt. Also, pass parameters using boot_domain instead as the plan is to use it as dumping gound for all the extracted information from the bindings. Not a functional chang

[PATCH 06/10] dom0less: Create llc_color_str field in boot_domain

2025-07-22 Thread Alejandro Vallejo
Later patches move the bindings to a separate function and expect the outputs to land in fields of a boot_domain. Adjust llc_color_str to live inside boot_domain so it can be parsed later on. Not a functional change. Signed-off-by: Alejandro Vallejo --- xen/common/device-tree/dom0less-build.c |

[PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Alejandro Vallejo
Reduce the scope of every variable so they are reinitialised. "iommu", for instance, isn't being cleared, so the wrong flags may make it to domains that should not have them. Fixes: 1d2b4f3049fd("xen/arm, doc: Add a DT property to specify...") Signed-off-by: Alejandro Vallejo --- This is implicit

[PATCH 00/10] Extract bindings in dom0less code

2025-07-22 Thread Alejandro Vallejo
Hi, pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/1941315850 With boot_domain common between architectures, we're now in a position to use it as the common ground to dump results of dom0less bindings. This series is largely code motion with a few tweaks to make it sim

[PATCH 02/10] dt: Add cf_check to device-tree.c function pointers

2025-07-22 Thread Alejandro Vallejo
In preparation for it to be usable on x86 with IBT, tag targets of function pointers with cf_check Signed-off-by: Alejandro Vallejo Acked-by: Stefano Stabellini Reviewed-by: Jason Andryuk Reviewed-by: Edgar E. Iglesias --- xen/common/device-tree/device-tree.c | 28 ++--

[PATCH 01/10] static-evtchn: Add missing include

2025-07-22 Thread Alejandro Vallejo
From: Alejandro Vallejo When later on x86 starts using this file in later patches it won't find device_tree.h because it's only transitively included by arm. Make it explicit. Not a functional change. Signed-off-by: Alejandro Vallejo Acked-by: Stefano Stabellini Reviewed-by: Jason Andryuk -

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:34, Oleksii Kurochko wrote: > > On 7/22/25 12:41 PM, Oleksii Kurochko wrote: >> >> >> On 7/21/25 2:18 PM, Jan Beulich wrote: >>> On 18.07.2025 11:52, Oleksii Kurochko wrote: On 7/17/25 12:25 PM, Jan Beulich wrote: > On 17.07.2025 10:56, Oleksii Kurochko wrote: >> On 7

[PATCH 05/10] dom0less: Introduce kernel_info into the domain creation loop

2025-07-22 Thread Alejandro Vallejo
In later patches boot_domain becomes the common ground for the bindings to drop the extracted information. In preparation for the bindings themselves to be in a separate function, introduce kernel_info early in the domain construction loop. This simplifies a later diff, turning it into a strict cu

[PATCH 03/10] dom0less: Move asm-generic/dom0less-build.h -> xen/dom0less-build.h

2025-07-22 Thread Alejandro Vallejo
It's meant to be usable by anyone with CONFIG_DOM0LESS_BOOT. While moving, replace an inclusion of public/domctl.h by a forward declaration. Signed-off-by: Alejandro Vallejo --- xen/arch/arm/dom0less-build.c | 2 +- xen/arch/arm/domain_build.c | 2 +- x

[PATCH 04/10] bootfdt: Add createdomain arguments to boot_domain

2025-07-22 Thread Alejandro Vallejo
Add the arguments that create_domain() takes to boot_domain. This creates a consistent place to drop the outputs of the dom0less bindings. Not a functional change. Later patches use these fields as the outputs of the dom0less parsing functions. Signed-off-by: Alejandro Vallejo Acked-by: Stefano

[PATCH 10/10] dom0less: Parse dom0less bindings into createdomain input args

2025-07-22 Thread Alejandro Vallejo
The builder in common code already does this, but it's not callable independently from a separate location. Create a function x86 can call to use its own domain builder, using createdomain arguments as the parsed data. The bindings are moved on the next patch so it's strict code motion. Signed-of

[PATCH 08/10] dom0less: Allow arch_parse_dom0less_node() to be fallible

2025-07-22 Thread Alejandro Vallejo
Let the function return an errno, so fallible bindings are not precluded. Signed-off-by: Alejandro Vallejo --- xen/arch/arm/dom0less-build.c | 6 -- xen/common/device-tree/dom0less-build.c | 3 ++- xen/include/xen/dom0less-build.h| 6 +++--- 3 files changed, 9 insertions(+)

Re: [PATCH v2 16/17] xen/riscv: implement mfn_valid() and page reference, ownership handling helpers

2025-07-22 Thread Oleksii Kurochko
On 7/21/25 3:39 PM, Jan Beulich wrote: On 18.07.2025 16:37, Oleksii Kurochko wrote: On 7/2/25 12:28 PM, Jan Beulich wrote: On 02.07.2025 12:09, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -613,3 +612,91 @@ void __iomem *ioremap(paddr_t pa, size_t len) { retur

Re: [PATCH v2 16/17] xen/riscv: implement mfn_valid() and page reference, ownership handling helpers

2025-07-22 Thread Jan Beulich
On 22.07.2025 14:03, Oleksii Kurochko wrote: > On 7/21/25 3:39 PM, Jan Beulich wrote: >> On 18.07.2025 16:37, Oleksii Kurochko wrote: >>> On 7/2/25 12:28 PM, Jan Beulich wrote: On 02.07.2025 12:09, Jan Beulich wrote: > On 10.06.2025 15:05, Oleksii Kurochko wrote: >> @@ -613,3 +612,91 @

Re: [PATCH 01/10] static-evtchn: Add missing include

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:59, Alejandro Vallejo wrote: > From: Alejandro Vallejo > > When later on x86 starts using this file in later patches it won't find > device_tree.h because it's only transitively included by arm. > > Make it explicit. > > Not a functional change. > > Signed-off-by: Alejandro Va

Re: [PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Jan Beulich
On 22.07.2025 15:31, Alejandro Vallejo wrote: > On Tue Jul 22, 2025 at 2:57 PM CEST, Jan Beulich wrote: >> On 22.07.2025 14:37, Alejandro Vallejo wrote: >>> On Tue Jul 22, 2025 at 2:18 PM CEST, Jan Beulich wrote: On 22.07.2025 13:59, Alejandro Vallejo wrote: > Reduce the scope of every var

Re: [PATCH v2 16/17] xen/riscv: implement mfn_valid() and page reference, ownership handling helpers

2025-07-22 Thread Oleksii Kurochko
On 7/21/25 3:42 PM, Jan Beulich wrote: On 18.07.2025 16:49, Oleksii Kurochko wrote: On 7/2/25 12:09 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: Implement the mfn_valid() macro to verify whether a given MFN is valid by checking that it falls within the range [start_page

Re: [XEN][PATCH v2 1/2] xen/evtchn: enable build optimization for evtchn_move_pirqs()/send_guest_pirq()

2025-07-22 Thread Grygorii Strashko
On 22.07.25 11:23, Jan Beulich wrote: On 18.07.2025 12:11, Grygorii Strashko wrote: From: Grygorii Strashko On platforms without PIRQ support evtchn_move_pirqs()/send_guest_pirq() functions are unreachable (Misra rule 2.1). Move these function under CONFIG_HAS_PIRQ ifdefs to fix Misra rule

Re: [PATCH v3 3/8] drm/xe: Fix typo "notifer"

2025-07-22 Thread Thomas Hellström
On Tue, 2025-07-22 at 15:34 +0800, WangYuli wrote: > There is a spelling mistake of 'notifer' in the comment which > should be 'notifier'. > > Signed-off-by: WangYuli Reviewed-by: Thomas Hellström > --- >  drivers/gpu/drm/xe/xe_vm_types.h | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:59, Alejandro Vallejo wrote: > Reduce the scope of every variable so they are reinitialised. "iommu", > for instance, isn't being cleared, so the wrong flags may make it to > domains that should not have them. Yet "for instance" isn't quite right, is it? "iommu" is the only one wh

Re: [RFC PATCH v5 03/10] xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:41, Oleksii Moisieiev wrote: > --- a/docs/misc/xen-command-line.pandoc > +++ b/docs/misc/xen-command-line.pandoc > @@ -1096,6 +1096,15 @@ affinities to prefer but be not limited to the > specified node(s). > > Pin dom0 vcpus to their respective pcpus > > +### scmi_smc_passthr

Re: [RFC PATCH v5 05/10] drivers: iommu: change error code when iommu is disabled

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:41, Oleksii Moisieiev wrote: > Change -ENOPNOTSUPP error code to -ENXIO when iommu is disabled during > iommu_do_domctl call. As was discussed in [1] > > [0]: > https://lore.kernel.org/xen-devel/alpine.DEB.2.22.394.2506171701190.1780597@ubuntu-linux-20-04-desktop/ Hmm, I can't r

Re: [RFC PATCH v5 06/10] xen/domctl: extend XEN_DOMCTL_assign_device to handle not only iommu

2025-07-22 Thread Jan Beulich
On 22.07.2025 13:41, Oleksii Moisieiev wrote: > @@ -859,7 +860,25 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) > u_domctl) > case XEN_DOMCTL_test_assign_device: > case XEN_DOMCTL_deassign_device: > case XEN_DOMCTL_get_device_group: > +int ret1; > + >

Re: [PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Alejandro Vallejo
On Tue Jul 22, 2025 at 2:18 PM CEST, Jan Beulich wrote: > On 22.07.2025 13:59, Alejandro Vallejo wrote: >> Reduce the scope of every variable so they are reinitialised. "iommu", >> for instance, isn't being cleared, so the wrong flags may make it to >> domains that should not have them. > > Yet "fo

Re: [PATCH 01/10] static-evtchn: Add missing include

2025-07-22 Thread Alejandro Vallejo
On Tue Jul 22, 2025 at 2:10 PM CEST, Jan Beulich wrote: > On 22.07.2025 13:59, Alejandro Vallejo wrote: >> From: Alejandro Vallejo >> >> When later on x86 starts using this file in later patches it won't find >> device_tree.h because it's only transitively included by arm. >> >> Make it explicit

[PATCH 7/7] tools: allow to limit xenstore features via guest config

2025-07-22 Thread Juergen Gross
Add a guest config parameter "xenstore_feature_mask" allowing to limit the Xenstore features the guest can see and use. This can be needed in order to allow migrating a guest to a host running a Xenstore version providing less features than the source host. Signed-off-by: Juergen Gross --- docs/

[PATCH] x86/svm: Always flush TLB using TLB_CTRL_FLUSH_ALL

2025-07-22 Thread Teddy Astie
Xen currently uses an ASID scheme where: - ASIDs are cycled where a "TLB flush" is performed - When ASIDs wrap around, perform a full TLB flush - In exceptional cases, stop using ASIDs However, the TLB control mode used only flushes the current active ASID of the logical processor. Which mean that

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Oleksii Kurochko
On 7/22/25 2:00 PM, Jan Beulich wrote: On 22.07.2025 13:34, Oleksii Kurochko wrote: On 7/22/25 12:41 PM, Oleksii Kurochko wrote: On 7/21/25 2:18 PM, Jan Beulich wrote: On 18.07.2025 11:52, Oleksii Kurochko wrote: On 7/17/25 12:25 PM, Jan Beulich wrote: On 17.07.2025 10:56, Oleksii Kurochko

Re: [PATCH v5 00/25] drm/dumb-buffers: Fix and improve buffer-size calculation

2025-07-22 Thread Thomas Zimmermann
Ping for additional reviews. Especially patches 3, 4, and 5, which cover a wide range of drivers.. Am 13.06.25 um 11:00 schrieb Thomas Zimmermann: Dumb-buffer pitch and size is specified by width, height, bits-per-pixel plus various hardware-specific alignments. The calculation of these values

Re: [PATCH v5 00/25] drm/dumb-buffers: Fix and improve buffer-size calculation

2025-07-22 Thread Thomas Zimmermann
Ping for additional reviews. Especially patches 3, 4, and 5, which cover a wide range of drivers.. Am 13.06.25 um 11:00 schrieb Thomas Zimmermann: Dumb-buffer pitch and size is specified by width, height, bits-per-pixel plus various hardware-specific alignments. The calculation of these values

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Jan Beulich
On 22.07.2025 16:25, Oleksii Kurochko wrote: > On 7/22/25 2:00 PM, Jan Beulich wrote: >> On 22.07.2025 13:34, Oleksii Kurochko wrote: >>> On 7/22/25 12:41 PM, Oleksii Kurochko wrote: On 7/21/25 2:18 PM, Jan Beulich wrote: > On 18.07.2025 11:52, Oleksii Kurochko wrote: >> On 7/17/25 12:

Re: [PATCH v8 00/11] Allow x86 to unflatten DTs

2025-07-22 Thread Alejandro Vallejo
On Tue Jul 22, 2025 at 9:00 AM CEST, Jan Beulich wrote: > On 22.07.2025 02:05, Alejandro Vallejo wrote: >> Hi, >> >> Really minor changes wrt v7 >> >> 1. s/BOOTMOD_XSM/BOOTMOD_XSM_POLICY/ >> 2. Remove stale obj-y statements in the last patch >> This pipeline turned green on the build each c

Re: [PATCH 09/10] dom0less: Reinitialise all variables on each loop iteration

2025-07-22 Thread Alejandro Vallejo
On Tue Jul 22, 2025 at 2:57 PM CEST, Jan Beulich wrote: > On 22.07.2025 14:37, Alejandro Vallejo wrote: >> On Tue Jul 22, 2025 at 2:18 PM CEST, Jan Beulich wrote: >>> On 22.07.2025 13:59, Alejandro Vallejo wrote: Reduce the scope of every variable so they are reinitialised. "iommu", for i

Re: [PATCH 2/2] x86: generalise vcpu0 creation for a domain

2025-07-22 Thread Jan Beulich
On 17.07.2025 19:51, Alejandro Vallejo wrote: > Make alloc_dom0_vcpu0() viable as a general vcpu0 allocator. Keep > behaviour on any hwdom/ctldom identical to that dom0 used to have, and > make non-dom0 have auto node affinity. > > Rename the function to alloc_dom_vcpu0() to reflect this change in

Re: [PATCH v10 3/9] x86/p2m: Short-circuit p2m_is_altp2m() when CONFIG_ALTP2M=n

2025-07-22 Thread Jan Beulich
On 16.07.2025 22:15, Petr Beneš wrote: > From: Petr Beneš > > Wrap the p2m_is_altp2m() check with IS_ENABLED(CONFIG_ALTP2M) to allow the > compiler to short-circuit the condition at build time when ALTP2M is disabled. > > Signed-off-by: Petr Beneš Reviewed-by: Jan Beulich

Re: [PATCH v10 4/9] x86/altp2m: Remove p2m_altp2m_check stubs from unsupported architectures

2025-07-22 Thread Jan Beulich
On 16.07.2025 22:15, Petr Beneš wrote: > From: Petr Beneš > > The p2m_altp2m_check() stub was previously declared on all architectures, > even though the altp2m feature is only supported on x86. This patch removes > the unused stub definitions from ARM, PPC, and RISC-V, and wraps the actual > usa

Re: [PATCH v2 15/17] xen/riscv: Implement superpage splitting for p2m mappings

2025-07-22 Thread Oleksii Kurochko
On 7/21/25 3:34 PM, Jan Beulich wrote: On 17.07.2025 18:37, Oleksii Kurochko wrote: On 7/2/25 11:25 AM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: Add support for down large memory mappings ("superpages") in the RISC-V p2m mapping so that smaller, more precise mappings ("

Re: [PATCH] xen/livepatch: fixup relocations to replaced symbols

2025-07-22 Thread Roger Pau Monné
On Wed, Jul 16, 2025 at 06:31:03PM +0200, Jan Beulich wrote: > On 16.07.2025 18:00, Roger Pau Monne wrote: > > In a livepatch payload relocations will refer to included functions. If > > that function happens to be a replacement for an existing Xen function, the > > relocations on the livepatch pa

Re: [PATCH] xen/livepatch: fixup relocations to replaced symbols

2025-07-22 Thread Roger Pau Monné
On Mon, Jul 21, 2025 at 04:51:33PM +0100, Ross Lagerwall wrote: > On Wed, Jul 16, 2025 at 5:00 PM Roger Pau Monne wrote: > > > > In a livepatch payload relocations will refer to included functions. If > > that function happens to be a replacement for an existing Xen function, the > > relocations

Re: [PATCH] xen/livepatch: fixup relocations to replaced symbols

2025-07-22 Thread Jan Beulich
On 22.07.2025 17:02, Roger Pau Monné wrote: > On Wed, Jul 16, 2025 at 06:31:03PM +0200, Jan Beulich wrote: >> On 16.07.2025 18:00, Roger Pau Monne wrote: >>> In a livepatch payload relocations will refer to included functions. If >>> that function happens to be a replacement for an existing Xen fu

Re: [PATCH v2 15/17] xen/riscv: Implement superpage splitting for p2m mappings

2025-07-22 Thread Jan Beulich
On 22.07.2025 16:57, Oleksii Kurochko wrote: > > On 7/21/25 3:34 PM, Jan Beulich wrote: >> On 17.07.2025 18:37, Oleksii Kurochko wrote: >>> On 7/2/25 11:25 AM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: > Add support for down large memory mappings ("superpages") in th

Re: [PATCH 2/2] x86: generalise vcpu0 creation for a domain

2025-07-22 Thread Alejandro Vallejo
On Tue Jul 22, 2025 at 4:45 PM CEST, Jan Beulich wrote: > On 17.07.2025 19:51, Alejandro Vallejo wrote: >> Make alloc_dom0_vcpu0() viable as a general vcpu0 allocator. Keep >> behaviour on any hwdom/ctldom identical to that dom0 used to have, and >> make non-dom0 have auto node affinity. >> >> Ren

Re: [PATCH v2 6/8] serial: 8250_dw: Fix typo "notifer"

2025-07-22 Thread H. Peter Anvin
On July 22, 2025 12:57:33 AM PDT, Greg KH wrote: >On Tue, Jul 22, 2025 at 03:22:18PM +0800, WangYuli wrote: >> Hi greg k-h, >> >> On 2025/7/16 16:08, Greg KH wrote: >> > > Signed-off-by: WangYuli >> > Is your name all one word like that, or should there be a " " between >> > them? >> >> If I we

Re: [RFC PATCH v5 03/10] xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent

2025-07-22 Thread Oleksii Moisieiev
Hi Jan, On 22/07/2025 15:21, Jan Beulich wrote: > On 22.07.2025 13:41, Oleksii Moisieiev wrote: >> --- a/docs/misc/xen-command-line.pandoc >> +++ b/docs/misc/xen-command-line.pandoc >> @@ -1096,6 +1096,15 @@ affinities to prefer but be not limited to the >> specified node(s). >> >> Pin dom0

Re: [PATCH v10 5/9] x86/altp2m: Wrap altp2m-specific code in #ifdef CONFIG_ALTP2M

2025-07-22 Thread Jan Beulich
On 16.07.2025 22:15, Petr Beneš wrote: > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -2686,8 +2686,8 @@ static int cf_check hvmemul_tlb_op( > return rc; > } > > -static int cf_check hvmemul_vmfunc( > -struct x86_emulate_ctxt *ctxt) > +#ifdef CONFIG_ALTP2M >

Re: [PATCH v2 13/17] xen/riscv: Implement p2m_entry_from_mfn() and support PBMT configuration

2025-07-22 Thread Oleksii Kurochko
On 7/22/25 4:35 PM, Jan Beulich wrote: On 22.07.2025 16:25, Oleksii Kurochko wrote: On 7/22/25 2:00 PM, Jan Beulich wrote: On 22.07.2025 13:34, Oleksii Kurochko wrote: On 7/22/25 12:41 PM, Oleksii Kurochko wrote: On 7/21/25 2:18 PM, Jan Beulich wrote: On 18.07.2025 11:52, Oleksii Kurochko w

Re: [PATCH] device-tree/kernel: Use memcpy in output_length()

2025-07-22 Thread Jason Andryuk
On 2025-07-22 03:46, Michal Orzel wrote: Trying to boot a compressed kernel with UBSAN enabled, results in the following warning: (XEN) UBSAN: Undefined behaviour in common/device-tree/kernel.c:21:12 (XEN) load of misaligned address 0a0040f89867 for type 'uint32_t' (XEN) which requires 4 byte

[PATCH] x86/hvm: Replace do_sched_op calls with their underlying logic

2025-07-22 Thread Teddy Astie
do_sched_op(SCHEDOP_yield) just calls vcpu_yield(). Remove the indirection through the hypercall handler and use the function directly. Perform the same for SCHEDOP_block. Not a functional change. Signed-off-by: Teddy Astie --- xen/arch/x86/hvm/hvm.c | 3 ++- xen/arch/x86/hvm/svm

  1   2   >