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
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.
>
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/
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
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
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
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
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
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
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
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
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
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 --
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
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
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
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
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
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
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_
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
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.
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_
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
>
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)
> > +
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
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
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 ++
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
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
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
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 +++
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:
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
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
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/
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
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 +++
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 +++---
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
--
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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;
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
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
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
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
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
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
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
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
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
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:
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
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
>
> 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,
>
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
74 matches
Mail list logo