[PATCH] arm32: Avoid using solaris syntax for .section directive

2023-07-31 Thread Khem Raj
Assembler from binutils 2.41 rejects this syntax .section "name"[, flags...] where flags could be #alloc, #write, #execstr Switch to using ELF syntax .section name[, "flags"[, @type]] [1] https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119 Signed-off-by: Khem Raj ---

[PATCH] arm32: Avoid using solaris syntax for .section directive

2023-07-31 Thread Khem Raj
Assembler from binutils 2.41 rejects this syntax .section "name"[, flags...] where flags could be #alloc, #write, #execstr Switch to using ELF syntax .section name[, "flags"[, @type]] [1] https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119 Signed-off-by: Khem Raj ---

Re: Python in Domain Configurations

2023-07-31 Thread Elliott Mitchell
On Mon, Jul 31, 2023 at 06:09:41PM +0100, Ian Jackson wrote: > Elliott Mitchell writes ("Re: Python in Domain Configurations"): > > On Mon, Jul 31, 2023 at 05:59:55AM +0200, Marek Marczykowski-Górecki wrote: > > > So, IMHO reducing config file from a full python (like it used to be in > > > xend

[PATCH v4 13/13] xen/arm: mmu: enable SMMU subsystem only in MMU

2023-07-31 Thread Henry Wang
From: Penny Zheng SMMU subsystem is only supported in MMU system, so we make it dependent on CONFIG_HAS_MMU. Signed-off-by: Penny Zheng Signed-off-by: Wei Chen Signed-off-by: Henry Wang --- v4: - No change v3: - new patch --- xen/drivers/passthrough/Kconfig | 3 ++- 1 file changed, 2

[PATCH v4 12/13] xen/arm: mmu: relocate copy_from_paddr() to setup.c

2023-07-31 Thread Henry Wang
From: Penny Zheng Function copy_from_paddr() is defined in asm/setup.h, so it is better to be implemented in setup.c. Current copy_from_paddr() implementation is mmu-specific, so this commit moves copy_from_paddr() into mmu/setup.c, and it is also benefical for us to implement MPU version of

[PATCH v4 11/13] xen/arm: mmu: move MMU specific P2M code to mmu/p2m.{c,h}

2023-07-31 Thread Henry Wang
From: Penny Zheng Current P2M implementation is designed for MMU system only. We move the MMU-specific codes into mmu/p2m.c, and only keep generic codes in p2m.c, like VMID allocator, etc. We also move MMU-specific definitions and declarations to mmu/p2m.h, such as p2m_tlb_flush_sync(). Also

[PATCH v4 09/13] xen/arm: mm: Use generic variable/function names for extendability

2023-07-31 Thread Henry Wang
From: Penny Zheng As preparation for MPU support, which will use some variables/functions for both MMU and MPU system, We rename the affected variable/function to more generic names: - init_ttbr -> init_mm, - mmu_init_secondary_cpu() -> mm_init_secondary_cpu() - init_secondary_pagetables() ->

[PATCH v4 08/13] xen/arm: Fold pmap and fixmap into MMU system

2023-07-31 Thread Henry Wang
From: Penny Zheng fixmap and pmap are MMU-specific features, so fold them to MMU system. Do the folding for pmap by moving the HAS_PMAP Kconfig selection under HAS_MMU. Do the folding for fixmap by moving the implementation of virt_to_fix() to mmu/mm.c, so that unnecessary stubs can be avoided.

[PATCH v4 10/13] xen/arm: mmu: move MMU-specific setup_mm to mmu/setup.c

2023-07-31 Thread Henry Wang
From: Penny Zheng setup_mm is used for Xen to setup memory management subsystem at boot time, like boot allocator, direct-mapping, xenheap initialization, frametable and static memory pages. We could inherit some components seamlessly in later MPU system like boot allocator, whilst we need to

[PATCH v4 07/13] xen/arm: Extract MMU-specific code

2023-07-31 Thread Henry Wang
Currently, most of the MMU-specific code is in mm.{c,h}. To make the mm extendable, this commit extract the MMU-specific code by firstly: - Create a arch/arm/include/asm/mmu/ subdir. - Create a arch/arm/mmu/ subdir. Then move the MMU-specific code to above mmu subdir, which includes below

[PATCH v4 06/13] xen/arm64: Move setup_fixmap() to create_page_tables()

2023-07-31 Thread Henry Wang
The original assembly setup_fixmap() is actually doing two seperate tasks, one is enabling the early UART when earlyprintk on, and the other is to set up the fixmap (even when earlyprintk is off). Per discussion in [1], since commit 9d267c049d92 ("xen/arm64: Rework the memory layout"), there is

[PATCH v4 05/13] xen/arm: Move MMU related definitions from config.h to mmu/layout.h

2023-07-31 Thread Henry Wang
From: Wei Chen Xen defines some global configuration macros for Arm in config.h. However there are some address layout related definitions that are defined for MMU systems only, and these definitions could not be used by MPU systems. Adding ifdefs with CONFIG_HAS_MPU to gate these definitions

[PATCH v4 04/13] xen/arm64: Split and move MMU-specific head.S to mmu/head.S

2023-07-31 Thread Henry Wang
The MMU specific code in head.S will not be used on MPU systems. Instead of introducing more #ifdefs which will bring complexity to the code, move MMU related code to mmu/head.S and keep common code in head.S. Two notes while moving: - As "fail" in original head.S is very simple and this name is

[PATCH v4 03/13] xen/arm64: prepare for moving MMU related code from head.S

2023-07-31 Thread Henry Wang
From: Wei Chen We want to reuse head.S for MPU systems, but there are some code are implemented for MMU systems only. We will move such code to another MMU specific file. But before that we will do some indentations fix in this patch to make them be easier for reviewing: 1. Fix the indentations

[PATCH v4 02/13] xen/arm: Introduce 'choice' for memory system architecture

2023-07-31 Thread Henry Wang
There are two types of memory system architectures available for Arm-based systems, namely the Virtual Memory System Architecture (VMSA) and the Protected Memory System Architecture (PMSA). According to ARM DDI 0487G.a, A VMSA provides a Memory Management Unit (MMU) that controls address

[PATCH v4 01/13] xen/arm64: head.S: Introduce enable_{boot,secondary}_cpu_mm

2023-07-31 Thread Henry Wang
From: Wei Chen At the moment, on MMU system, enable_mmu() will return to an address in the 1:1 mapping, then each path is responsible to switch to virtual runtime mapping. Then remove_identity_mapping() is called on the boot CPU to remove all 1:1 mapping. Since remove_identity_mapping() is not

[PATCH v4 00/13] xen/arm: Split MMU code as the prepration of MPU work

2023-07-31 Thread Henry Wang
Based on the discussion in the Xen Summit [1], sending this series out after addressing the comments in v3 [2] as the preparation work to add MPU support. Mostly code movement, with some of Kconfig and build system (mainly Makefiles) adjustment. No functional change expected. [1]

RE: [PATCH v4 4/4] x86/iommu: pass full IO-APIC RTE for remapping table update

2023-07-31 Thread Tian, Kevin
> From: Roger Pau Monne > Sent: Friday, July 28, 2023 5:57 PM > > So that the remapping entry can be updated atomically when possible. > > Doing such update atomically will avoid Xen having to mask the IO-APIC > pin prior to performing any interrupt movements (ie: changing the > destination and

[xen-unstable-smoke test] 182098: tolerable all pass - PUSHED

2023-07-31 Thread osstest service owner
flight 182098 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182098/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

[PATCH] arm32: Avoid using solaris syntax for .section directive

2023-07-31 Thread Khem Raj
Assembler from binutils 2.41 rejects this syntax .section "name"[, flags...] where flags could be #alloc, #write, #execstr Switch to using ELF syntax .section name[, "flags"[, @type]] [1] https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119 Signed-off-by: Khem Raj ---

[PATCH] arm32: Avoid using solaris syntax for .section directive

2023-07-31 Thread Khem Raj
Assembler from binutils 2.41 rejects this syntax .section "name"[, flags...] where flags could be #alloc, #write, #execstr Switch to using ELF syntax .section name[, "flags"[, @type]] [1] https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119 Signed-off-by: Khem Raj ---

RE: [PATCH v9 00/36] x86: enable FRED for x86-64

2023-07-31 Thread Li, Xin3
> > Are you talking about that you only got a subset of this patch set? > > No, I'm saying I don't want to waste a bunch of time tracking down exactly > which > commit a 36 patch series is based on. E.g. I just refreshed tip/master and > still > get: > > Applying: x86/idtentry: Incorporate

Re: [PATCH 2/3] xen/ppc: Relocate kernel to physical address 0 on boot

2023-07-31 Thread Shawn Anastasio
On 7/31/23 10:46 AM, Jan Beulich wrote: > On 29.07.2023 00:21, Shawn Anastasio wrote: >> Introduce a small assembly loop in `start` to copy the kernel to >> physical address 0 before continuing. This ensures that the physical >> address lines up with XEN_VIRT_START (0xc000) and allows

Re: [PATCH v9 00/36] x86: enable FRED for x86-64

2023-07-31 Thread Sean Christopherson
On Mon, Jul 31, 2023, Xin3 Li wrote: > > > This patch set enables the Intel flexible return and event delivery > > > (FRED) architecture for x86-64. > > > > ... > > > > > -- > > > 2.34.1 > > > > What is this based on? > > The tip tree master branch. > > > FYI, you're using a version of git

RE: [PATCH v9 00/36] x86: enable FRED for x86-64

2023-07-31 Thread Li, Xin3
> > This patch set enables the Intel flexible return and event delivery > > (FRED) architecture for x86-64. > > ... > > > -- > > 2.34.1 > > What is this based on? The tip tree master branch. > FYI, you're using a version of git that will (mostly) > automatically generate the based, e.g. I do

Re: [PATCH v9 00/36] x86: enable FRED for x86-64

2023-07-31 Thread Sean Christopherson
On Sun, Jul 30, 2023, Xin Li wrote: > This patch set enables the Intel flexible return and event delivery > (FRED) architecture for x86-64. ... > -- > 2.34.1 What is this based on? FYI, you're using a version of git that will (mostly) automatically generate the based, e.g. I do git

[ovmf test] 182090: all pass - PUSHED

2023-07-31 Thread osstest service owner
flight 182090 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/182090/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 677f2c6f1509da21258e02957b869b71b008fc61 baseline version: ovmf

Re: [PATCH v9 29/36] x86/fred: FRED entry/exit and dispatch code

2023-07-31 Thread H. Peter Anvin
On 7/30/23 23:41, Xin Li wrote: +static DEFINE_FRED_HANDLER(fred_other_default) +{ + regs->vector = X86_TRAP_UD; + fred_emulate_fault(regs); +} + +static DEFINE_FRED_HANDLER(fred_syscall) +{ + regs->orig_ax = regs->ax; + regs->ax = -ENOSYS; + do_syscall_64(regs,

Re: [PATCH v9 29/36] x86/fred: FRED entry/exit and dispatch code

2023-07-31 Thread H. Peter Anvin
On 7/30/23 23:41, Xin Li wrote: + +static DEFINE_FRED_HANDLER(fred_sw_interrupt_user) +{ + /* +* In compat mode INT $0x80 (32bit system call) is +* performance-critical. Handle it first. +*/ + if (IS_ENABLED(CONFIG_IA32_EMULATION) && +

Re: ack needed [XEN PATCH v3] xen/sched: mechanical renaming to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Stefano Stabellini
George, Dario, Please ack On Fri, 28 Jul 2023, Stefano Stabellini wrote: > On Fri, 28 Jul 2023, Nicola Vetrini wrote: > > Rule 5.3 has the following headline: > > "An identifier declared in an inner scope shall not hide an > > identifier declared in an outer scope" > > > > The renaming

Re: [XEN PATCH 2/4] amd/iommu: rename functions to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Stefano Stabellini
On Mon, 31 Jul 2023, Nicola Vetrini wrote: > The functions 'machine_bfd' and 'guest_bfd' have gained the > prefix 'get_' to avoid the mutual shadowing with the homonymous > parameters in these functions. > > Signed-off-by: Nicola Vetrini Reviewed-by: Stefano Stabellini > --- >

Re: [XEN PATCH 1/4] xen/pci: rename local variable to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Stefano Stabellini
On Mon, 31 Jul 2023, Nicola Vetrini wrote: > On 31/07/2023 16:16, Jan Beulich wrote: > > On 31.07.2023 15:34, Nicola Vetrini wrote: > > > --- a/xen/drivers/passthrough/pci.c > > > +++ b/xen/drivers/passthrough/pci.c > > > @@ -650,12 +650,12 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, > > >

Re: [XEN PATCH] xen/arm/IRQ: uniform irq_set_affinity() with x86 version

2023-07-31 Thread Stefano Stabellini
On Mon, 31 Jul 2023, Federico Serafini wrote: > Change parameter name of irq_set_affinity() to uniform the function > prototype with the one used by x86. > > No functional changes. > > Signed-off-by: Federico Serafini Reviewed-by: Stefano Stabellini > --- > xen/arch/arm/include/asm/irq.h |

Re: [XEN PATCH] xen/sched: address violations of MISRA C:2012 Rules 8.2 and 8.3

2023-07-31 Thread Stefano Stabellini
On Mon, 31 Jul 2023, Federico Serafini wrote: > Give a name to unnamed parameters to address violations of > MISRA C:2012 Rule 8.2 ("Function types shall be in prototype form with > named parameters"). > Keep consistency between parameter names and types used in function > declarations and the

Re: [PATCH] x86/HVM: tidy _hvm_load_entry() for style

2023-07-31 Thread Stefano Stabellini
On Mon, 31 Jul 2023, Jan Beulich wrote: > The primary goal is to eliminate the Misra-non-compliance of "desc" > shadowing at least the local variable in hvm_load(). Suffix both local > variables with underscores, while also > - dropping leading underscores from parameter names (applying this also

Re: [PATCH v6 0/9] Allow dynamic allocation of software IO TLB bounce buffers

2023-07-31 Thread Petr Tesařík
V Mon, 31 Jul 2023 18:04:09 +0200 Christoph Hellwig napsáno: > I was just going to apply this, but patch 1 seems to have a non-trivial > conflict with the is_swiotlb_active removal in pci-dma.c. Can you resend > against the current dma-mapping for-next tree? Sure thing, will re-send tomorrow

Re: [PATCH 00/24] ALSA: Generic PCM copy ops using sockptr_t

2023-07-31 Thread Mark Brown
On Mon, Jul 31, 2023 at 09:30:29PM +0200, Takashi Iwai wrote: > Mark Brown wrote: > > It really feels like we ought to rename, or add an alias for, the type > > if we're going to start using it more widely - it's not helping to make > > the code clearer. > That was my very first impression, too,

Re: [PATCH 00/24] ALSA: Generic PCM copy ops using sockptr_t

2023-07-31 Thread Takashi Iwai
On Mon, 31 Jul 2023 19:20:54 +0200, Mark Brown wrote: > > On Mon, Jul 31, 2023 at 05:46:54PM +0200, Takashi Iwai wrote: > > > this is a patch set to clean up the PCM copy ops using sockptr_t as a > > "universal" pointer, inspired by the recent patch from Andy > > Shevchenko: > > > >

[xen-unstable-smoke test] 182091: tolerable all pass - PUSHED

2023-07-31 Thread osstest service owner
flight 182091 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182091/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

Re: [PATCH 3/5] xen/ppc: Add OPAL API definition header file

2023-07-31 Thread Shawn Anastasio
On 7/31/23 10:59 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> OPAL (OpenPower Abstraction Layer) is the interface exposed by firmware >> on PowerNV (bare metal) systems. Import Linux's header definining the >> API and related information. > > To help future updating,

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-31 Thread Shawn Anastasio
On 7/31/23 10:58 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> --- a/xen/arch/ppc/ppc64/head.S >> +++ b/xen/arch/ppc/ppc64/head.S >> @@ -1,9 +1,11 @@ >> /* SPDX-License-Identifier: GPL-2.0-or-later */ >> >> #include >> +#include >> >> .section .text.header,

Re: [PATCH 1/5] xen/lib: Move simple_strtoul from common/vsprintf.c to lib

2023-07-31 Thread Shawn Anastasio
On 7/31/23 10:52 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> Move the simple_strtoul routine which is used throughout the codebase >> from vsprintf.c to its own file in xen/lib. >> >> This allows libfdt to be built on ppc64 even though xen/common doesn't >> build yet.

Re: [PATCH v2 5/5] pdx: Add CONFIG_HAS_PDX_COMPRESSION as a common Kconfig option

2023-07-31 Thread Andrew Cooper
On 31/07/2023 9:00 am, Jan Beulich wrote: > On 28.07.2023 18:58, Andrew Cooper wrote: >> On 28/07/2023 5:36 pm, Andrew Cooper wrote: >>> On 28/07/2023 8:59 am, Alejandro Vallejo wrote: Adds a new compile-time flag to allow disabling pdx compression and compiles out compression-related

Re: [PATCH 00/24] ALSA: Generic PCM copy ops using sockptr_t

2023-07-31 Thread Mark Brown
On Mon, Jul 31, 2023 at 05:46:54PM +0200, Takashi Iwai wrote: > this is a patch set to clean up the PCM copy ops using sockptr_t as a > "universal" pointer, inspired by the recent patch from Andy > Shevchenko: > >

Re: Python in Domain Configurations

2023-07-31 Thread Ian Jackson
Elliott Mitchell writes ("Re: Python in Domain Configurations"): > On Mon, Jul 31, 2023 at 05:59:55AM +0200, Marek Marczykowski-Górecki wrote: > > So, IMHO reducing config file from a full python (like it used to be in > > xend times) into a static file with well defined syntax was an > >

[PATCH mm-unstable v8 17/31] arm: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. late_alloc() also uses the __get_free_pages() helper function. Convert this to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 30/31] um: Convert {pmd, pte}_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Also cleans up some spacing issues. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/um/include/asm/pgalloc.h | 18 +- 1 file changed, 9 insertions(+), 9

[PATCH mm-unstable v8 31/31] mm: Remove pgtable_{pmd, pte}_page_{ctor, dtor}() wrappers

2023-07-31 Thread Vishal Moola (Oracle)
These functions are no longer necessary. Remove them and cleanup Documentation referencing them. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- Documentation/mm/split_page_table_lock.rst| 12 +-- .../zh_CN/mm/split_page_table_lock.rst| 14

[PATCH mm-unstable v8 19/31] csky: Convert __pte_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Guo Ren Acked-by: Mike Rapoport (IBM) --- arch/csky/include/asm/pgalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH mm-unstable v8 14/31] s390: Convert various pgalloc functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 16/31] pgalloc: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 22/31] m68k: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 28/31] sparc64: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/sparc/mm/init_64.c | 17 + 1 file changed, 9

[PATCH mm-unstable v8 24/31] nios2: Convert __pte_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) Acked-by: Dinh Nguyen --- arch/nios2/include/asm/pgalloc.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH mm-unstable v8 20/31] hexagon: Convert __pte_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/hexagon/include/asm/pgalloc.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH mm-unstable v8 23/31] mips: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 29/31] sparc: Convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable pte constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/sparc/mm/srmmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sparc/mm/srmmu.c

