[GIT PULL] xen: branch for v6.12-rc1a

2024-09-27 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-6.12-rc1a-tag xen: branch for v6.12-rc1a It contains a second round of Xen related changes and features for the 6.12 merge window: - A small fix of the xen-pciback driver for a warni

Re: [PATCH v3 0/5] x86/pvh: Make 64bit PVH entry relocatable

2024-09-25 Thread Juergen Gross
On 16.09.24 10:44, Juergen Gross wrote: x86 maintainers, are you going to pick this series up, or should I take it via the Xen tree? I take the silence as a "its okay to go via the Xen tree". Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_sig

Re: [KERNEL PATCH v9 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-23 Thread Juergen Gross
On 23.09.24 09:58, Juergen Gross wrote: On 23.09.24 07:49, Chen, Jiqian wrote: On 2024/9/21 05:17, Stefano Stabellini wrote: On Fri, 20 Sep 2024, Chen, Jiqian wrote: On 2024/9/19 06:49, Stefano Stabellini wrote: On Thu, 12 Sep 2024, Jiqian Chen wrote: On PVH dom0, when passthrough a device

Re: [KERNEL PATCH v9 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-23 Thread Juergen Gross
On 23.09.24 07:49, Chen, Jiqian wrote: On 2024/9/21 05:17, Stefano Stabellini wrote: On Fri, 20 Sep 2024, Chen, Jiqian wrote: On 2024/9/19 06:49, Stefano Stabellini wrote: On Thu, 12 Sep 2024, Jiqian Chen wrote: On PVH dom0, when passthrough a device to domU, QEMU and xl tools want to use gsi

[GIT PULL] xen: branch for v6.12-rc1

2024-09-18 Thread Juergen Gross
): xen/pci: Avoid -Wflex-array-member-not-at-end warning Juergen Gross (9): xen: use correct end address of kernel for conflict checking xen: introduce generic helper checking for memory map conflicts xen: move checks for e820 conflicts further up xen: move max_pfn in

Re: [PATCH v3 0/5] x86/pvh: Make 64bit PVH entry relocatable

2024-09-16 Thread Juergen Gross
x86 maintainers, are you going to pick this series up, or should I take it via the Xen tree? Juergen On 23.08.24 21:36, Jason Andryuk wrote: Using the PVH entry point, the uncompressed vmlinux is loaded at LOAD_PHYSICAL_ADDR, and execution starts in 32bit mode at the address in XEN_ELFNOTE_PH

Re: [PATCH v2 1/2] xen/swiotlb: add alignment check for dma buffers

2024-09-16 Thread Juergen Gross
On 16.09.24 08:56, Juergen Gross wrote: On 16.09.24 08:50, Jan Beulich wrote: On 16.09.2024 08:47, Juergen Gross wrote: --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c @@ -78,9 +78,15 @@ static inline int range_straddles_page_boundary(phys_addr_t p, size_t size

Re: [PATCH v2 1/2] xen/swiotlb: add alignment check for dma buffers

2024-09-15 Thread Juergen Gross
On 16.09.24 08:50, Jan Beulich wrote: On 16.09.2024 08:47, Juergen Gross wrote: --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c @@ -78,9 +78,15 @@ static inline int range_straddles_page_boundary(phys_addr_t p, size_t size) { unsigned long next_bfn, xen_pfn

[PATCH v2 0/2] xen/swiotlb: fix 2 issues in xen-swiotlb

2024-09-15 Thread Juergen Gross
Fix 2 issues in xen-swiotlb: - buffers need to be aligned properly - wrong buffer size if XEN_PAGE_SIZE < PAGE_SIZE Changes in V2: - added patch 2 Juergen Gross (2): xen/swiotlb: add alignment check for dma buffers xen/swiotlb: fix allocated size drivers/xen/swiotlb-xen.c |

[PATCH v2 2/2] xen/swiotlb: fix allocated size

2024-09-15 Thread Juergen Gross
ch Signed-off-by: Juergen Gross --- V2: - new patch --- drivers/xen/swiotlb-xen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index ddf5b1df632e..faa2fb7c74ae 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/x

[PATCH v2 1/2] xen/swiotlb: add alignment check for dma buffers

2024-09-15 Thread Juergen Gross
000:2b:00.0: Ring address not aligned 4xxx :2b:00.0: Failed to initialise service qat_crypto 4xxx :2b:00.0: Resetting device qat_dev0 4xxx: probe of :2b:00.0 failed with error -14 Fixes: 9435cce87950 ("xen/swiotlb: Add support for 64KB page granularity") Signed-off-by:

Re: [PATCH v3 5/5] x86/pvh: Add 64bit relocation page tables

2024-09-15 Thread Juergen Gross
, is determined by a single pvh_level2_ident_pgt page. It could be larger with more pages. Signed-off-by: Jason Andryuk Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH v3 2/5] x86/pvh: Make PVH entrypoint PIC for x86-64

2024-09-15 Thread Juergen Gross
andle running from the kernel high map. The UNWIND_HINT_END_OF_STACK is to silence: vmlinux.o: warning: objtool: pvh_start_xen+0x7f: unreachable instruction after the lret into 64bit code. Signed-off-by: Jason Andryuk Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Descri

[PATCH] xen/swiotlb: add alignment check for dma buffers

2024-09-13 Thread Juergen Gross
000:2b:00.0: Ring address not aligned 4xxx :2b:00.0: Failed to initialise service qat_crypto 4xxx :2b:00.0: Resetting device qat_dev0 4xxx: probe of :2b:00.0 failed with error -14 Signed-off-by: Juergen Gross --- drivers/xen/swiotlb-xen.c | 6 ++ 1 file changed, 6 inserti

[PATCH v3 6/7] xen: allow mapping ACPI data using a different physical address

2024-09-10 Thread Juergen Gross
. Signed-off-by: Juergen Gross --- V2: - new patch (Jan Beulich) V3: - add const attribute (Jan Beulich) - guard ACPI related code with CONFIG_ACPI (Jan Beulich) - use CONFIG_XEN_PV instead of CONFIG_XEN_PV_DOM0 --- arch/x86/include/asm/acpi.h| 8 +++ arch/x86/kernel/acpi/boot.c

[PATCH v3 4/7] xen: move max_pfn in xen_memory_setup() out of function scope

2024-09-10 Thread Juergen Gross
pages as passed from the hypervisor at boot time. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki Reviewed-by: Jan Beulich --- arch/x86/xen/setup.c | 52 ++-- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/arch/x86/xen

[PATCH v3 1/7] xen: use correct end address of kernel for conflict checking

2024-09-10 Thread Juergen Gross
t;xen: check for kernel memory conflicting with memory layout") Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki Reviewed-by: Jan Beulich --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/set

[PATCH v3 7/7] xen: tolerate ACPI NVS memory overlapping with Xen allocated memory

2024-09-10 Thread Juergen Gross
updated only after memory allocation is working, as the P2M map might need to be extended. Fixes: 808fdb71936c ("xen: check for kernel memory conflicting with memory layout") Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- V2: - remap helpers split off into othe

[PATCH v3 5/7] xen: add capability to remap non-RAM pages to different PFNs

2024-09-10 Thread Juergen Gross
information for other purposes than doing the remap will be added when needed. As the number of conflicts should be rather low (currently only machines with max. 1 conflict are known), save the remap data in a small statically allocated array. Signed-off-by: Juergen Gross --- V2: - split off from patch 5

[PATCH v3 3/7] xen: move checks for e820 conflicts further up

2024-09-10 Thread Juergen Gross
Move the checks for e820 memory map conflicts using the xen_chk_is_e820_usable() helper further up in order to prepare resolving some of the possible conflicts by doing some e820 map modifications, which must happen before evaluating the RAM layout. Signed-off-by: Juergen Gross Tested-by: Marek

[PATCH v3 2/7] xen: introduce generic helper checking for memory map conflicts

2024-09-10 Thread Juergen Gross
ly boot code is switching to the statically allocated initial kernel stack. Initial page tables and the kernel itself will be handled later. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki Reviewed-by: Jan Beulich --- arch/x86/xen/mmu_pv.c | 5 + arch/x86/xen

[PATCH v3 0/7] xen: fix dom0 PV boot on some AMD machines

2024-09-10 Thread Juergen Gross
in V3: - addressed comments Juergen Gross (7): xen: use correct end address of kernel for conflict checking xen: introduce generic helper checking for memory map conflicts xen: move checks for e820 conflicts further up xen: move max_pfn in xen_memory_setup() out of function scope xen

Re: [PATCH v2 6/7] xen: allow mapping ACPI data using a different physical address

2024-09-10 Thread Juergen Gross
On 20.08.24 11:56, Jan Beulich wrote: On 20.08.2024 10:20, Juergen Gross wrote: @@ -838,6 +839,31 @@ void __init xen_do_remap_nonram(void) pr_info("Remapped %u non-RAM page(s)\n", remapped); } +/* + * Xen variant of acpi_os_ioremap() taking potentially remapped non-RAM +

[PATCH v2 6/7] xen: allow mapping ACPI data using a different physical address

2024-08-20 Thread Juergen Gross
possibility to need above mentioned translation of a host physical address to the guest physical address. This modification requires to fix some #include of asm/acpi.h in x86 code to use linux/acpi.h instead. Signed-off-by: Juergen Gross --- V2: - new patch (Jan Beulich) --- arch/x86/include/asm

[PATCH v2 4/7] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-20 Thread Juergen Gross
pages as passed from the hypervisor at boot time. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 53 ++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen

[PATCH v2 7/7] xen: tolerate ACPI NVS memory overlapping with Xen allocated memory

2024-08-20 Thread Juergen Gross
ot;) Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- V2: - remap helpers split off into other patch --- arch/x86/xen/setup.c | 92 +++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xe

[PATCH v2 5/7] xen: add capability to remap non-RAM pages to different PFNs

2024-08-20 Thread Juergen Gross
information for other purposes than doing the remap will be added when needed. As the number of conflicts should be rather low (currently only machines with max. 1 conflict are known), save the remap data in a small statically allocated array. Signed-off-by: Juergen Gross --- V2: - split off from patch 5

[PATCH v2 2/7] xen: introduce generic helper checking for memory map conflicts

2024-08-20 Thread Juergen Gross
ayout when possible. Add the missing check for the xen_start_info area. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/mmu_pv.c | 5 + arch/x86/xen/setup.c | 34 -- arch/x86/xen/xen-ops.h | 3 ++- 3 files changed, 31

[PATCH v2 3/7] xen: move checks for e820 conflicts further up

2024-08-20 Thread Juergen Gross
Move the checks for e820 memory map conflicts using the xen_chk_is_e820_usable() helper further up in order to prepare resolving some of the possible conflicts by doing some e820 map modifications, which must happen before evaluating the RAM layout. Signed-off-by: Juergen Gross Tested-by: Marek

[PATCH v2 0/7] xen: fix dom0 PV boot on some AMD machines

2024-08-20 Thread Juergen Gross
There have been reports of failed boots with Xen due to an overlap of the kernel's memory with ACPI NVS reported in the E820 map of the host. This series fixes this issue by moving the NVS area in dom0 to some higher address. Changes in V2: - split of v1 patch 5 - new patch 6 Juergen Gro

[PATCH v2 1/7] xen: use correct end address of kernel for conflict checking

2024-08-20 Thread Juergen Gross
("xen: check for kernel memory conflicting with memory layout") Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 80

Re: [PATCH 0/5] xen: fix dom0 PV boot on some AMD machines

2024-08-15 Thread Juergen Gross
On 07.08.24 12:41, Juergen Gross wrote: There have been reports of failed boots with Xen due to an overlap of the kernel's memory with ACPI NVS reported in the E820 map of the host. This series fixes this issue by moving the NVS area in dom0 to some higher address. Juergen Gross (5):

Re: [PATCH v2 4/5] x86/kernel: Move page table macros to header

2024-08-15 Thread Juergen Gross
On 14.08.24 21:50, Jason Andryuk wrote: The PVH entry point will need an additional set of prebuild page tables. Move the macros and defines to pgtable_64.h, so they can be re-used. Signed-off-by: Jason Andryuk Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc

[PATCH v2 0/3] mini-os: mm: use a generic page table walker

2024-08-13 Thread Juergen Gross
Instead of open coding a page table walk multiple times, use a generic page table walker instead. This new page table walker will be used later for kexec support, too. Changes in V2: - addressed comments Juergen Gross (3): mini-os: mm: introduce generic page table walk function mini-os: mm

[PATCH v2 2/3] mini-os: mm: switch need_pgt() to use walk_pt()

2024-08-13 Thread Juergen Gross
Instead of open coding a page table walk, use walk_pt() in need_pgt(). Signed-off-by: Juergen Gross --- V2: - add comment and ASSERT() (Samuel Thibault) --- arch/x86/mm.c | 72 +-- 1 file changed, 30 insertions(+), 42 deletions(-) diff --git a

[PATCH v2 3/3] mini-os: mm: convert set_readonly() to use walk_pt()

2024-08-13 Thread Juergen Gross
Instead of having another copy of a page table walk in set_readonly(), just use walk_pt(). As it will be needed later anyway, split out the TLB flushing into a dedicated function. Signed-off-by: Juergen Gross --- V2: - clear count after doing an mmu_update call (Samuel Thibault) - do final

[PATCH v2 1/3] mini-os: mm: introduce generic page table walk function

2024-08-13 Thread Juergen Gross
. Merge it with the already existing pt_prot[] array. Rewrite get_pgt() to use the new walker. Signed-off-by: Juergen Gross --- V2: - add idx_from_va_lvl() helper (Samuel Thibault) --- arch/x86/mm.c | 157 +- 1 file changed, 118 insertions(+), 39

[PATCH 5/5] xen: tolerate ACPI NVS memory overlapping with Xen allocated memory

2024-08-07 Thread Juergen Gross
ot;) Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 133 ++- 1 file changed, 132 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index d678c0330971..dbb5d13ca61a 100644 ---

[PATCH 3/5] xen: move checks for e820 conflicts further up

2024-08-07 Thread Juergen Gross
Move the checks for e820 memory map conflicts using the xen_chk_is_e820_usable() helper further up in order to prepare resolving some of the possible conflicts by doing some e820 map modifications, which must happen before evaluating the RAM layout. Signed-off-by: Juergen Gross Tested-by: Marek

[PATCH 4/5] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-07 Thread Juergen Gross
pages as passed from the hypervisor at boot time. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 53 ++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen

[PATCH 1/5] xen: use correct end address of kernel for conflict checking

2024-08-07 Thread Juergen Gross
("xen: check for kernel memory conflicting with memory layout") Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 80

[PATCH 2/5] xen: introduce generic helper checking for memory map conflicts

2024-08-07 Thread Juergen Gross
ayout when possible. Add the missing check for the xen_start_info area. Signed-off-by: Juergen Gross Tested-by: Marek Marczykowski-Górecki --- arch/x86/xen/mmu_pv.c | 5 + arch/x86/xen/setup.c | 34 -- arch/x86/xen/xen-ops.h | 3 ++- 3 files changed, 31

[PATCH 0/5] xen: fix dom0 PV boot on some AMD machines

2024-08-07 Thread Juergen Gross
There have been reports of failed boots with Xen due to an overlap of the kernel's memory with ACPI NVS reported in the E820 map of the host. This series fixes this issue by moving the NVS area in dom0 to some higher address. Juergen Gross (5): xen: use correct end address of kerne

[PATCH 4/5] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-07 Thread Juergen Gross
pages as passed from the hypervisor at boot time. Signed-off-by: Juergen Gross Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 53 ++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index

[PATCH 5/5] xen: tolerate ACPI NVS memory overlapping with Xen allocated memory

2024-08-07 Thread Juergen Gross
ot;) Signed-off-by: Juergen Gross Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 133 ++- 1 file changed, 132 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index d678c0330971..dbb5d13ca61a 100644 --- a/arch/

[PATCH 2/5] xen: introduce generic helper checking for memory map conflicts

2024-08-07 Thread Juergen Gross
ayout when possible. Add the missing check for the xen_start_info area. Signed-off-by: Juergen Gross Marek Marczykowski-Górecki --- arch/x86/xen/mmu_pv.c | 5 + arch/x86/xen/setup.c | 34 -- arch/x86/xen/xen-ops.h | 3 ++- 3 files changed, 31 inserti

[PATCH 0/5] xen: fix dom0 PV boot on some AMD machines

2024-08-07 Thread Juergen Gross
There have been reports of failed boots with Xen due to an overlap of the kernel's memory with ACPI NVS reported in the E820 map of the host. This series fixes this issue by moving the NVS area in dom0 to some higher address. Juergen Gross (5): xen: use correct end address of kerne

[PATCH 3/5] xen: move checks for e820 conflicts further up

2024-08-07 Thread Juergen Gross
Move the checks for e820 memory map conflicts using the xen_chk_is_e820_usable() helper further up in order to prepare resolving some of the possible conflicts by doing some e820 map modifications, which must happen before evaluating the RAM layout. Signed-off-by: Juergen Gross Marek

[PATCH 1/5] xen: use correct end address of kernel for conflict checking

2024-08-07 Thread Juergen Gross
("xen: check for kernel memory conflicting with memory layout") Signed-off-by: Juergen Gross Marek Marczykowski-Górecki --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 806ddb2391d9..4bcc70a71

Re: [PATCH] Fixed incorrect output in xl's "help" command.

2024-08-05 Thread Juergen Gross
On 05.08.24 16:11, John E. Krokes wrote: In "xl help", the output includes this line: vsnd-list List virtual display devices for a domain This should obviously say "sound devices" instead of "display devices". Signed-off-by: John E. Krokes Reviewe

Re: [KEXEC] Lacking documentation and kexec failure with Xen 4.19-rc4 and 4.20-dev on linux host

2024-08-05 Thread Juergen Gross
On 30.07.24 06:02, A Kundu wrote: I am experiencing issues using kexec to load Xen 4.19-rc4 and 4.20-dev on a debian host. The current documentation at https://xenbits.xenproject.org/docs/4.19-testing/misc/kexec_and_kdump.txt appears to be missing crucial details on properly using kexec with the

Re: kexec failure with Xen 4.19-rc4 and 4.20-dev on linux host

2024-08-05 Thread Juergen Gross
On 05.08.24 08:01, Jan Beulich wrote: On 04.08.2024 15:17, A Kundu wrote: On 8/2/24 13:25, Jan Beulich wrote: > On 02.08.2024 09:28, A Kundu wrote: >> On 8/2/24 09:06, Baoquan He wrote: >>> On 07/31/24 at 06:34pm, A Kundu wrote: I am experiencing issues using kexec to load Xen 4.17(

[PATCH] tools/xenstored: switch stubdom live update to use file for state

2024-07-31 Thread Juergen Gross
With the introduction of 9pfs for Xenstore-stubdom it is now possible to use a file for saving the state when doing live update. This allows to move some environment specific actions back to the common source file lu.c. Signed-off-by: Juergen Gross --- tools/xenstored/lu.c| 75

[PATCH 1/3] mini-os: mm: introduce generic page table walk function

2024-07-31 Thread Juergen Gross
. Merge it with the already existing pt_prot[] array. Rewrite get_pgt() to use the new walker. Signed-off-by: Juergen Gross --- arch/x86/mm.c | 152 +- 1 file changed, 113 insertions(+), 39 deletions(-) diff --git a/arch/x86/mm.c b/arch/x86/mm.c

[PATCH 3/3] mini-os: mm: convert set_readonly() to use walk_pt()

2024-07-31 Thread Juergen Gross
Instead of having another copy of a page table walk in set_readonly(), just use walk_pt(). As it will be needed later anyway, split out the TLB flushing into a dedicated function. Signed-off-by: Juergen Gross --- arch/x86/mm.c | 119 +- 1 file

[PATCH 2/3] mini-os: mm: switch need_pgt() to use walk_pt()

2024-07-31 Thread Juergen Gross
Instead of open coding a page table walk, use walk_pt() in need_pgt(). Signed-off-by: Juergen Gross --- arch/x86/mm.c | 66 +++ 1 file changed, 24 insertions(+), 42 deletions(-) diff --git a/arch/x86/mm.c b/arch/x86/mm.c index cc4d41e9..accde291

[PATCH 0/3] mini-os: mm: use a generic page table walker

2024-07-31 Thread Juergen Gross
Instead of open coding a page table walk multiple times, use a generic page table walker instead. This new page table walker will be used later for kexec support, too. Juergen Gross (3): mini-os: mm: introduce generic page table walk function mini-os: mm: switch need_pgt() to use walk_pt

[GIT PULL] xen: branch for v6.11-rc1 take 2

2024-07-26 Thread Juergen Gross
| 19 +++--- arch/x86/xen/smp_pv.c | 1 + arch/x86/xen/xen-ops.h| 3 + 6 files changed, 74 insertions(+), 64 deletions(-) Juergen Gross (1): xen: fix multicall debug data referencing Roger Pau Monne (2): x86/xen: move xen_reserve_extra_memory

[PATCH v2] mini-os: put sanity_check() under CONFIG_TEST

2024-07-24 Thread Juergen Gross
ation linked with Mini-OS can't call sanity_check() (there is no EXPORT_SYMBOL for it), there is zero chance of breaking any use case. Signed-off-by: Juergen Gross --- V2: - don't remove it, but just hide it (Samuel Thibault) --- include/lib.h | 2 ++ mm.c | 2 ++ test.c

Re: [PATCH 4/4] mini-os: remove sanity_check()

2024-07-24 Thread Juergen Gross
On 25.07.24 08:29, Samuel Thibault wrote: Jürgen Groß, le jeu. 25 juil. 2024 08:25:18 +0200, a ecrit: On 25.07.24 00:44, Samuel Thibault wrote: Hello, Jürgen Groß, le mar. 23 juil. 2024 08:36:13 +0200, a ecrit: On 22.07.24 23:35, Samuel Thibault wrote: Juergen Gross, le lun. 22 juil. 2024

Re: [xen-tip:linux-next 12/12] WARNING: modpost: vmlinux: section mismatch in reference: mc_debug_data+0x0 (section: .data) -> mc_debug_data_early (section: .init.data)

2024-07-23 Thread Juergen Gross
On 24.07.24 03:08, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next head: 368990a7fe30737c990f628a60d26d9854a9e690 commit: 368990a7fe30737c990f628a60d26d9854a9e690 [12/12] xen: fix multicall debug data referencing config: x86_64-randconfig

Re: [PATCH v1.1 5/6] tools/libxs: Use writev()/sendmsg() instead of write()

2024-07-23 Thread Juergen Gross
-off-by: Andrew Cooper --- CC: Anthony PERARD CC: Juergen Gross CC: Frediano Ziglio v1.1:   * Fix iov overread, spotted by Frediano.  Factor the common updating logic     out into update_iov(). ---   tools/libs/store/xs.c | 94 +--   1 file changed, 91

[PATCH] mini-os: mm: don't have two large arrays of the same kind

2024-07-22 Thread Juergen Gross
In the CONFIG_PARAVIRT case there are two identical static arrays of more than 8kB size with function scope. As the two functions never nest, a single array of file scope can replace the two existing instances. Signed-off-by: Juergen Gross --- arch/x86/mm.c | 6 -- 1 file changed, 4

[PATCH 4/4] mini-os: remove sanity_check()

2024-07-22 Thread Juergen Gross
Remove the sanity_check() function, as it is used nowhere. Since any application linked with Mini-OS can't call sanity_check() either (there is no EXPORT_SYMBOL for it), there is zero chance of breaking any use case. Signed-off-by: Juergen Gross --- include/lib.h | 3 --- mm.c

[PATCH 2/4] mini-os: mm: remove not needed struct chunk_tail_st

2024-07-22 Thread Juergen Gross
The struct chunk_tail_st isn't really used other than writing to it. Remove it in order to simplify the code. Signed-off-by: Juergen Gross --- mm.c | 20 1 file changed, 20 deletions(-) diff --git a/mm.c b/mm.c index 1dcd954c..2cc49e94 100644 --- a/mm.c +++ b

[PATCH 3/4] mini-os: mm: reduce buddy allocator list administration data

2024-07-22 Thread Juergen Gross
nqueue and dequeue helpers for better readability. Change the level member type to unsigned int. Signed-off-by: Juergen Gross --- mm.c | 73 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/mm.c b/mm.c index 2cc49e94

[PATCH 0/4] mini-os: cleanup of mm.c

2024-07-22 Thread Juergen Gross
Some cleanups in mm.c: style, removal of unused stuff, optimizations. Juergen Gross (4): mini-os: make mm.c coding style compliant mini-os: mm: remove not needed struct chunk_tail_st mini-os: mm: reduce buddy allocator list administration data mini-os: remove sanity_check() include

[PATCH 1/4] mini-os: make mm.c coding style compliant

2024-07-22 Thread Juergen Gross
Apply the coding style to mm.c. No functional change. Signed-off-by: Juergen Gross --- mm.c | 191 ++- 1 file changed, 96 insertions(+), 95 deletions(-) diff --git a/mm.c b/mm.c index eb0e34de..1dcd954c 100644 --- a/mm.c +++ b/mm.c

[PATCH 2/3] mini-os: remove some not needed stuff from arch/x86/time.c

2024-07-22 Thread Juergen Gross
Remove unused or not needed stuff from arch/x86/time.c. Signed-off-by: Juergen Gross --- arch/x86/time.c | 16 1 file changed, 16 deletions(-) diff --git a/arch/x86/time.c b/arch/x86/time.c index a473a9e1..7fd7abef 100644 --- a/arch/x86/time.c +++ b/arch/x86/time.c @@ -48,7

[PATCH 3/3] mini-os: simplify monotonic_clock()

2024-07-22 Thread Juergen Gross
using struct vcpu_time_info for the local instance instead of defining a similar structure in the code. Signed-off-by: Juergen Gross --- arch/x86/time.c | 58 ++--- 1 file changed, 16 insertions(+), 42 deletions(-) diff --git a/arch/x86/time.c b/arch/x86

[PATCH 0/3] Mini-OS: tidy up arch/x86/time.c

2024-07-22 Thread Juergen Gross
Make arch/x86/time.c coding style compliant, remove some unneeded cruft and simplify the time keeping logic. Juergen Gross (3): mini-os: apply coding style to arch/x86/time.c mini-os: remove some not needed stuff from arch/x86/time.c mini-os: simplify monotonic_clock() arch/x86/time.c

[PATCH 1/3] mini-os: apply coding style to arch/x86/time.c

2024-07-22 Thread Juergen Gross
Apply the preferred coding style to arch/x86/time.c. Signed-off-by: Juergen Gross --- arch/x86/time.c | 194 +++- 1 file changed, 93 insertions(+), 101 deletions(-) diff --git a/arch/x86/time.c b/arch/x86/time.c index 332c0260..a473a9e1 100644 --- a

[PATCH v2] Mini-OS: add some macros for asm statements

2024-07-19 Thread Juergen Gross
-off-by: Juergen Gross --- V2: - addressed comments by Andrew Cooper --- arch/x86/sched.c | 34 ++ include/x86/os.h | 18 ++ 2 files changed, 20 insertions(+), 32 deletions(-) diff --git a/arch/x86/sched.c b/arch/x86/sched.c index dabe6fd6..42805f9f

[PATCH] SUPPORT.md: update Xen version

2024-07-19 Thread Juergen Gross
Update the Xen version to 4.20 Signed-off-by: Juergen Gross --- SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORT.md b/SUPPORT.md index 77d2a7a7db..bd4316523d 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -9,7 +9,7 @@ for the definitions of the support status

[PATCH] MAINTAINERS: drop CPU POOLS section

2024-07-18 Thread Juergen Gross
The CPU POOLS sections in MAINTAINERS can be dropped, as the SCHEDULING section has the same maintainers and it is covering the CPU POOLS files as well. Signed-off-by: Juergen Gross --- MAINTAINERS | 6 -- 1 file changed, 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH] xen: fix multicall debug data referencing

2024-07-17 Thread Juergen Gross
boot time selectable") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407151106.5s7mnfpz-...@intel.com/ Signed-off-by: Juergen Gross --- arch/x86/xen/multicalls.c | 19 --- arch/x86/xen/smp_pv.c | 1 + arch/x86/xen/xen-ops.h|

Re: [PATCH for-4.19] docs/checklist: Fix XEN_EXTRAVERSION inconsistency for release candidates

2024-07-16 Thread Juergen Gross
On 16.07.24 09:46, Jan Beulich wrote: On 16.07.2024 09:33, Julien Grall wrote: Hi, On 16/07/2024 08:24, Jan Beulich wrote: On 16.07.2024 09:22, Julien Grall wrote: On 16/07/2024 07:47, Jan Beulich wrote: On 15.07.2024 18:56, Julien Grall wrote: On 15/07/2024 16:50, Andrew Cooper wrote: An

[GIT PULL] xen: branch for v6.11-rc1

2024-07-14 Thread Juergen Gross
: add missing MODULE_DESCRIPTION() macros Juergen Gross (4): xen: make multicall debug boot time selectable x86/xen: make some functions static x86/xen: eliminate some private header files x86/xen: remove deprecated xen_nopvspin boot parameter Viresh Kumar (2): xen

Re: Problems in PV dom0 on recent x86 hardware

2024-07-12 Thread Juergen Gross
On 12.07.24 12:35, Jürgen Groß wrote: On 09.07.24 15:08, Jason Andryuk wrote: On 2024-07-09 06:56, Jürgen Groß wrote: On 09.07.24 09:01, Jan Beulich wrote: On 09.07.2024 08:36, Jürgen Groß wrote: On 09.07.24 08:24, Jan Beulich wrote: On 08.07.2024 23:30, Jason Andryuk wrote:    From the bac

[PATCH] x86/xen: remove deprecated xen_nopvspin boot parameter

2024-07-10 Thread Juergen Gross
cpuhotplug, too. Signed-off-by: Juergen Gross --- .../admin-guide/kernel-parameters.txt | 5 - arch/x86/xen/spinlock.c | 20 +-- kernel/locking/qspinlock.c| 2 +- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a

[PATCH 1/2] x86/xen: make some functions static

2024-07-10 Thread Juergen Gross
Some functions and variables in arch/x86/xen are used locally only, make them static. Signed-off-by: Juergen Gross --- arch/x86/xen/mmu.h | 4 arch/x86/xen/mmu_pv.c | 11 ++- arch/x86/xen/xen-ops.h | 1 - 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/arch

[PATCH 2/2] x86/xen: eliminate some private header files

2024-07-10 Thread Juergen Gross
xen_fifo_events from xen-ops.h into include/xen/events.h where it should have been from the beginning. Signed-off-by: Juergen Gross --- arch/x86/xen/apic.c | 2 - arch/x86/xen/debugfs.c | 2 +- arch/x86/xen/debugfs.h | 7 -- arch/x86/xen/enlighten.c | 2 - arch/x86/xen

[PATCH 0/2] x86/xen: cleanup of xen private headers

2024-07-10 Thread Juergen Gross
Cleanup the private header files in arch/x86/xen by merging them into one file and by removing unneeded stuff. Juergen Gross (2): x86/xen: make some functions static x86/xen: eliminate some private header files arch/x86/xen/apic.c | 2 - arch/x86/xen/debugfs.c | 2

[PATCH v2] xen: make multicall debug boot time selectable

2024-07-10 Thread Juergen Gross
Signed-off-by: Juergen Gross --- V2: - fixed argument printing, added parameter printing - in debug case print entries without error, too - rename struct member from debug to entries (Boris Ostrovsky) - get rid of get_mc_debug_ptr() (Boris Ostrovsky) --- .../admin-guide/kernel-parameters.txt

Re: GNTTABOP_setup_table yields -1 PFNs

2024-07-08 Thread Juergen Gross
On 08.07.24 14:50, Taylor R Campbell wrote: Date: Mon, 8 Jul 2024 11:09:21 +0200 From: Jan Beulich On 06.07.2024 04:22, Taylor R Campbell wrote: On a Xen 4.14 host (with extraversion=.0.88.g1d1d1f53), with version 1 grant tables, where GNTTABOP_query_size initially returns nr_frames=32 max_nr_

[PATCH] xen: make multicall debug boot time selectable

2024-07-03 Thread Juergen Gross
ter set in order to get better diagnostics. Add printing all arguments of a single call for better diagnostics. Signed-off-by: Juergen Gross --- .../admin-guide/kernel-parameters.txt | 6 + arch/x86/xen/multicalls.c | 120 ++ 2 files changed, 99

Re: [PATCH 2/2] xen: privcmd: Fix possible access to a freed kirqfd instance

2024-07-02 Thread Juergen Gross
Suggested-by: Paolo Bonzini Signed-off-by: Viresh Kumar Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP digital signature

Re: [PATCH 1/2] xen: privcmd: Switch from mutex to spinlock for irqfds

2024-07-02 Thread Juergen Gross
vcmd.c +++ b/drivers/xen/privcmd.c @@ -13,7 +13,6 @@ #include #include #include -#include I don't think you can drop that. There is still the ioreq_lock mutex. I can fix that up while committing, with that: Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Des

Re: [PATCH] xen-blkfront: fix sector_size propagation to the block layer

2024-07-02 Thread Juergen Gross
On 25.06.24 07:52, Christoph Hellwig wrote: Ensure that info->sector_size and info->physical_sector_size are set before the call to blkif_set_queue_limits by doing away with the local variables and arguments that propagate them. Thanks to Marek Marczykowski-Górecki and Jürgen Groß for root causi

Re: [PATCH] xen: add missing MODULE_DESCRIPTION() macros

2024-07-02 Thread Juergen Gross
missing MODULE_DESCRIPTION() in drivers/xen/xen-privcmd.o Add the missing invocations of the MODULE_DESCRIPTION() macro. Signed-off-by: Jeff Johnson Reviewed-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP

Re: [PATCH] MAINTAINERS: Step down as maintainer and committer

2024-06-26 Thread Juergen Gross
aving the respective parts fall back to the tools and The Rest seems the most reasonable option. Signed-off-by: George Dunlap Acked-by: Juergen Gross Juergen OpenPGP_0xB0DE9DD628BF132F.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Disaggregated (Xoar) Dom0 Building

2024-06-26 Thread Juergen Gross
On 26.06.24 18:47, Lonnie Cumberland wrote: Hello All, I hope that everyone is doing well today. Currently, I am investigating and researching the ideas of "Disaggregating" Dom0 and have the Xoar Xen patches ("Breaking Up is Hard to Do: Security and Functionality in a Commodity Hypervisor" 20

[PATCH v2] xen/sched: fix error handling in cpu_schedule_up()

2024-06-25 Thread Juergen Gross
ched: move per cpu scheduler private data into struct sched_resource") Signed-off-by: Juergen Gross --- V2: - undo changes in cpu_schedule_up() in case of failure --- xen/common/sched/core.c | 63 + 1 file changed, 33 insertions(+), 30 deletions(-) d

Re: [PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Juergen Gross
On 25.06.24 10:33, Jan Beulich wrote: On 25.06.2024 10:27, Juergen Gross wrote: In case cpu_schedule_up() is failing to allocate memory for struct sched_resource, Or (just to mention it again) in case the function isn't called at all because some earlier CPU_UP_PREPARE handler fails.

[PATCH] xen/sched: fix rare error case in cpu_schedule_down()

2024-06-25 Thread Juergen Gross
truct sched_resource") Signed-off-by: Juergen Gross --- xen/common/sched/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c index d84b65f197..0dc86b8f6c 100644 --- a/xen/common/sched/core.c +++ b/xen/common/sched/core.c @@ -2829

[PATCH] MAINTAINERS: add me as scheduer maintainer

2024-06-05 Thread Juergen Gross
I've been active in the scheduling code since many years now. Add me as a maintainer. Signed-off-by: Juergen Gross --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6ba7d2765f..cc40c0be9d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH] MAINTAINERS: add an entry for tools/9pfsd

2024-06-05 Thread Juergen Gross
Add me as the maintainer for the tools/9pfsd directory. Signed-off-by: Juergen Gross --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 076cf1e141..28fb35582b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -206,6 +206,12 @@ Maintainers List

Re: CVE-2021-47377: kernel: xen/balloon: use a kernel thread instead a workqueue

2024-05-27 Thread Juergen Gross
Hi, I'd like to dispute CVE-2021-47377: the issue fixed by upstream commit 8480ed9c2bbd56fc86524998e5f2e3e22f5038f6 can in no way be triggered by an unprivileged user or by a remote attack of the system, as it requires initiation of memory ballooning of the running system. This can be done only b

Re: [PATCH v3 2/4] xen/arm: Alloc XenStore page for Dom0less DomUs from hypervisor

2024-05-24 Thread Juergen Gross
On 24.05.24 16:30, Jürgen Groß wrote: On 24.05.24 15:58, Julien Grall wrote: Hi Henry, + Juergen as the Xenstore maintainers. I'd like his opinion on the approach. The documentation of the new logic is in: https://lore.kernel.org/xen-devel/20240517032156.1490515-5-xin.wa...@amd.com/ FWIW I

[GIT PULL] xen: branch for v6.10-rc1

2024-05-24 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-6.10a-rc1-tag xen: branch for v6.10-rc1 It contains the following patches: - a small cleanup in the drivers/xen/xenbus Makefile - a fix of the Xen xenstore driver to improve connecti

  1   2   3   4   5   6   7   8   9   10   >