Re: [PATCH v3 2/5] module: Add module specific symbol namespace support

2025-05-16 Thread Masahiro Yamada
On Fri, May 2, 2025 at 11:26 PM Peter Zijlstra wrote: > > Designate the "module:${modname}" symbol namespace to mean: 'only > export to the named module'. > > Notably, explicit imports of anything in the "module:" space is > forbidden. > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/mod

Re: [PATCH v3 0/5] module: Strict per-modname namespaces

2025-05-16 Thread Masahiro Yamada
On Wed, May 14, 2025 at 5:48 PM Petr Pavlu wrote: > > On 5/2/25 16:12, Peter Zijlstra wrote: > > Hi! > > > > Implement means for exports to be available to an explicit list of named > > modules. By explicitly limiting the usage of certain exports, the abuse > > potential/risk is greatly reduced. >

[PATCH] selftests/mm: compaction_test: convert comments to preferred style

2025-05-16 Thread George Anthony Vernon
Convert multi-line comments to preferred style with beginning and ending almost-blank lines. Signed-off-by: George Anthony Vernon --- tools/testing/selftests/mm/compaction_test.c | 22 +--- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/mm/

[PATCH] selftests: net: Fix spellings

2025-05-16 Thread Sumanth Gavini
Fix "withouth" to "without" Fix "instaces" to "instances" Signed-off-by: Sumanth Gavini --- tools/testing/selftests/net/srv6_end_flavors_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/srv6_end_flavors_test.sh b/tools/testing/selftests

[PATCH] selftests: nci: Fix "Electrnoics" to "Electronics"

2025-05-16 Thread Sumanth Gavini
Fix misspelling reported by codespell Signed-off-by: Sumanth Gavini --- tools/testing/selftests/nci/nci_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nci/nci_dev.c b/tools/testing/selftests/nci/nci_dev.c index 1562aa7d60b0..6dec59d64083 100644

[PATCH] selftests: net: fix spelling and grammar mistakes

2025-05-16 Thread Praveen Balakrishnan
Fix several spelling and grammatical mistakes in output messages from the net selftests to improve readability. Only the message strings for the test output have been modified. No changes to the functional logic of the tests have been made. Signed-off-by: Praveen Balakrishnan --- .../testing/se

[PATCH] selftests: seccomp: Fix "performace" to "performance"

2025-05-16 Thread Sumanth Gavini
Fix misspelling reported by codespell Signed-off-by: Sumanth Gavini --- tools/testing/selftests/seccomp/seccomp_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark

[PATCH v2] selftests: Add functional test for the abort file in fusectl

2025-05-16 Thread Chen Linxuan
This patch add a simple functional test for the "abort" file in fusectlfs (/sys/fs/fuse/connections/ID/about). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxPpxtS6G_nR0tpw95w0GiO68UcWg_OBhmSY=q...@m

[PATCH 1/1] Fix typo in cpu-on-off-test selftest script:

2025-05-16 Thread Jihed Chaibi
Fix typo in hotplaggable_offline_cpus function name: "hotplaggable" is replaced by "hotpluggable" Signed-off-by: Jihed Chaibi --- tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/cpu-hotplug/cp

Re: [PATCH net-next v2 0/3] vsock/test: improve sigpipe test reliability

2025-05-16 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 14 May 2025 16:19:24 +0200 you wrote: > Running the tests continuously I noticed that sometimes the sigpipe > test would fail due to a race between the control message of the test > and the vsock transport me

[PATCH v2 6/8] irqbypass: Use guard(mutex) in lieu of manual lock+unlock

2025-05-16 Thread Sean Christopherson
Use guard(mutex) to clean up irqbypass's error handling. Reviewed-by: Kevin Tian Acked-by: Michael S. Tsirkin Signed-off-by: Sean Christopherson --- virt/lib/irqbypass.c | 38 ++ 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/virt/lib/irqbyp

[PATCH net v2] selftests: net: validate team flags propagation

