[RFC PATCH 4/4] xen/arm: Implement standard PV time interface as per ARM DEN 0057A

2025-06-21 Thread Koichiro Den
The VCPUOP_register_runstate_memory_area hypercall is still actively used, e.g., in the Linux arm64 codebase. When KPTI is enabled, the area was not registered from the beginning due to the VA not always being valid. In such cases, Linux falls back to using the standard PV time interface (ARM DEN 0

[RFC PATCH 1/4] xen/arm: Add wrapper find_unused_regions

2025-06-21 Thread Koichiro Den
This is preparatory work for the upcoming commits that implement the standard PV time interface (ARM DEN 0057A). No functional changes intended. Signed-off-by: Koichiro Den --- xen/arch/arm/domain_build.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) dif

[RFC PATCH 2/4] xen/arm: Move make_hypervisor_node()

2025-06-21 Thread Koichiro Den
Even though make_hypervisor_node() does not rely on the /reserved-memory instantiation when calling find_unused_regions() (the wrapper introduced in the previous commit), the next but one commit will use it for PV time shared regions, in addition to the existing extended regions. Move it as a prer

[RFC PATCH 3/4] xen/arm: Move make_resv_memory_node()

2025-06-21 Thread Koichiro Den
The /reserved-memory node is inherently not specific to static-shmem. In the next commit, child nodes will be added under /reserved-memory for the stolen time shared memory regions. No functional changes intended. Signed-off-by: Koichiro Den --- xen/arch/arm/domain_build.c | 40 ++

[RFC PATCH 0/4] arm: Implement ARM DEN 0057A PV time interface

2025-06-21 Thread Koichiro Den
This series proposes the standard PV time implementation as per ARM DEN 0057A. The first three commits are preparatory work, where no functional changes are intended. The motivation: The VCPUOP_register_runstate_memory_area hypercall is still actively used, e.g., in the Linux arm64. When KPTI

[XEN PATCH] xen: fix header guard generation for asm-generic headers

2025-06-21 Thread Nicola Vetrini
Dashes were wrongly not translated into underscores, thus generating an unexpected guard identifier. Fixes: ee79f378311b ("xen: add header guards to generated asm generic headers") Signed-off-by: Nicola Vetrini --- xen/scripts/Makefile.asm-generic | 2 +- 1 file changed, 1 insertion(+), 1 deleti

xen_pciback: error enabling MSI-X / MSI for guest -- WAS: Re: Kernel panic when passing through 2 identical PCI devices

2025-06-21 Thread J. Roeleveld
Hi all, I managed to get past the kernel panic (sort of) by doing the following: 1) Ensure system is fully OFF before booting. A reset/reboot will cause these errors. 2) Fix the BIOS config to ensure the PCI-ports are split correctly. If anyone has a Supermicro board and gets errors about PCI-

[PATCH] xen/credit2: factor in previous active unit's credit in csched2_runtime()

2025-06-21 Thread Koichiro Den
When a running unit is about to be scheduled out due to a competing unit with the highest remaining credit, the residual credit of the previous unit is currently ignored in csched2_runtime() because it hasn't yet been reinserted into the runqueue. As a result, two equally weighted, busy units can

Re: [XEN PATCH] xen: fix header guard generation for asm-generic headers

2025-06-21 Thread Stefano Stabellini
On Sat, 21 Jun 2025, Nicola Vetrini wrote: > Dashes were wrongly not translated into underscores, thus generating > an unexpected guard identifier. > > Fixes: ee79f378311b ("xen: add header guards to generated asm generic > headers") > Signed-off-by: Nicola Vetrini Thank you so much for the qu