[PATCH v6] vpci: Add resizable bar support

2025-01-22 Thread Jiqian Chen
Some devices, like discrete GPU of amd, support resizable bar capability, but vpci of Xen doesn't support this feature, so they fail to resize bars and then cause probing failure. According to PCIe spec, each bar that supports resizing has two registers, PCI_REBAR_CAP and PCI_REBAR_CTRL. So, add h

Re: Request for Documentation on Bringing Up Xen on R-Car H3e (H3ULCB)

2025-01-22 Thread Stefano Stabellini
Hi John, Let me add a few people that might have more information for you on this topic. Typically, the minimal set of operations to get started is the following. Build Xen from sources (hypervisor only): export CROSS_COMPILE=/path/to/cross-compiler export XEN_TARGET_ARCH=arm64 cd xen.git/xen; m

Re: [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode

2025-01-22 Thread Stefano Stabellini
On Wed, 22 Jan 2025, Jan Beulich wrote: > On 22.01.2025 10:49, Roger Pau Monné wrote: > > On Wed, Jan 22, 2025 at 09:43:53AM +0100, Jan Beulich wrote: > >> On 21.01.2025 19:02, Roger Pau Monné wrote: > >>> On Tue, Jan 21, 2025 at 11:35:42AM +0100, Jan Beulich wrote: > On 21.01.2025 09:52, Roge

Re: [PATCH v3 02/24] arm/vuart: move vpl011-related code to vpl011 emulator

2025-01-22 Thread Jason Andryuk
On 2025-01-22 02:26, Jan Beulich wrote: On 21.01.2025 23:56, Jason Andryuk wrote: On 2025-01-03 20:58, Denis Mukhin via B4 Relay wrote: --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -579,6 +571,9 @@ static void __serial_rx(char c) if ( pv_shim && pv_console )

Re: [PATCH v2 2/5] x86/HVM: allocate emulation cache entries dynamically

2025-01-22 Thread Roger Pau Monné
On Wed, Jan 22, 2025 at 02:39:43PM +0100, Jan Beulich wrote: > On 22.01.2025 13:00, Roger Pau Monné wrote: > > On Tue, Oct 01, 2024 at 10:49:10AM +0200, Jan Beulich wrote: > >> Both caches may need higher capacity, and the upper bound will need to > >> be determined dynamically based on CPUID polic

Re: [PATCH v2 3/5] x86/HVM: correct read/write split at page boundaries

2025-01-22 Thread Roger Pau Monné
On Tue, Oct 01, 2024 at 10:49:40AM +0200, Jan Beulich wrote: > The MMIO cache is intended to have one entry used per independent memory > access that an insn does. This, in particular, is supposed to be > ignoring any page boundary crossing. Therefore when looking up a cache > entry, the access'es

Re: [PATCH v3] x86emul: further correct 64-bit mode zero count repeated string insn handling

2025-01-22 Thread Oleksii Kurochko
On 1/22/25 2:29 PM, Jan Beulich wrote: On 22.01.2025 11:23, Roger Pau Monné wrote: On Fri, Aug 04, 2023 at 07:58:21AM +0200, Jan Beulich wrote: In an entirely different context I came across Linux commit 428e3d08574b ("KVM: x86: Fix zero iterations REP-string"), which points out that we're sti

Re: [PATCH v4] xen: update pvcalls_front_accept prototype

2025-01-22 Thread Jürgen Groß
On 21.01.25 00:38, Stefano Stabellini wrote: While currently there are no in-tree callers of these functions, it is best to keep them up-to-date with the latest network API. In addition, add the missing EXPORT_SYMBOL_GPL to the functions listed in pvcalls-front.h. Signed-off-by: Stefano Stabell

Re: [PATCH v2 2/5] x86/HVM: allocate emulation cache entries dynamically

2025-01-22 Thread Jan Beulich
On 22.01.2025 13:00, Roger Pau Monné wrote: > On Tue, Oct 01, 2024 at 10:49:10AM +0200, Jan Beulich wrote: >> Both caches may need higher capacity, and the upper bound will need to >> be determined dynamically based on CPUID policy (for AMX'es TILELOAD / >> TILESTORE at least). >> >> Signed-off-by:

Re: [PATCH v3] x86emul: further correct 64-bit mode zero count repeated string insn handling

2025-01-22 Thread Jan Beulich
On 22.01.2025 11:23, Roger Pau Monné wrote: > On Fri, Aug 04, 2023 at 07:58:21AM +0200, Jan Beulich wrote: >> In an entirely different context I came across Linux commit 428e3d08574b >> ("KVM: x86: Fix zero iterations REP-string"), which points out that >> we're still doing things wrong: For one, t

Re: [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode

2025-01-22 Thread Jan Beulich
On 22.01.2025 10:49, Roger Pau Monné wrote: > On Wed, Jan 22, 2025 at 09:43:53AM +0100, Jan Beulich wrote: >> On 21.01.2025 19:02, Roger Pau Monné wrote: >>> On Tue, Jan 21, 2025 at 11:35:42AM +0100, Jan Beulich wrote: On 21.01.2025 09:52, Roger Pau Monné wrote: > On Tue, Jan 21, 2025 at 0

Re: Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-22 Thread Ard Biesheuvel
On Wed, 22 Jan 2025 at 13:25, Joel Granados wrote: > > On Tue, Jan 21, 2025 at 02:40:16PM +0100, Alexander Gordeev wrote: > > On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: > > > > Hi Joel, > > > > > Add the const qualifier to all the ctl_tables in the tree except for > > > watchdo

Re: Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-22 Thread Joel Granados
On Tue, Jan 21, 2025 at 02:40:16PM +0100, Alexander Gordeev wrote: > On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: > > Hi Joel, > > > Add the const qualifier to all the ctl_tables in the tree except for > > watchdog_hardlockup_sysctl, memory_allocation_profiling_sysctls, > > load

Re: [PATCH v2 2/5] x86/HVM: allocate emulation cache entries dynamically

2025-01-22 Thread Roger Pau Monné
On Tue, Oct 01, 2024 at 10:49:10AM +0200, Jan Beulich wrote: > Both caches may need higher capacity, and the upper bound will need to > be determined dynamically based on CPUID policy (for AMX'es TILELOAD / > TILESTORE at least). > > Signed-off-by: Jan Beulich Just a couple of comments below. >

Xen Project Grenoble Meetup - Schedule

2025-01-22 Thread Kelly Choi
Hi all, The schedule for the Xen Project meetup has now been published. https://cfp.vates.tech/xen-meetup-2025/schedule/ Hope to see you there! Thanks, Kelly Choi Community Manager Xen Project

Re: [PATCH v2 1/5] x86/HVM: correct MMIO emulation cache bounds check

2025-01-22 Thread Roger Pau Monné
On Tue, Oct 01, 2024 at 10:48:20AM +0200, Jan Beulich wrote: > To avoid overrunning the internal buffer we need to take the offset into > the buffer into account. > > Fixes: d95da91fb497 ("x86/HVM: grow MMIO cache data size to 64 bytes") > Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné

Re: [PATCH v3] x86emul: further correct 64-bit mode zero count repeated string insn handling

2025-01-22 Thread Roger Pau Monné
On Fri, Aug 04, 2023 at 07:58:21AM +0200, Jan Beulich wrote: > In an entirely different context I came across Linux commit 428e3d08574b > ("KVM: x86: Fix zero iterations REP-string"), which points out that > we're still doing things wrong: For one, there's no zero-extension at > all on AMD. And the

[PATCH v5] Avoid crash calling PrintErrMesg from efi_multiboot2

2025-01-22 Thread Frediano Ziglio
Although code is compiled with -fpic option data is not position independent. This causes data pointer to become invalid if code is not relocated properly which is what happens for efi_multiboot2 which is called by multiboot entry code. Code tested adding PrintErrMesg(L"Test message", EFI_BUFFE

Re: [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode

2025-01-22 Thread Roger Pau Monné
On Wed, Jan 22, 2025 at 09:43:53AM +0100, Jan Beulich wrote: > On 21.01.2025 19:02, Roger Pau Monné wrote: > > On Tue, Jan 21, 2025 at 11:35:42AM +0100, Jan Beulich wrote: > >> On 21.01.2025 09:52, Roger Pau Monné wrote: > >>> On Tue, Jan 21, 2025 at 09:13:38AM +0100, Jan Beulich wrote: > On 2

Request for Documentation on Bringing Up Xen on R-Car H3e (H3ULCB)

2025-01-22 Thread L, John Preetham (893)
Dear Xen Community, I hope this message finds you well. I am currently working on a project that involves bringing up Xen on the Renesas R-Car H3e (H3ULCB) platform. I am seeking guidance on where I can find the proper documentation for this process. Specifically, I am looking for comprehensiv

Re: [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode

2025-01-22 Thread Jan Beulich
On 21.01.2025 19:02, Roger Pau Monné wrote: > On Tue, Jan 21, 2025 at 11:35:42AM +0100, Jan Beulich wrote: >> On 21.01.2025 09:52, Roger Pau Monné wrote: >>> On Tue, Jan 21, 2025 at 09:13:38AM +0100, Jan Beulich wrote: On 21.01.2025 00:27, Stefano Stabellini wrote: > If I understood it rig

Re: [PATCH v2 3/4] automation: rename CONFIG_MEM_ACCESS -> CONFIG_VM_EVENT

2025-01-22 Thread Nicola Vetrini
On 2025-01-21 11:23, Sergiy Kibrik wrote: Following the renaming of Xen build option. Signed-off-by: Sergiy Kibrik For the ECLAIR part: Reviewed-by: Nicola Vetrini --- automation/eclair_analysis/xen_arm_config | 2 +- automation/eclair_analysis/xen_x86_config | 2 +- automation/gitlab-ci/