2025-05-16 Thread Stanislav Fomichev
Cover three recent cases: 1. missing ops locking for the lowers during netdev_sync_lower_features 2. missing locking for dev_set_promiscuity (plus netdev_ops_assert_locked with a comment on why/when it's needed) 3. rcu lock during team_change_rx_flags Verified that each one triggers when the re

[PATCH v2 5/8] irqbypass: Use paired consumer/producer to disconnect during unregister

2025-05-16 Thread Sean Christopherson
Use the paired consumer/producer information to disconnect IRQ bypass producers/consumers in O(1) time (ignoring the cost of __disconnect()). Reviewed-by: Kevin Tian Acked-by: Michael S. Tsirkin Signed-off-by: Sean Christopherson --- virt/lib/irqbypass.c | 48 --

[PATCH v2 8/8] irqbypass: Require producers to pass in Linux IRQ number during registration

2025-05-16 Thread Sean Christopherson
Pass in the Linux IRQ associated with an IRQ bypass producer instead of relying on the caller to set the field prior to registration, as there's no benefit to relying on callers to do the right thing. Take care to set producer->irq before __connect(), as KVM expects the IRQ to be valid as soon as

[PATCH] selftests: drv-net: Fix "envirnoments" to "environments"

2025-05-16 Thread Sumanth Gavini
Fix misspelling reported by codespell Signed-off-by: Sumanth Gavini --- tools/testing/selftests/drivers/net/lib/py/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/net/lib/py/env.py b/tools/testing/selftests/drivers/net/lib/py/env.py ind

[PATCH v2 7/8] irqbypass: Use xarray to track producers and consumers

2025-05-16 Thread Sean Christopherson
Track IRQ bypass producers and consumers using an xarray to avoid the O(2n) insertion time associated with walking a list to check for duplicate entries, and to search for an partner. At low (tens or few hundreds) total producer/consumer counts, using a list is faster due to the need to allocate b

[PATCH v2 3/8] irqbypass: Take ownership of producer/consumer token tracking

2025-05-16 Thread Sean Christopherson
Move ownership of IRQ bypass token tracking into irqbypass.ko, and explicitly require callers to pass an eventfd_ctx structure instead of a completely opaque token. Relying on producers and consumers to set the token appropriately is error prone, and hiding the fact that the token must be an event

[PATCH v2 4/8] irqbypass: Explicitly track producer and consumer bindings

2025-05-16 Thread Sean Christopherson
Explicitly track IRQ bypass producer:consumer bindings. This will allow making removal an O(1) operation; searching through the list to find information that is trivially tracked (and useful for debug) is wasteful. Reviewed-by: Kevin Tian Acked-by: Michael S. Tsirkin Signed-off-by: Sean Christo

[PATCH v2 2/8] irqbypass: Drop superfluous might_sleep() annotations

2025-05-16 Thread Sean Christopherson
Drop superfluous might_sleep() annotations from irqbypass, mutex_lock() provides all of the necessary tracking. Reviewed-by: Kevin Tian Acked-by: Michael S. Tsirkin Signed-off-by: Sean Christopherson --- virt/lib/irqbypass.c | 8 1 file changed, 8 deletions(-) diff --git a/virt/lib/i

[PATCH v2 1/8] irqbypass: Drop pointless and misleading THIS_MODULE get/put

2025-05-16 Thread Sean Christopherson
Drop irqbypass.ko's superfluous and misleading get/put calls on THIS_MODULE. A module taking a reference to itself is useless; no amount of checks will prevent doom and destruction if the caller hasn't already guaranteed the liveliness of the module (this goes for any module). E.g. if try_module_

[PATCH v2 0/8] irqbypass: Cleanups and a perf improvement

2025-05-16 Thread Sean Christopherson
The two primary goals of this series are to make the irqbypass concept easier to understand, and to address the terrible performance that can result from using a list to track connections. For the first goal, track the producer/consumer "tokens" as eventfd context pointers instead of opaque "void

Re: [PATCH bpf-next/net v3 4/5] selftests/bpf: Add mptcp_subflow bpf_iter subtest

2025-05-16 Thread Martin KaFai Lau
On 3/20/25 10:48 AM, Matthieu Baerts (NGI0) wrote: From: Geliang Tang This patch adds a "cgroup/getsockopt" program "iters_subflow" to test the newly added mptcp_subflow bpf_iter. Export mptcp_subflow helpers bpf_iter_mptcp_subflow_new/_next/_destroy and other helpers into bpf_experimental.h.

Re: [PATCH bpf-next/net v3 2/5] bpf: Add mptcp_subflow bpf_iter

2025-05-16 Thread Martin KaFai Lau
On 3/20/25 10:48 AM, Matthieu Baerts (NGI0) wrote: From: Geliang Tang It's necessary to traverse all subflows on the conn_list of an MPTCP socket and then call kfunc to modify the fields of each subflow. In kernel space, mptcp_for_each_subflow() helper is used for this: mptcp_for_each_

Re: [PATCH v3 5/6] arm64: dts: qcom: qcs615: add ADSP and CDSP nodes

2025-05-16 Thread Dmitry Baryshkov
On Fri, May 16, 2025 at 11:27:06AM +0800, Lijuan Gao wrote: > Add nodes for remoteprocs: ADSP and CDSP for QCS615 SoC to enable proper > remoteproc functionality. > > Reviewed-by: Konrad Dybcio > Signed-off-by: Lijuan Gao > --- > arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 >

Re: [PATCH v4 27/38] KVM: x86/pmu: Handle PMU MSRs interception and event filtering

2025-05-16 Thread Sean Christopherson
On Fri, May 16, 2025, Dapeng Mi wrote: > On 3/25/2025 1:31 AM, Mingwei Zhang wrote: > > + if (kvm_mediated_pmu_enabled(pmu_to_vcpu(pmu))) { > > + bool allowed = check_pmu_event_filter(pmc); > > + > > + if (pmc_is_gp(pmc)) { > > + if (allowed) > > +

[PATCH] kunit: tool: add test counts to JSON output

2025-05-16 Thread Rae Moar
Add the test counts to the JSON output from kunit.py. For example: ... "git_branch": "kselftest", "misc": { "tests": 2, "passed": 1. "failed": 1, "crashed": 0, "skipped": 0, "errors": 0, } ... To output the JSON using the following command: ./tools/testing/kunit/kunit.py r

[PATCH] kselftests/x86: Correct grammer in VMX pairing message

2025-05-16 Thread Sukrut Heroorkar
Fixes a small grammatical error in the print message. signed-off-by: Sukrut Heroorkar --- tools/testing/selftests/x86/ioperm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/ioperm.c b/tools/testing/selftests/x86/ioperm.c index 69d5fb7050c2..a509

[RFC PATCH v2 13/13] KVM: selftests: Add tests for migration of private mem

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Tests that private mem (in guest_mem files) can be migrated. Also demonstrates the migration flow. Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- tools/testing/selftests/kvm/Makefile.kvm | 1 + .../kvm/x86/private_mem_migrate_tests.c | 56 ++

[RFC PATCH v2 12/13] KVM: selftests: Generalize migration functions from sev_migrate_tests.c

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng These functions will be used in private (guest mem) migration tests. Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- .../testing/selftests/kvm/include/kvm_util.h | 13 + .../selftests/kvm/x86/sev_migrate_tests.c | 48 +++ 2 files changed

[RFC PATCH v2 11/13] KVM: x86: Handle moving of memory context for intra-host migration

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Migration of memory context involves moving lpage_info and mem_attr_array from source to destination VM. Co-developed-by: Sagi Shahar Signed-off-by: Sagi Shahar Co-developed-by: Vishal Annapurve Signed-off-by: Vishal Annapurve Signed-off-by: Ackerley Tng Signed-off-by: Ry

[RFC PATCH v2 10/13] KVM: x86: Let moving encryption context be configurable

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng SEV-capable VMs may also use the KVM_X86_SW_PROTECTED_VM type, but they will still need architecture-specific handling to move encryption context. Hence, we let moving of encryption context be configurable and store that configuration in a flag. Co-developed-by: Vishal Annapur

[RFC PATCH v2 09/13] KVM: x86: Refactor common migration preparation code out of sev_vm_move_enc_context_from

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Co-developed-by: Sagi Shahar Signed-off-by: Sagi Shahar Co-developed-by: Vishal Annapurve Signed-off-by: Vishal Annapurve Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/svm/sev.c | 29 +++

[RFC PATCH v2 08/13] KVM: x86: Refactor common code out of sev.c

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Split sev_lock_two_vms() into kvm_mark_migration_in_progress() and kvm_lock_two_vms() and refactor sev.c to use these two new functions. Co-developed-by: Sagi Shahar Signed-off-by: Sagi Shahar Co-developed-by: Vishal Annapurve Signed-off-by: Vishal Annapurve Signed-off-by:

[RFC PATCH v2 07/13] KVM: x86: Refactor sev's flag migration_in_progress to kvm struct

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng The migration_in_progress flag will also be needed for migration of non-sev VMs. Co-developed-by: Sagi Shahar Signed-off-by: Sagi Shahar Co-developed-by: Vishal Annapurve Signed-off-by: Vishal Annapurve Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- arch/x8

[RFC PATCH v2 06/13] KVM: selftests: Test transferring private memory to another VM

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- .../kvm/x86/private_mem_migrate_tests.c | 87 +++ 1 file changed, 87 insertions(+) create mode 100644 tools/testing/selftests/kvm/x86/private_mem_migrate_tests.c diff --git a/tools/testing/se

[RFC PATCH v2 05/13] KVM: selftests: Add tests for KVM_LINK_GUEST_MEMFD ioctl

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Test that + Invalid inputs should be rejected with EINVAL + Successful inputs return a new (destination) fd + Destination and source fds have the same inode number + No crash on program exit Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --- .../testing/selftests/

[RFC PATCH v2 02/13] KVM: guest_memfd: Make guest mem use guest mem inodes instead of anonymous inodes

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng Using guest mem inodes allows us to store metadata for the backing memory on the inode. Metadata will be added in a later patch to support HugeTLB pages. Metadata about backing memory should not be stored on the file, since the file represents a guest_memfd's binding with a st

[RFC PATCH v2 04/13] KVM: guest_mem: Add ioctl KVM_LINK_GUEST_MEMFD

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng KVM_LINK_GUEST_MEMFD will link a gmem fd's underlying inode to a new file (and fd). Signed-off-by: Ackerley Tng Co-developed-by: Ryan Afranji Signed-off-by: Ryan Afranji --- include/uapi/linux/kvm.h | 8 ++ virt/kvm/guest_memfd.c | 57 +++

[RFC PATCH v2 03/13] KVM: guest_mem: Refactor out kvm_gmem_alloc_view()

2025-05-16 Thread Ryan Afranji
From: Ackerley Tng kvm_gmem_alloc_view() will allocate and build a file out of an inode. Will be reused later by kvm_gmem_link() Signed-off-by: Ackerley Tng Co-developed-by: Ryan Afranji Signed-off-by: Ryan Afranji --- virt/kvm/guest_memfd.c | 61 +++---

[RFC PATCH v2 01/13] fs: Refactor to provide function that allocates a secure anonymous inode

2025-05-16 Thread Ryan Afranji
From: David Hildenbrand alloc_anon_secure_inode() returns an inode after running checks in security_inode_init_security_anon(). Also refactor secretmem's file creation process to use the new function. Signed-off-by: David Hildenbrand Signed-off-by: Ackerley Tng Signed-off-by: Ryan Afranji --

[RFC PATCH v2 00/13] New KVM ioctl to link a gmem inode to a new gmem file

2025-05-16 Thread Ryan Afranji
Hello, RFC v2 addresses comments in RFC v1 [1]. This series is also rebased on kvm/next (v6.15-rc4). Here's the series stitched together for your convenience: https://github.com/googleprodkernel/linux-cc/tree/kvm-gmem-link-migrate-rfcv2 Changes from RFC v1: + Adds patches to make guest mem use g

[PATCH] Documentation: kunit: improve example on testing static functions

2025-05-16 Thread Rae Moar
The documentation on testing static functions using the KUnit macros VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT is lacking clarity and missing key steps in the example. This has caused bugs and confusion among developers. Improve wording of description and add missing steps to the example. This e

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread Mark Brown
On Fri, May 16, 2025 at 04:12:08PM +0200, David Hildenbrand wrote: > On 16.05.25 15:09, Mark Brown wrote: > > > I'm afraid we have other such tests that report duplicate conditions. > > > cow.c > > > is likely another candidate (written by me ;) ). > > That one's not come up for me (this was one

Re: [PATCH net] selftests: net: validate team flags propagation

2025-05-16 Thread Stanislav Fomichev
On 05/16, Jakub Kicinski wrote: > On Thu, 15 May 2025 16:13:32 -0700 Stanislav Fomichev wrote: > > Cover three recent cases: > > 1. missing ops locking for the lowers during netdev_sync_lower_features > > 2. missing locking for dev_set_promiscuity (plus netdev_ops_assert_locked > >with a commen

[PATCH] [PATCH] Change pidns to pid namespace

2025-05-16 Thread rodgepritesh
From: Pritesh Rodge Changed a comment in memfd_test.c , Unabbreviated pidns to pid namespace for better understanding . Signed-off-by: Pritesh Rodge --- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/memfd/

Re: [PATCH v3 0/2] arm64: livepatch: Enable livepatch without sframe

2025-05-16 Thread Song Liu
On Thu, Apr 10, 2025 at 8:17 AM Petr Mladek wrote: > [...] > > > > [1] > > https://lore.kernel.org/live-patching/20250127213310.2496133-1-wn...@google.com/ > > [2] > > https://lore.kernel.org/live-patching/20250129232936.1795412-1-s...@kernel.org/ > > [3] https://sourceware.org/bugzilla/show_bug

Re: [PATCH v12 04/36] remoteproc: k3-m4: Don't assert reset in detach routine

2025-05-16 Thread Mathieu Poirier
On Tue, May 13, 2025 at 11:14:38AM +0530, Beleswar Padhi wrote: > The rproc_detach() function invokes __rproc_detach() before > rproc_unprepare_device(). The __rproc_detach() function sets the > rproc->state to "RPROC_DETACHED". > > However, the TI K3 M4 driver erroneously looks for "RPROC_ATTACHE

[PATCH] selftests: firmware: Add details in error logging

2025-05-16 Thread Harshal
Specify details in logs of failed cases Use die() instead of exit() when write to sys_path fails Signed-off-by: Harshal --- tools/testing/selftests/firmware/fw_namespace.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/firmware/fw_n

Re: [PATCH] kselftest/arm64: Set default OUTPUT path when undefined

2025-05-16 Thread Will Deacon
On Thu, 15 May 2025 13:18:39 +0800, tanze wrote: > When running 'make' in tools/testing/selftests/arm64/ without explicitly > setting the OUTPUT variable, the build system will creates test > directories (e.g., /bti) in the root filesystem due to OUTPUT defaulting > to an empty string. This causes

Re: [PATCH v4 24/38] KVM: x86/pmu: Exclude PMU MSRs in vmx_get_passthrough_msr_slot()

2025-05-16 Thread Sean Christopherson
On Fri, May 16, 2025, Sean Christopherson wrote: > On Mon, Mar 24, 2025, Mingwei Zhang wrote: > > Reject PMU MSRs interception explicitly in > > vmx_get_passthrough_msr_slot() since interception of PMU MSRs are > > specially handled in intel_passthrough_pmu_msrs(). > > > > Signed-off-by: Mingwei Z

Re: [PATCH net] selftests: net: validate team flags propagation

2025-05-16 Thread Jakub Kicinski
On Thu, 15 May 2025 16:13:32 -0700 Stanislav Fomichev wrote: > Cover three recent cases: > 1. missing ops locking for the lowers during netdev_sync_lower_features > 2. missing locking for dev_set_promiscuity (plus netdev_ops_assert_locked >with a comment on why/when it's needed) > 3. rcu lock d

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread David Hildenbrand
On 16.05.25 15:09, Mark Brown wrote: On Fri, May 16, 2025 at 02:55:24PM +0200, David Hildenbrand wrote: On 16.05.25 14:29, Mark Brown wrote: On Fri, May 16, 2025 at 10:02:16AM +0200, David Hildenbrand wrote: reason), what exactly is the problem with that? We run tests. If all pass, we're

Re: [PATCH v4 25/38] KVM: x86/pmu: Add AMD PMU registers to direct access list

2025-05-16 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > From: Sandipan Das > > Add all PMU-related MSRs (including legacy K7 MSRs) to the list of > possible direct access MSRs. Most of them will not be intercepted when > using passthrough PMU. > > Signed-off-by: Sandipan Das > Signed-off-by: Mingwei Zhan

Re: [PATCH v4 24/38] KVM: x86/pmu: Exclude PMU MSRs in vmx_get_passthrough_msr_slot()

2025-05-16 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > Reject PMU MSRs interception explicitly in > vmx_get_passthrough_msr_slot() since interception of PMU MSRs are > specially handled in intel_passthrough_pmu_msrs(). > > Signed-off-by: Mingwei Zhang > Co-developed-by: Dapeng Mi > Signed-off-by: Dapeng M

Re: [PATCH v4 23/38] KVM: x86/pmu: Configure the interception of PMU MSRs

2025-05-16 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > +static void amd_pmu_update_msr_intercepts(struct kvm_vcpu *vcpu) > +{ > + struct kvm_pmu *pmu = vcpu_to_pmu(vcpu); > + struct vcpu_svm *svm = to_svm(vcpu); > + int msr_clear = !!(kvm_mediated_pmu_enabled(vcpu)); > + int i; > + > + fo

Re: [PATCH v4 32/38] KVM: nVMX: Add nested virtualization support for mediated PMU

2025-05-16 Thread Sean Christopherson
This shortlog is unnecessarily confusing. It reads as if supported for running L2 in a vCPU with a mediated PMU is somehow lacking. On Mon, Mar 24, 2025, Mingwei Zhang wrote: > Add nested virtualization support for mediated PMU by combining the MSR > interception bitmaps of vmcs01 and vmcs12. Do

[PATCH v2 2/2] selftests/mm: skip hugevm test if kernel config file is not present.

2025-05-16 Thread Zi Yan
When running hugevm tests in a machine without kernel config present, e.g., a VM running a kernel without CONFIG_IKCONFIG_PROC nor /boot/config-*, skip hugevm tests, which reads kernel config to get page table level information. Signed-off-by: Zi Yan Acked-by: Lorenzo Stoakes --- .../selftests/

[PATCH v2 1/2] selftests/mm: skip guard_regions.uffd tests when uffd is not present.

2025-05-16 Thread Zi Yan
When userfaultfd is not compiled into kernel, userfaultfd() returns -1, causing guard_regions.uffd tests to fail. Skip the tests instead. Signed-off-by: Zi Yan Reviewed-by: Lorenzo Stoakes Reviewed-by: Pedro Falcato --- tools/testing/selftests/mm/guard-regions.c | 17 +++-- 1 file

[PATCH v2 0/2] Skip mm selftests instead when kernel features are not present

2025-05-16 Thread Zi Yan
Two guard_regions tests on userfaultfd fail when userfaultfd is not present. Skip them instead. hugevm test reads kernel config to get page table level information and fails when neither /proc/config.gz nor /boot/config-* is present. Skip it instead. Zi Yan (2): selftests/mm: skip guard_regions

Re: [PATCH v4 29/38] KVM: x86/pmu: Switch host/guest PMU context at vm-exit/vm-entry

2025-05-16 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > + /* > + * Clear hardware selector MSR content and its counter to avoid > + * leakage and also avoid this guest GP counter get accidentally > + * enabled during host running when host enable global ctrl. > + */ > + for (i = 0;

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread Mark Brown
On Fri, May 16, 2025 at 02:55:24PM +0200, David Hildenbrand wrote: > On 16.05.25 14:29, Mark Brown wrote: > > On Fri, May 16, 2025 at 10:02:16AM +0200, David Hildenbrand wrote: > > > reason), what exactly is the problem with that? > > > We run tests. If all pass, we're happy, if one fails, we inv

Re: [PATCH] MAINTAINERS: Update Zqiang's email address

2025-05-16 Thread Joel Fernandes
On 5/16/2025 7:20 AM, Zqiang wrote: > This patch updates Zqiang's email address to qiang.zh...@linux.dev. > > Signed-off-by: Zqiang Acked-by: Joel Fernandes Will apply for 6.16. Thanks, - Joel > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread David Hildenbrand
On 16.05.25 14:29, Mark Brown wrote: On Fri, May 16, 2025 at 10:02:16AM +0200, David Hildenbrand wrote: On 15.05.25 10:57, Mark Brown wrote: The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results betwee

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread Mark Brown
On Fri, May 16, 2025 at 10:02:16AM +0200, David Hildenbrand wrote: > On 15.05.25 10:57, Mark Brown wrote: > > The kselftest framework uses the string logged when a test result is > > reported as the unique identifier for a test, using it to track test > > results between runs. The gup_longterm tes

Re: [PATCH v2 1/3] rpmsg: char: Reuse eptdev logic for anon device

2025-05-16 Thread Dawei Li
Hi Mathieu, Thanks for reviewing. On Thu, May 15, 2025 at 02:24:04PM -0600, Mathieu Poirier wrote: > Hi, > > On Fri, May 09, 2025 at 11:59:25PM +0800, Dawei Li wrote: > > Current uAPI implementation for rpmsg ctrl & char device manipulation is > > abstracted in procedures below: > > > > Current

[PATCH] MAINTAINERS: Update Zqiang's email address

2025-05-16 Thread Zqiang
This patch updates Zqiang's email address to qiang.zh...@linux.dev. Signed-off-by: Zqiang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8eb7e057b8f9..901a54a633f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20298,7 +20298,7

Re: [PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-05-16 Thread Michael S. Tsirkin
On Fri, May 16, 2025 at 09:31:42AM +0800, Jason Wang wrote: > On Thu, May 15, 2025 at 2:14 PM Michael S. Tsirkin wrote: > > > > On Wed, May 14, 2025 at 10:52:58AM +0800, Jason Wang wrote: > > > On Tue, May 13, 2025 at 3:09 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Tue, May 13, 2025 a

Re: [PATCH 13/19] virtio_ring: introduce virtqueue ops

2025-05-16 Thread Michael S. Tsirkin
On Fri, May 16, 2025 at 09:30:01AM +0800, Jason Wang wrote: > On Wed, May 14, 2025 at 10:24 PM Michael S. Tsirkin wrote: > > > > On Wed, May 14, 2025 at 10:19:05AM -0400, Michael S. Tsirkin wrote: > > > On Wed, Apr 09, 2025 at 12:06:03PM +0800, Jason Wang wrote: > > > > On Tue, Apr 8, 2025 at 7:37

Re: [PATCH v3 4/6] arm64: dts: qcom: qcs615: Add IMEM and PIL info region

2025-05-16 Thread Konrad Dybcio
On 5/16/25 5:27 AM, Lijuan Gao wrote: > Add a simple-mfd representing IMEM on QCS615 and define the PIL > relocation info region as its child. The PIL region in IMEM is used to > communicate load addresses of remoteproc to post mortem debug tools, so > that these tools can collect ramdumps. > > Si

Re: [PATCH v3 3/6] arm64: dts: qcom: qcs615: Add mproc node for SEMP2P

2025-05-16 Thread Konrad Dybcio
On 5/16/25 5:27 AM, Lijuan Gao wrote: > From: Kyle Deng > > The Shared Memory Point to Point (SMP2P) protocol facilitates > communication of a single 32-bit value between two processors. > Add these two nodes for remoteproc enablement on QCS615 SoC. > > Signed-off-by: Kyle Deng > Signed-off-by:

Re: [PATCH] selftests: Improve test output grammar, code style

2025-05-16 Thread Hanne-Lotta Mäenpää
Hello, On 5/15/25 19:56, Alexandre Belloni wrote: Hello, On 15/05/2025 19:22:49+0300, Hanne-Lotta Mäenpää wrote: Add small grammar fixes in perf events and Real Time Clock tests' output messages. Include braces around a single if statement, when there are multiple statements in the else branc

[PATCH v2] selftests: Improve test output grammar, code style

2025-05-16 Thread Hanne-Lotta Mäenpää
Add small grammar fixes in perf events and Real Time Clock tests' output messages. Include braces around a single if statement, when there are multiple statements in the else branch, to align with the kernel coding style. Signed-off-by: Hanne-Lotta Mäenpää --- Notes: v1 -> v2: Improved word

Re: [PATCH] rcu/nocb: Fix possible invalid rdp's->nocb_cb_kthread pointer access

2025-05-16 Thread Z qiang
> > On 5/9/2025 3:07 PM, Joel Fernandes wrote: > > > > > > On 5/7/2025 7:26 AM, Zqiang wrote: > >> In the preparation stage of CPU online, if the corresponding > >> the rdp's->nocb_cb_kthread does not exist, will be created, > >> there is a situation where the rdp's rcuop kthreads creation fails, >

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-16 Thread David Hildenbrand
On 15.05.25 10:57, Mark Brown wrote: The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The gup_longterm test completely fails to follow this pattern, it runs a single test function repeat