[PATCH mm-unstable v8 18/31] arm64: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) Acked-by: Catalin Marinas --- arch/arm64/include/asm/tlb.h | 14 --

[PATCH mm-unstable v8 21/31] loongarch: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 27/31] sh: Convert pte_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Also cleans up some spacing issues. Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Geert Uytterhoeven Acked-by: John Paul Adrian Glaubitz Acked-by: Mike Rapoport (IBM) ---

[PATCH mm-unstable v8 26/31] riscv: Convert alloc_{pmd, pte}_late() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
As part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents, convert various page table functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize

[PATCH mm-unstable v8 15/31] mm: Remove page table members from struct page

2023-07-31 Thread Vishal Moola (Oracle)
The page table members are now split out into their own ptdesc struct. Remove them from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm_types.h | 18 -- include/linux/pgtable.h | 3 --- 2 files changed, 21 deletions(-)

[PATCH mm-unstable v8 25/31] openrisc: Convert __pte_free_tlb() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/openrisc/include/asm/pgalloc.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH mm-unstable v8 13/31] x86: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
In order to split struct ptdesc from struct page, convert various functions to use ptdescs. Some of the functions use the *get*page*() helper functions. Convert these to use pagetable_alloc() and ptdesc_address() instead to help standardize page tables further. Signed-off-by: Vishal Moola

