Re: [PATCH v2 2/7] Documentation: s390-diag.rst: make diag500 a generic KVM hypercall

2024-10-14 Thread David Hildenbrand
On 14.10.24 20:04, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:14PM +0200, David Hildenbrand wrote: Let's make it a generic KVM hypercall, allowing other subfunctions to be more independent of virtio. This is a preparation for documenting a new hypercall. Signed-off-by: David Hildenbra

[PATCH v4 2/6] objtool: Fix unreachable instruction warnings for weak funcitons

2024-10-14 Thread Rong Xu
In the presence of both weak and strong function definitions, the linker drops the weak symbol in favor of a strong symbol, but leaves the code in place. Code in ignore_unreachable_insn() has some heuristics to suppress the warning, but it does not work when -ffunction-sections is enabled. Suppose

[PATCH v4 1/6] Add AutoFDO support for Clang build

2024-10-14 Thread Rong Xu
Add the build support for using Clang's AutoFDO. Building the kernel with AutoFDO does not reduce the optimization level from the compiler. AutoFDO uses hardware sampling to gather information about the frequency of execution of different code paths within a binary. This information is then used to

[PATCH v4 0/6] Add AutoFDO and Propeller support for Clang build

2024-10-14 Thread Rong Xu
Hi, This patch series is to integrate AutoFDO and Propeller support into the Linux kernel. AutoFDO is a profile-guided optimization technique that leverages hardware sampling to enhance binary performance. Unlike Instrumentation-based FDO (iFDO), AutoFDO offers a user-friendly and straightforward

[PATCH v4 4/6] AutoFDO: Enable -ffunction-sections for the AutoFDO build

2024-10-14 Thread Rong Xu
Enable -ffunction-sections by default for the AutoFDO build. With -ffunction-sections, the compiler places each function in its own section named .text.function_name instead of placing all functions in the .text section. In the AutoFDO build, this allows the linker to utilize profile information t

[PATCH v4 5/6] AutoFDO: Enable machine function split optimization for AutoFDO

2024-10-14 Thread Rong Xu
Enable the machine function split optimization for AutoFDO in Clang. Machine function split (MFS) is a pass in the Clang compiler that splits a function into hot and cold parts. The linker groups all cold blocks across functions together. This decreases hot code fragmentation and improves iCache a

[PATCH v4 3/6] Change the symbols order when --ffuntion-sections is enabled

2024-10-14 Thread Rong Xu
When the -ffunction-sections compiler option is enabled, each function is placed in a separate section named .text.function_name rather than putting all functions in a single .text section. However, using -function-sections can cause problems with the linker script. The comments included in includ

[PATCH v4 6/6] Add Propeller configuration for kernel build.

2024-10-14 Thread Rong Xu
Add the build support for using Clang's Propeller optimizer. Like AutoFDO, Propeller uses hardware sampling to gather information about the frequency of execution of different code paths within a binary. This information is then used to guide the compiler's optimization decisions, resulting in a mo

Re: [PATCH RESEND v3 2/3] kasan: migrate copy_user_test to kunit

2024-10-14 Thread Andrew Morton
On Mon, 14 Oct 2024 07:57:00 +0500 Sabyrzhan Tasbolatov wrote: > Migrate the copy_user_test to the KUnit framework to verify out-of-bound > detection via KASAN reports in copy_from_user(), copy_to_user() and > their static functions. > > This is the last migrated test in kasan_test_module.c, th

Re: [PATCH] docs:process:changes: fix version command for btrfs-progs

2024-10-14 Thread Shuah Khan
On 10/12/24 08:14, Nihar Chaithanya wrote: The command given in the changes.rst document to check the version of btrfs-progs is: -> btrfsck Just use spaces - remove -> which does not output the version, and according to manual page of the btrfs-progs the command to check the version of btrfs-

Re: [PATCH v3 0/5] page allocation tag compression

2024-10-14 Thread Andrew Morton
On Mon, 14 Oct 2024 13:36:41 -0700 Suren Baghdasaryan wrote: > Patch #2 copies module tags into virtually contiguous memory which > serves two purposes: > - Lets us deal with the situation when module is unloaded while there > are still live allocations from that module. Since we are using a copy