[PATCH mm-unstable v8 12/31] powerpc: Convert various functions to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
In order to split struct ptdesc from struct page, convert various functions to use ptdescs. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/powerpc/mm/book3s64/mmu_context.c | 10 ++--- arch/powerpc/mm/book3s64/pgtable.c | 32 +++---

[PATCH mm-unstable v8 11/31] mm: Create ptdesc equivalents for pgtable_{pte,pmd}_page_{ctor,dtor}

2023-07-31 Thread Vishal Moola (Oracle)
Create pagetable_pte_ctor(), pagetable_pmd_ctor(), pagetable_pte_dtor(), and pagetable_pmd_dtor() and make the original pgtable constructor/destructors wrappers. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 56

[PATCH mm-unstable v8 08/31] mm: Convert ptlock_init() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH mm-unstable v8 09/31] mm: Convert pmd_ptlock_free() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH mm-unstable v8 10/31] mm: Convert ptlock_free() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 10 +- mm/memory.c| 4 ++-- 2 files changed, 7 insertions(+), 7

[PATCH mm-unstable v8 07/31] mm: Convert pmd_ptlock_init() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH mm-unstable v8 05/31] mm: Convert ptlock_alloc() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 6 +++--- mm/memory.c| 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)

[PATCH mm-unstable v8 03/31] mm: add utility functions for ptdesc

2023-07-31 Thread Vishal Moola (Oracle)
Introduce utility functions setting the foundation for ptdescs. These will also assist in the splitting out of ptdesc from struct page. Functions that focus on the descriptor are prefixed with ptdesc_* while functions that focus on the pagetable are prefixed with pagetable_*. pagetable_alloc()

[PATCH mm-unstable v8 06/31] mm: Convert ptlock_ptr() to use ptdescs

2023-07-31 Thread Vishal Moola (Oracle)
This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- arch/x86/xen/mmu_pv.c | 2 +- include/linux/mm.h| 14 +++--- 2 files changed, 8 insertions(+), 8

[PATCH mm-unstable v8 02/31] pgtable: Create struct ptdesc

2023-07-31 Thread Vishal Moola (Oracle)
Currently, page table information is stored within struct page. As part of simplifying struct page, create struct ptdesc for page table information. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/pgtable.h | 71 + 1

[PATCH mm-unstable v8 04/31] mm: Convert pmd_pgtable_page() callers to use pmd_ptdesc()

2023-07-31 Thread Vishal Moola (Oracle)
Converts internal pmd_pgtable_page() callers to use pmd_ptdesc(). This removes some direct accesses to struct page, working towards splitting out struct ptdesc from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm.h | 4 ++-- 1 file changed,