Re: [PATCH v3 2/5] alloc_tag: load module tags into separate contiguous memory

2024-10-14 Thread Suren Baghdasaryan
On Mon, Oct 14, 2024 at 4:51 PM Andrew Morton wrote: > > On Mon, 14 Oct 2024 13:36:43 -0700 Suren Baghdasaryan > wrote: > > > When a module gets unloaded there is a possibility that some of the > > allocations it made are still used and therefore the allocation tags > > corresponding to these al

Re: [PATCH v2 4/7] s390/physmem_info: query diag500(STORAGE LIMIT) to support QEMU/KVM memory devices

2024-10-14 Thread David Hildenbrand
On 14.10.24 20:43, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:16PM +0200, David Hildenbrand wrote: To support memory devices under QEMU/KVM, such as virtio-mem, we have to prepare our kernel virtual address space accordingly and have to know the highest possible physical memory address

[PATCH v3 0/5] page allocation tag compression

2024-10-14 Thread Suren Baghdasaryan
This patchset implements several improvements: 1. Gracefully handles module unloading while there are used allocations allocated from that module; 2. Provides an option to store page allocation tag references in the page flags, removing dependency on page extensions and eliminating the memory overh

[PATCH v3 1/5] maple_tree: add mas_for_each_rev() helper

2024-10-14 Thread Suren Baghdasaryan
Add mas_for_each_rev() function to iterate maple tree nodes in reverse order. Suggested-by: Liam R. Howlett Signed-off-by: Suren Baghdasaryan --- include/linux/maple_tree.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.

[PATCH v3 2/5] alloc_tag: load module tags into separate contiguous memory

2024-10-14 Thread Suren Baghdasaryan
When a module gets unloaded there is a possibility that some of the allocations it made are still used and therefore the allocation tags corresponding to these allocations are still referenced. As such, the memory for these tags can't be freed. This is currently handled as an abnormal situation and

[PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Suren Baghdasaryan
Add CONFIG_PGALLOC_TAG_USE_PAGEFLAGS to store allocation tag references directly in the page flags. This eliminates memory overhead caused by page_ext and results in better performance for page allocations. If the number of available page flag bits is insufficient to address all kernel allocations,

[PATCH v3 3/5] alloc_tag: populate memory for module tags as needed

2024-10-14 Thread Suren Baghdasaryan
The memory reserved for module tags does not need to be backed by physical pages until there are tags to store there. Change the way we reserve this memory to allocate only virtual area for the tags and populate it with physical pages as needed when we load a module. Signed-off-by: Suren Baghdasar

[PATCH v3 4/5] alloc_tag: introduce pgalloc_tag_ref to abstract page tag references

2024-10-14 Thread Suren Baghdasaryan
To simplify later changes to page tag references, introduce new pgalloc_tag_ref and pgtag_ref_handle types. This allows easy replacement of page_ext as a storage of page allocation tags. Signed-off-by: Suren Baghdasaryan --- include/linux/mm.h | 25 + include/linux/pgalloc_tag.

Re: [PATCH v2 0/7] virtio-mem: s390 support

2024-10-14 Thread David Hildenbrand
On 14.10.24 20:56, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:12PM +0200, David Hildenbrand wrote: Let's finally add s390 support for virtio-mem; my last RFC was sent 4 years ago, and a lot changed in the meantime. The latest QEMU series is available at [1], which contains some more de

Re: [PATCH v2 5/7] virtio-mem: s390 support

2024-10-14 Thread David Hildenbrand
On 14.10.24 20:48, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:17PM +0200, David Hildenbrand wrote: The special s390 kdump mode, whereby the 2nd kernel creates the ELF core header, won't currently dump virtio-mem memory. The virtio-mem driver has a special kdump mode, from where we can d

Re: [PATCH v2 1/7] s390/kdump: implement is_kdump_kernel()

2024-10-14 Thread David Hildenbrand
On 14.10.24 20:20, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:13PM +0200, David Hildenbrand wrote: s390 currently always results in is_kdump_kernel() == false, because it sets "elfcorehdr_addr = ELFCORE_ADDR_MAX;" early during setup_arch to deactivate the elfcorehdr= kernel parameter.

Re: [PATCH 0/7] KVM: x86: Introduce new ioctl KVM_HYPERV_SET_TLB_FLUSH_INHIBIT

2024-10-14 Thread Sean Christopherson
On Fri, Oct 04, 2024, Nikolas Wipper wrote: > This series introduces a new ioctl KVM_HYPERV_SET_TLB_FLUSH_INHIBIT. It > allows hypervisors to inhibit remote TLB flushing of a vCPU coming from > Hyper-V hyper-calls (namely HvFlushVirtualAddressSpace(Ex) and > HvFlushirtualAddressList(Ex)). It is req

[PATCH] remoteproc: Documentation: upgrade from staging.

2024-10-14 Thread anish kumar
Add the documentation in the mainline from staging and add the relvant information from current mainline. Added: 1. userspace api documentation. 2. kernel api documentation. 3. Driver framework core details added. Signed-off-by: anish kumar --- Documentation/remoteproc/core.rst | 25

Re: [PATCH v2 7/7] s390/sparsemem: reduce section size to 128 MiB

2024-10-14 Thread David Hildenbrand
On 14.10.24 19:53, Heiko Carstens wrote: On Mon, Oct 14, 2024 at 04:46:19PM +0200, David Hildenbrand wrote: Ever since commit 421c175c4d609 ("[S390] Add support for memory hot-add.") we've been using a section size of 256 MiB on s390 and 32 MiB on s390. Before that, we were using a section size

Re: [PATCH RESEND v3 2/3] kasan: migrate copy_user_test to kunit

2024-10-14 Thread Andrey Konovalov
On Tue, Oct 15, 2024 at 1:10 AM Andrew Morton wrote: > > On Mon, 14 Oct 2024 07:57:00 +0500 Sabyrzhan Tasbolatov > wrote: > > > Migrate the copy_user_test to the KUnit framework to verify out-of-bound > > detection via KASAN reports in copy_from_user(), copy_to_user() and > > their static functi

Re: [PATCH v3 0/5] page allocation tag compression

2024-10-14 Thread Suren Baghdasaryan
On Mon, Oct 14, 2024 at 4:32 PM Andrew Morton wrote: > > On Mon, 14 Oct 2024 13:36:41 -0700 Suren Baghdasaryan > wrote: > > > Patch #2 copies module tags into virtually contiguous memory which > > serves two purposes: > > - Lets us deal with the situation when module is unloaded while there > >

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Matthew Wilcox
On Mon, Oct 14, 2024 at 05:03:32PM -0700, John Hubbard wrote: > > > Or better yet, *always* fall back to page_ext, thus leaving the > > > scarce and valuable page flags available for other features? > > > > > > Sorry Suren, to keep coming back to this suggestion, I know > > > I'm driving you crazy

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Suren Baghdasaryan
On Mon, Oct 14, 2024 at 5:03 PM 'John Hubbard' via kernel-team wrote: > > On 10/14/24 4:56 PM, Yosry Ahmed wrote: > > On Mon, Oct 14, 2024 at 4:53 PM John Hubbard wrote: > >> > >> On 10/14/24 4:48 PM, Yosry Ahmed wrote: > >>> On Mon, Oct 14, 2024 at 1:37 PM Suren Baghdasaryan > >>> wrote: > >>>

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Suren Baghdasaryan
On Mon, Oct 14, 2024 at 6:40 PM Matthew Wilcox wrote: > > On Mon, Oct 14, 2024 at 05:03:32PM -0700, John Hubbard wrote: > > > > Or better yet, *always* fall back to page_ext, thus leaving the > > > > scarce and valuable page flags available for other features? > > > > > > > > Sorry Suren, to keep

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Yosry Ahmed
On Mon, Oct 14, 2024 at 1:37 PM Suren Baghdasaryan wrote: > > Add CONFIG_PGALLOC_TAG_USE_PAGEFLAGS to store allocation tag > references directly in the page flags. This eliminates memory > overhead caused by page_ext and results in better performance > for page allocations. > If the number of avai

Re: [PATCH v3 2/5] alloc_tag: load module tags into separate contiguous memory

2024-10-14 Thread Andrew Morton
On Mon, 14 Oct 2024 13:36:43 -0700 Suren Baghdasaryan wrote: > When a module gets unloaded there is a possibility that some of the > allocations it made are still used and therefore the allocation tags > corresponding to these allocations are still referenced. As such, the > memory for these tags

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread John Hubbard
On 10/14/24 4:48 PM, Yosry Ahmed wrote: On Mon, Oct 14, 2024 at 1:37 PM Suren Baghdasaryan wrote: Add CONFIG_PGALLOC_TAG_USE_PAGEFLAGS to store allocation tag references directly in the page flags. This eliminates memory overhead caused by page_ext and results in better performance for page al

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread Yosry Ahmed
On Mon, Oct 14, 2024 at 4:53 PM John Hubbard wrote: > > On 10/14/24 4:48 PM, Yosry Ahmed wrote: > > On Mon, Oct 14, 2024 at 1:37 PM Suren Baghdasaryan > > wrote: > >> > >> Add CONFIG_PGALLOC_TAG_USE_PAGEFLAGS to store allocation tag > >> references directly in the page flags. This eliminates mem

Re: [PATCH v3 5/5] alloc_tag: config to store page allocation tag refs in page flags

2024-10-14 Thread John Hubbard
On 10/14/24 4:56 PM, Yosry Ahmed wrote: On Mon, Oct 14, 2024 at 4:53 PM John Hubbard wrote: On 10/14/24 4:48 PM, Yosry Ahmed wrote: On Mon, Oct 14, 2024 at 1:37 PM Suren Baghdasaryan wrote: Add CONFIG_PGALLOC_TAG_USE_PAGEFLAGS to store allocation tag references directly in the page flags.

Re: [PATCH 09/12] mm: Update vm_normal_page() callers to accept FS DAX pages

2024-10-14 Thread Alistair Popple
Dan Williams writes: > Alistair Popple wrote: >> Currently if a PTE points to a FS DAX page vm_normal_page() will >> return NULL as these have their own special refcounting scheme. A >> future change will allow FS DAX pages to be refcounted the same as any >> other normal page. >> >> Therefore

Re: [RFC PATCH v3 4/4] sched+mm: Use hazard pointers to track lazy active mm existence

2024-10-14 Thread kernel test robot
e at: https://download.01.org/0day-ci/archive/20241014/202410141617.612a0f5b-...@intel.com -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki

[PATCH v2 0/7] virtio-mem: s390 support

2024-10-14 Thread David Hildenbrand
Let's finally add s390 support for virtio-mem; my last RFC was sent 4 years ago, and a lot changed in the meantime. The latest QEMU series is available at [1], which contains some more details and a usage example on s390 (last patch). There is not too much in here: The biggest part is querying a

[PATCH v2 4/7] s390/physmem_info: query diag500(STORAGE LIMIT) to support QEMU/KVM memory devices

2024-10-14 Thread David Hildenbrand
To support memory devices under QEMU/KVM, such as virtio-mem, we have to prepare our kernel virtual address space accordingly and have to know the highest possible physical memory address we might see later: the storage limit. The good old SCLP interface is not suitable for this use case. In parti

[PATCH v2 3/7] Documentation: s390-diag.rst: document diag500(STORAGE LIMIT) subfunction

2024-10-14 Thread David Hildenbrand
Let's document our new diag500 subfunction that can be implemented by userspace. Signed-off-by: David Hildenbrand --- Documentation/virt/kvm/s390/s390-diag.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/virt/kvm/s390/s390-diag.rst b/Documentation/virt/k

[PATCH v2 5/7] virtio-mem: s390 support

2024-10-14 Thread David Hildenbrand
Now that s390 code is prepared for memory devices that reside above the maximum storage increment exposed through SCLP, everything is in place to unlock virtio-mem support. As virtio-mem in Linux currently supports logically onlining/offlining memory in pageblock granularity, we have an effective

[PATCH v2 2/7] Documentation: s390-diag.rst: make diag500 a generic KVM hypercall

2024-10-14 Thread David Hildenbrand
Let's make it a generic KVM hypercall, allowing other subfunctions to be more independent of virtio. This is a preparation for documenting a new hypercall. Signed-off-by: David Hildenbrand --- Documentation/virt/kvm/s390/s390-diag.rst | 15 --- 1 file changed, 8 insertions(+), 7 del

[PATCH v2 1/7] s390/kdump: implement is_kdump_kernel()

2024-10-14 Thread David Hildenbrand
s390 currently always results in is_kdump_kernel() == false, because it sets "elfcorehdr_addr = ELFCORE_ADDR_MAX;" early during setup_arch to deactivate the elfcorehdr= kernel parameter. Let's follow the powerpc example and implement our own logic. This is required for virtio-mem to reliably iden

[PATCH v2 7/7] s390/sparsemem: reduce section size to 128 MiB

2024-10-14 Thread David Hildenbrand
Ever since commit 421c175c4d609 ("[S390] Add support for memory hot-add.") we've been using a section size of 256 MiB on s390 and 32 MiB on s390. Before that, we were using a section size of 32 MiB on both architectures. Likely the reason was that we'd expect a storage increment size of 256 MiB un

[PATCH v2 6/7] lib/Kconfig.debug: default STRICT_DEVMEM to "y" on s390

2024-10-14 Thread David Hildenbrand
virtio-mem currently depends on !DEVMEM | STRICT_DEVMEM. Let's default STRICT_DEVMEM to "y" just like we do for arm64 and x86. There could be ways in the future to filter access to virtio-mem device memory even without STRICT_DEVMEM, but for now let's just keep it simple. Tested-by: Mario Casquer

Re: [PATCH v13 11/40] arm64/gcs: Provide basic EL2 setup to allow GCS usage at EL0 and EL1

2024-10-14 Thread Catalin Marinas
On Fri, Oct 11, 2024 at 01:55:05PM +0100, Marc Zyngier wrote: > On Thu, 10 Oct 2024 18:16:52 +0100, > Catalin Marinas wrote: > > > > On Thu, Oct 10, 2024 at 04:18:13PM +0100, Marc Zyngier wrote: > > > From 20c98d2647c11db1e40768f92c5998ff5d764a3a Mon Sep 17 00:00:00 2001 > > > From: Marc Zyngier

Re: [PATCH 2/7] KVM: x86: Implement Hyper-V's vCPU suspended state

2024-10-14 Thread Nikolas Wipper
On 10.10.24 10:57, Vitaly Kuznetsov wrote: > Nikolas Wipper writes: >> diff --git a/arch/x86/include/asm/kvm_host.h >> b/arch/x86/include/asm/kvm_host.h >> index 46e0a466d7fb..7571ac578884 100644 >> --- a/arch/x86/include/asm/kvm_host.h >> +++ b/arch/x86/include/asm/kvm_host.h >> @@ -695,6 +695,9

Re: [PATCH 08/12] gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages

2024-10-14 Thread Alistair Popple
Dan Williams writes: > Dan Williams wrote: >> Alistair Popple wrote: >> > Longterm pinning of FS DAX pages should already be disallowed by >> > various pXX_devmap checks. However a future change will cause these >> > checks to be invalid for FS DAX pages so make >> > folio_is_longterm_pinnable(

Re: [PATCH 11/12] mm: Remove pXX_devmap callers

2024-10-14 Thread Alistair Popple
Alexander Gordeev writes: > On Tue, Sep 10, 2024 at 02:14:36PM +1000, Alistair Popple wrote: > > Hi Alistair, > >> diff --git a/arch/powerpc/mm/book3s64/pgtable.c >> b/arch/powerpc/mm/book3s64/pgtable.c >> index 5a4a753..4537a29 100644 >> --- a/arch/powerpc/mm/book3s64/pgtable.c >> +++ b/arch/

Re: [PATCH 07/12] huge_memory: Allow mappings of PMD sized pages

2024-10-14 Thread Alistair Popple
Dan Williams writes: > Alistair Popple wrote: >> Currently DAX folio/page reference counts are managed differently to >> normal pages. To allow these to be managed the same as normal pages >> introduce dax_insert_pfn_pmd. This will map the entire PMD-sized folio >> and take references as it wou

Re: [PATCH v6 33/33] kselftest/riscv: kselftest for user mode cfi

2024-10-14 Thread Zong Li
On Sat, Oct 12, 2024 at 3:46 AM Deepak Gupta wrote: > > On Fri, Oct 11, 2024 at 07:43:30PM +0800, Zong Li wrote: > >On Fri, Oct 11, 2024 at 6:18 PM Mark Brown wrote: > >> > >> On Fri, Oct 11, 2024 at 01:44:55PM +0800, Zong Li wrote: > >> > On Wed, Oct 9, 2024 at 7:46 AM Deepak Gupta wrote: > >>

Re: [PATCH v2 7/7] s390/sparsemem: reduce section size to 128 MiB

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:19PM +0200, David Hildenbrand wrote: > Ever since commit 421c175c4d609 ("[S390] Add support for memory hot-add.") > we've been using a section size of 256 MiB on s390 and 32 MiB on s390. > Before that, we were using a section size of 32 MiB on both > architectures. >

Re: [PATCH v2 2/7] Documentation: s390-diag.rst: make diag500 a generic KVM hypercall

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:14PM +0200, David Hildenbrand wrote: > Let's make it a generic KVM hypercall, allowing other subfunctions to > be more independent of virtio. > > This is a preparation for documenting a new hypercall. > > Signed-off-by: David Hildenbrand > --- > Documentation/virt/

Re: [PATCH v2 1/7] s390/kdump: implement is_kdump_kernel()

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:13PM +0200, David Hildenbrand wrote: > s390 currently always results in is_kdump_kernel() == false, because > it sets "elfcorehdr_addr = ELFCORE_ADDR_MAX;" early during setup_arch to > deactivate the elfcorehdr= kernel parameter. > > Let's follow the powerpc example a

Re: [PATCH 5/7] KVM: x86: Implement KVM_HYPERV_SET_TLB_FLUSH_INHIBIT

2024-10-14 Thread Nikolas Wipper
On 10.10.24 10:57, Vitaly Kuznetsov wrote: > Nikolas Wipper writes: >> diff --git a/arch/x86/include/asm/kvm_host.h >> b/arch/x86/include/asm/kvm_host.h >> index 7571ac578884..ab3a9beb61a2 100644 >> --- a/arch/x86/include/asm/kvm_host.h >> +++ b/arch/x86/include/asm/kvm_host.h >> @@ -698,6 +698,8

Re: [PATCH v2 5/7] virtio-mem: s390 support

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:17PM +0200, David Hildenbrand wrote: > The special s390 kdump mode, whereby the 2nd kernel creates the ELF > core header, won't currently dump virtio-mem memory. The virtio-mem > driver has a special kdump mode, from where we can detect memory ranges > to dump. Based o

Re: [PATCH v2 4/7] s390/physmem_info: query diag500(STORAGE LIMIT) to support QEMU/KVM memory devices

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:16PM +0200, David Hildenbrand wrote: > To support memory devices under QEMU/KVM, such as virtio-mem, > we have to prepare our kernel virtual address space accordingly and > have to know the highest possible physical memory address we might see > later: the storage limi

Re: [PATCH v2 0/7] virtio-mem: s390 support

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:12PM +0200, David Hildenbrand wrote: > Let's finally add s390 support for virtio-mem; my last RFC was sent > 4 years ago, and a lot changed in the meantime. > > The latest QEMU series is available at [1], which contains some more > details and a usage example on s390

Re: [PATCH v2 6/7] lib/Kconfig.debug: default STRICT_DEVMEM to "y" on s390

2024-10-14 Thread Heiko Carstens
On Mon, Oct 14, 2024 at 04:46:18PM +0200, David Hildenbrand wrote: > virtio-mem currently depends on !DEVMEM | STRICT_DEVMEM. Let's default > STRICT_DEVMEM to "y" just like we do for arm64 and x86. > > There could be ways in the future to filter access to virtio-mem device > memory even without ST