[PATCH mm-unstable v8 00/31] Split ptdesc from struct page

2023-07-31 Thread Vishal Moola (Oracle)
The MM subsystem is trying to shrink struct page. This patchset introduces a memory descriptor for page table tracking - struct ptdesc. This patchset introduces ptdesc, splits ptdesc from struct page, and converts many callers of page table constructor/destructors to use ptdescs. Ptdesc is a

[PATCH mm-unstable v8 01/31] mm: Add PAGE_TYPE_OP folio functions

2023-07-31 Thread Vishal Moola (Oracle)
No folio equivalents for page type operations have been defined, so define them for later folio conversions. Also changes the Page##uname macros to take in const struct page* since we only read the memory here. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) ---

Xen Security Advisory 433 v3 (CVE-2023-20593) - x86/AMD: Zenbleed

2023-07-31 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory CVE-2023-20593 / XSA-433 version 3 x86/AMD: Zenbleed UPDATES IN VERSION 3 The patch provided with earlier versions was buggy. It

Re: Python in Domain Configurations

2023-07-31 Thread Elliott Mitchell
On Mon, Jul 31, 2023 at 05:59:55AM +0200, Marek Marczykowski-Górecki wrote: > On Mon, Jul 24, 2023 at 01:28:24PM -0700, Elliott Mitchell wrote: > > On Fri, Jul 07, 2023 at 03:13:07PM -0700, Elliott Mitchell wrote: > > > > > > The only context I could find was 54fbaf446b and > > >

Re: [RFC XEN PATCH 6/6] tools/libs/light: pci: translate irq to gsi

2023-07-31 Thread Chen, Jiqian
Hi, On 2023/3/18 04:55, Stefano Stabellini wrote: > On Fri, 17 Mar 2023, Roger Pau Monné wrote: >> On Fri, Mar 17, 2023 at 11:15:37AM -0700, Stefano Stabellini wrote: >>> On Fri, 17 Mar 2023, Roger Pau Monné wrote: On Fri, Mar 17, 2023 at 09:39:52AM +0100, Jan Beulich wrote: > On

RE: [PATCH v9 05/36] x86/opcode: Add ERETU, ERETS instructions to x86-opcode-map

2023-07-31 Thread Li, Xin3
> > Add instruction opcodes used by FRED ERETU/ERETS to x86-opcode-map. > > > > Opcode numbers are per FRED spec v5.0. > > > > Signed-off-by: H. Peter Anvin (Intel) > > Tested-by: Shan Kang > > Signed-off-by: Xin Li > > This looks good to me. (ERETS has the opcode F2 0F 01 CA, ERETU has the

Re: [RFC PATCH 1/5] [WIP]misra: add entries to the excluded list

2023-07-31 Thread Luca Fancellu
> On 31 Jul 2023, at 16:20, Jan Beulich wrote: > > On 31.07.2023 17:11, Luca Fancellu wrote: +{ +"rel_path": "arch/x86/include/asm/bug.h", +"comment": "Includes mostly assembly macro" +}, >>> >>> Mind me asking why assembly macros

Re: [PATCH 4/5] xen/ppc: Parse device tree for OPAL node on PowerNV

2023-07-31 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > --- a/xen/arch/ppc/arch.mk > +++ b/xen/arch/ppc/arch.mk > @@ -10,5 +10,5 @@ CFLAGS += -mstrict-align -mcmodel=medium -mabi=elfv2 -fPIC > -mno-altivec -mno-vsx > LDFLAGS += -m elf64lppc > > # TODO: Drop override when more of the build is working >

Re: [PATCH v6 0/9] Allow dynamic allocation of software IO TLB bounce buffers

2023-07-31 Thread Christoph Hellwig
I was just going to apply this, but patch 1 seems to have a non-trivial conflict with the is_swiotlb_active removal in pci-dma.c. Can you resend against the current dma-mapping for-next tree?

Re: [PATCH 3/5] xen/ppc: Add OPAL API definition header file

2023-07-31 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > OPAL (OpenPower Abstraction Layer) is the interface exposed by firmware > on PowerNV (bare metal) systems. Import Linux's header definining the > API and related information. To help future updating, mentioning version (or commit) at which this

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-31 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > --- a/xen/arch/ppc/ppc64/head.S > +++ b/xen/arch/ppc/ppc64/head.S > @@ -1,9 +1,11 @@ > /* SPDX-License-Identifier: GPL-2.0-or-later */ > > #include > +#include > > .section .text.header, "ax", %progbits > > + > ENTRY(start) Nit: Stray

Re: [PATCH 1/5] xen/lib: Move simple_strtoul from common/vsprintf.c to lib

2023-07-31 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > Move the simple_strtoul routine which is used throughout the codebase > from vsprintf.c to its own file in xen/lib. > > This allows libfdt to be built on ppc64 even though xen/common doesn't > build yet. > > Signed-off-by: Shawn Anastasio > --- >

[PATCH 00/24] ALSA: Generic PCM copy ops using sockptr_t

2023-07-31 Thread Takashi Iwai
Hi, this is a patch set to clean up the PCM copy ops using sockptr_t as a "universal" pointer, inspired by the recent patch from Andy Shevchenko: https://lore.kernel.org/r/20230721100146.67293-1-andriy.shevche...@linux.intel.com Even though it sounds a bit weird, sockptr_t is a generic type

[PATCH 14/24] ALSA: xen: Convert to generic PCM copy ops

2023-07-31 Thread Takashi Iwai
This patch converts the xen frontend driver code to use the new unified PCM copy callback. It's a straightforward conversion from *_user() to *_sockptr() variants. Cc: Oleksandr Andrushchenko Cc: xen-devel@lists.xenproject.org Signed-off-by: Takashi Iwai --- sound/xen/xen_snd_front_alsa.c |

Re: [PATCH 2/3] xen/ppc: Relocate kernel to physical address 0 on boot

2023-07-31 Thread Jan Beulich
On 29.07.2023 00:21, Shawn Anastasio wrote: > Introduce a small assembly loop in `start` to copy the kernel to > physical address 0 before continuing. This ensures that the physical > address lines up with XEN_VIRT_START (0xc000) and allows us > to identity map the kernel when the MMU

Re: [PATCH v2 5/5] pdx: Add CONFIG_HAS_PDX_COMPRESSION as a common Kconfig option

2023-07-31 Thread Jan Beulich
On 28.07.2023 09:59, Alejandro Vallejo wrote: > --- a/xen/common/pdx.c > +++ b/xen/common/pdx.c > @@ -31,11 +31,15 @@ unsigned long __read_mostly pdx_group_valid[BITS_TO_LONGS( > > bool __mfn_valid(unsigned long mfn) > { > -if ( unlikely(evaluate_nospec(mfn >= max_page)) ) > +bool

Re: [PATCH v2 3/5] mm/pdx: Standardize region validation wrt pdx compression

2023-07-31 Thread Jan Beulich
On 28.07.2023 09:59, Alejandro Vallejo wrote: > --- a/xen/arch/x86/x86_64/mm.c > +++ b/xen/arch/x86/x86_64/mm.c > @@ -1159,6 +1159,9 @@ static int mem_hotadd_check(unsigned long spfn, > unsigned long epfn) > { > unsigned long s, e, length, sidx, eidx; > > +paddr_t mem_base =

Re: [RFC PATCH 1/5] [WIP]misra: add entries to the excluded list

2023-07-31 Thread Jan Beulich
On 31.07.2023 17:11, Luca Fancellu wrote: >>> +{ >>> +"rel_path": "arch/x86/include/asm/bug.h", >>> +"comment": "Includes mostly assembly macro" >>> +}, >> >> Mind me asking why assembly macros wouldn't want maintaining in proper >> style? > > From what I

Re: [PATCH v2 2/5] mm: Factor out the pdx compression logic in ma/va converters

2023-07-31 Thread Jan Beulich
On 28.07.2023 09:59, Alejandro Vallejo wrote: > --- a/xen/include/xen/pdx.h > +++ b/xen/include/xen/pdx.h > @@ -160,6 +160,31 @@ static inline unsigned long pdx_to_pfn(unsigned long pdx) > #define mfn_to_pdx(mfn) pfn_to_pdx(mfn_x(mfn)) > #define pdx_to_mfn(pdx) _mfn(pdx_to_pfn(pdx)) > > +/** >

Re: [RFC PATCH 1/5] [WIP]misra: add entries to the excluded list

2023-07-31 Thread Luca Fancellu
Hi Jan, >> +{ >> +"rel_path": "arch/x86/include/asm/bug.h", >> +"comment": "Includes mostly assembly macro" >> +}, > > Mind me asking why assembly macros wouldn't want maintaining in proper > style? From what I know (experts on CF correct me if I am

Re: [RFC PATCH 1/5] [WIP]misra: add entries to the excluded list

2023-07-31 Thread Jan Beulich
On 28.07.2023 10:11, Luca Fancellu wrote: > Add entries to the exclusion list, so that they can be excluded > from the formatter tool. > > TBD: add a field on each entry to understand for what tool is the > exclusion > > Signed-off-by: Luca Fancellu > --- > docs/misra/exclude-list.json | 88

Re: [XEN PATCH 1/4] xen/pci: rename local variable to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Nicola Vetrini
On 31/07/2023 16:16, Jan Beulich wrote: On 31.07.2023 15:34, Nicola Vetrini wrote: --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -650,12 +650,12 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, struct pci_seg *pseg; struct pci_dev *pdev; unsigned int

Re: [XEN PATCH] xen/arm: mechanical renaming to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Julien Grall
Hi, On 28/07/2023 13:14, Nicola Vetrini wrote: On 21/07/2023 17:54, Julien Grall wrote: Hi, On 21/07/2023 16:22, Nicola Vetrini wrote: Rule 5.3 has the following headline: "An identifier declared in an inner scope shall not hide an identifier declared in an outer scope" The function

Re: [XEN PATCH 3/4] xen: rename variables and parameters to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Jan Beulich
On 31.07.2023 15:35, Nicola Vetrini wrote: > Rule 5.3 has the following headline: > "An identifier declared in an inner scope shall not hide an > identifier declared in an outer scope" > > Local variables have been suitably renamed to address some violations > of this rule: > - s/cmp/c/ because

Re: [XEN PATCH 2/4] amd/iommu: rename functions to address MISRA C:2012 Rule 5.3

2023-07-31 Thread Jan Beulich
On 31.07.2023 15:35, Nicola Vetrini wrote: > The functions 'machine_bfd' and 'guest_bfd' have gained the > prefix 'get_' to avoid the mutual shadowing with the homonymous > parameters in these functions. > > Signed-off-by: Nicola Vetrini Acked-by: Jan Beulich Of course there are several other

  1   2   3   >