Re: [PATCH v4 11/11] KVM: selftests: Enable tunning of err_margin_us in arch timer test

2023-12-21 Thread Marc Zyngier
On Thu, 21 Dec 2023 02:58:40 +, Haibo Xu wrote: > > On Wed, Dec 20, 2023 at 9:58 PM Marc Zyngier wrote: > > > > On Wed, 20 Dec 2023 13:51:24 +, > > Haibo Xu wrote: > > > > > > On Wed, Dec 20, 2023 at 5:00 PM Marc Zyngier wrote: > > > > > > > > On 2023-12-20 06:50, Haibo Xu wrote: > > >

[PATCH v2 2/2] kunit: Add example of kunit_activate_static_stub() with pointer-to-function

2023-12-21 Thread Richard Fitzgerald
Adds a variant of example_static_stub_test() that shows use of a pointer-to-function with kunit_activate_static_stub(). A const pointer to the add_one() function is declared. This pointer-to-function is passed to kunit_activate_static_stub() and kunit_deactivate_static_stub() instead of passing ad

[PATCH v2 1/2] kunit: Allow passing function pointer to kunit_activate_static_stub()

2023-12-21 Thread Richard Fitzgerald
Swap the arguments to typecheck_fn() in kunit_activate_static_stub() so that real_fn_addr can be either the function itself or a pointer to that function. This is useful to simplify redirecting static functions in a module. Having to pass the actual function meant that it must be exported from the

Re: [PATCH RESEND v4 0/3] livepatch: Move modules to selftests and add a new test

2023-12-21 Thread Marcos Paulo de Souza
On Wed, 2023-12-20 at 13:53 -0300, Marcos Paulo de Souza wrote: > Changes in v4: > * Documented how to compile the livepatch selftests without running > the >   tests (Joe) > * Removed the mention to lib/livepatch on MAINTAINERS file, reported > by >   checkpatch. > To clarify: this is not a rese

Re: [PATCH net-next v11 02/10] selftests: forwarding: ethtool_mm: fall back to aggregate if device does not report pMAC stats

2023-12-21 Thread Vladimir Oltean
On Tue, Dec 19, 2023 at 12:57:57PM +0200, Roger Quadros wrote: > From: Vladimir Oltean > > Some devices do not support individual 'pmac' and 'emac' stats. > For such devices, resort to 'aggregate' stats. > > Cc: Shuah Khan > Signed-off-by: Vladimir Oltean > Tested-by: Roger Quadros > Signed-o

Re: [PATCH net-next v11 01/10] selftests: forwarding: ethtool_mm: support devices with higher rx-min-frag-size

2023-12-21 Thread Vladimir Oltean
On Tue, Dec 19, 2023 at 12:57:56PM +0200, Roger Quadros wrote: > From: Vladimir Oltean > > Some devices have errata due to which they cannot report ETH_ZLEN (60) > in the rx-min-frag-size. This was foreseen of course, and lldpad has > logic that when we request it to advertise addFragSize 0, it w

[PATCH v7 0/9] Add iommufd nesting (part 2/2)

2023-12-21 Thread Yi Liu
Nested translation is a hardware feature that is supported by many modern IOMMU hardwares. It has two stages (stage-1, stage-2) address translation to get access to the physical address. stage-1 translation table is owned by userspace (e.g. by a guest OS), while stage-2 is owned by kernel. Changes

[PATCH v7 1/9] iommu: Add cache_invalidate_user op

2023-12-21 Thread Yi Liu
From: Lu Baolu The updates of the PTEs in the nested page table will be propagated to the hardware caches on both IOMMU (IOTLB) and devices (DevTLB/ATC). Add a new domain op cache_invalidate_user for the userspace to flush the hardware caches for a nested domain through iommufd. No wrapper for i

[PATCH v7 2/9] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-21 Thread Yi Liu
In nested translation, the stage-1 page table is user-managed but cached by the IOMMU hardware, so an update on present page table entries in the stage-1 page table should be followed with a cache invalidation. Add an IOMMU_HWPT_INVALIDATE ioctl to support such a cache invalidation. It takes hwpt_

[PATCH v7 4/9] iommufd/selftest: Add mock_domain_cache_invalidate_user support

2023-12-21 Thread Yi Liu
From: Nicolin Chen Add mock_domain_cache_invalidate_user() data structure to support user space selftest program to cover user cache invalidation pathway. Signed-off-by: Nicolin Chen Co-developed-by: Yi Liu Signed-off-by: Yi Liu --- drivers/iommu/iommufd/iommufd_test.h | 34 ++ d

[PATCH v7 3/9] iommu: Add iommu_copy_struct_from_user_array helper

2023-12-21 Thread Yi Liu
From: Nicolin Chen Wrap up the data pointer/num sanity and __iommu_copy_struct_from_user call for iommu drivers to copy driver specific data at a specific location in the struct iommu_user_data_array, and iommu_respond_struct_to_user_array() to copy response to a specific location in the struct i

[PATCH v7 5/9] iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op

2023-12-21 Thread Yi Liu
From: Nicolin Chen Allow to test whether IOTLB has been invalidated or not. Signed-off-by: Nicolin Chen Signed-off-by: Yi Liu --- drivers/iommu/iommufd/iommufd_test.h | 5 drivers/iommu/iommufd/selftest.c | 26 +++ tools/testing/selftests/iommu/iomm

[PATCH v7 6/9] iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

2023-12-21 Thread Yi Liu
From: Nicolin Chen Add test cases for the IOMMU_HWPT_INVALIDATE ioctl and verify it by using the new IOMMU_TEST_OP_MD_CHECK_IOTLB. Signed-off-by: Nicolin Chen Co-developed-by: Yi Liu Signed-off-by: Yi Liu --- tools/testing/selftests/iommu/iommufd.c | 166 ++ tools/testi

[PATCH v7 7/9] iommu/vt-d: Allow qi_submit_sync() to return the QI faults

2023-12-21 Thread Yi Liu
From: Lu Baolu This allows qi_submit_sync() to return back faults to callers. Signed-off-by: Lu Baolu Signed-off-by: Yi Liu --- drivers/iommu/intel/dmar.c | 29 ++--- drivers/iommu/intel/iommu.h | 2 +- drivers/iommu/intel/irq_remapping.c | 2 +- dri

[PATCH v7 8/9] iommu/vt-d: Convert pasid based cache invalidation to return QI fault

2023-12-21 Thread Yi Liu
From: Lu Baolu This makes the pasid based cache invalidation to return QI faults to callers. This is needed when usersapce wants to invalidate cache after modifying the stage-1 page table used in nested translation. Signed-off-by: Lu Baolu Signed-off-by: Yi Liu --- drivers/iommu/intel/dmar.c

[PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Yi Liu
From: Lu Baolu This implements the .cache_invalidate_user() callback to support iotlb flush for nested domain. Signed-off-by: Lu Baolu Co-developed-by: Yi Liu Signed-off-by: Yi Liu --- drivers/iommu/intel/nested.c | 116 +++ 1 file changed, 116 insertions(+)

[PATCH net-next 0/3] net: gro: reduce extension header parsing overhead

2023-12-21 Thread Richard Gobert
This series attempts to reduce parsing overhead of IPv6 extension headers in GRO and GSO, by removing extension header specific code and enabling the frag0 fast path. The following changes were made: - Specific unnecessary HBH conditionals were removed by adding HBH offload to inet6_offloads -

[PATCH net-next 1/3] net: gso: add HBH extension header offload support

2023-12-21 Thread Richard Gobert
This commit adds net_offload to IPv6 Hop-by-Hop extension headers (as it is done for routing and dstopts) since it is supported in GSO and GRO. This allows to remove specific HBH conditionals in GSO and GRO when pulling and parsing an incoming packet. Signed-off-by: Richard Gobert --- net/ipv6/e

[PATCH net-next 2/3] net: gro: parse ipv6 ext headers without frag0

2023-12-21 Thread Richard Gobert
This commit utilizes a new helper function, ipv6_gro_pull_exthdrs, which is used in ipv6_gro_receive to pull ipv6 ext headers instead of ipv6_gso_pull_exthdrs. To use ipv6_gso_pull_exthdr, pskb_pull and __skb_push must be used, and frag0 must be invalidated. This commit removes unnecessary code aro

[PATCH net-next 3/3] selftests/net: fix GRO coalesce test and add ext

2023-12-21 Thread Richard Gobert
Currently there is no test which checks that IPv6 extension header packets successfully coalesce. This commit adds a test, which verifies two IPv6 packets with HBH extension headers do coalesce. I changed the receive socket filter to accept a packet with one extension header. This change exposed a

Re: [PATCH 0/6] Add some more cfg80211 and mac80211 kunit tests

2023-12-21 Thread Johannes Berg
> > This patchset adds a couple of helpers for kunit as well as tests for > cfg80211 and mac80211 that use them. I can take this through the wireless tree, but then I'd like to have ACKs from kunit folks for the kunit patches: > kunit: add parameter generation macro using description from arra

Re: [PATCH] kselftest: Add basic test for probing the rust sample modules

2023-12-21 Thread Miguel Ojeda
On Fri, Dec 15, 2023 at 2:21 PM Laura Nao wrote: > > Add new basic kselftest that checks if the available rust sample modules > can be added and removed correctly. > > Signed-off-by: Laura Nao Thanks Laura! Shuah: do you want that we pick this one? If so, your `Acked-by` would be nice -- thanks

Re: [PATCH 0/6] Add some more cfg80211 and mac80211 kunit tests

2023-12-21 Thread Shuah Khan
On 12/21/23 12:39, Johannes Berg wrote: This patchset adds a couple of helpers for kunit as well as tests for cfg80211 and mac80211 that use them. I can take this through the wireless tree, but then I'd like to have ACKs from kunit folks for the kunit patches: We have run into conflicts in

Re: [PATCH RESEND v4 0/3] livepatch: Move modules to selftests and add a new test

2023-12-21 Thread Shuah Khan
On 12/21/23 05:17, Marcos Paulo de Souza wrote: On Wed, 2023-12-20 at 13:53 -0300, Marcos Paulo de Souza wrote: Changes in v4: * Documented how to compile the livepatch selftests without running the   tests (Joe) * Removed the mention to lib/livepatch on MAINTAINERS file, reported by   checkpa

[PATCH] selftests: uevent: use shared makefile library

2023-12-21 Thread Antonio Terceiro
This makes the uevent selftests build not write to the source tree unconditionally, as that breaks out of tree builds when the source tree is read-only. It also avoids leaving a git repository in a dirty state after a build. Signed-off-by: Antonio Terceiro --- tools/testing/selftests/uevent/Make

Re: [PATCH 0/6] Add some more cfg80211 and mac80211 kunit tests

2023-12-21 Thread Johannes Berg
On Thu, 2023-12-21 at 13:06 -0700, Shuah Khan wrote: > On 12/21/23 12:39, Johannes Berg wrote: > > > > > > This patchset adds a couple of helpers for kunit as well as tests for > > > cfg80211 and mac80211 that use them. > > > > I can take this through the wireless tree, but then I'd like to have

[PATCH v2] selftests: uevent: use shared makefile library

2023-12-21 Thread Antonio Terceiro
This makes the uevent selftests build not write to the source tree unconditionally, as that breaks out of tree builds when the source tree is read-only. It also avoids leaving a git repository in a dirty state after a build. v2: drop spurious extra SPDX-License-Identifier Signed-off-by: Antonio T

Re: [PATCH v2] selftests: uevent: use shared makefile library

2023-12-21 Thread Shuah Khan
On 12/21/23 13:49, Antonio Terceiro wrote: This makes the uevent selftests build not write to the source tree unconditionally, as that breaks out of tree builds when the source tree is read-only. It also avoids leaving a git repository in a dirty state after a build. Why can't you do that usin

Re: [PATCH 0/6] Add some more cfg80211 and mac80211 kunit tests

2023-12-21 Thread Shuah Khan
On 12/21/23 13:40, Johannes Berg wrote: On Thu, 2023-12-21 at 13:06 -0700, Shuah Khan wrote: On 12/21/23 12:39, Johannes Berg wrote: This patchset adds a couple of helpers for kunit as well as tests for cfg80211 and mac80211 that use them. I can take this through the wireless tree, but then

[PATCH] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
From: "Steven Rostedt (Google)" As there were bugs found with the ownership of eventfs dynamic file creation. Add a test to test it. It will remount tracefs with a different gid and check the ownership of the eventfs directory, as well as the system and event directories. It will also check the

Re: [PATCH] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
On Thu, 21 Dec 2023 19:35:51 -0500 Steven Rostedt wrote: > + > +# find another owner and group that is not the original > +other_group=`tac /etc/group | grep -v ":$original_group:" | head -1 | cut > -d: -f3` > +other_owner=`tac /etc/passwd | grep -v ":$original_group:" | head -1 | cut > -d: -f3

[PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
From: "Steven Rostedt (Google)" As there were bugs found with the ownership of eventfs dynamic file creation. Add a test to test it. It will remount tracefs with a different gid and check the ownership of the eventfs directory, as well as the system and event directories. It will also check the

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
Hi Steve, On Thu, 21 Dec 2023 19:45:16 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > As there were bugs found with the ownership of eventfs dynamic file > creation. Add a test to test it. > > It will remount tracefs with a different gid and check the ownership of > the eve

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
On Fri, 22 Dec 2023 10:21:48 +0900 Masami Hiramatsu (Google) wrote: > The testcase itself is OK but is there any way to identify the system > supports eventfs or not? I ran this test on v6.5.13 for checking then > it failed. We may need to skip (unsupported) this test for such case. Hmm, honestl

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
On Thu, 21 Dec 2023 20:28:13 -0500 Steven Rostedt wrote: > On Fri, 22 Dec 2023 10:21:48 +0900 > Masami Hiramatsu (Google) wrote: > > > The testcase itself is OK but is there any way to identify the system > > supports eventfs or not? I ran this test on v6.5.13 for checking then > > it failed. W

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
On Thu, 21 Dec 2023 20:28:13 -0500 Steven Rostedt wrote: > On Fri, 22 Dec 2023 10:21:48 +0900 > Masami Hiramatsu (Google) wrote: > > > The testcase itself is OK but is there any way to identify the system > > supports eventfs or not? I ran this test on v6.5.13 for checking then > > it failed. W

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
On Fri, 22 Dec 2023 10:48:41 +0900 Masami Hiramatsu (Google) wrote: > On Thu, 21 Dec 2023 20:28:13 -0500 > Steven Rostedt wrote: > > > On Fri, 22 Dec 2023 10:21:48 +0900 > > Masami Hiramatsu (Google) wrote: > > > > > The testcase itself is OK but is there any way to identify the system > > >

[PATCH net-next 0/2] selftest/net: Some more TCP-AO selftest post-merge fixups

2023-12-21 Thread Dmitry Safonov
Note that there's another post-merge fix for TCP-AO selftests, but that doesn't conflict with these, so I don't resend that: https://lore.kernel.org/all/20231219-b4-tcp-ao-selftests-out-of-tree-v1-1-0fff92d26...@arista.com/T/#u Signed-off-by: Dmitry Safonov --- Dmitry Safonov (2): selftest

[PATCH net-next 1/2] selftest/tcp-ao: Set routes in a proper VRF table id

2023-12-21 Thread Dmitry Safonov
In unsigned-md5 selftests ip_route_add() is not needed in client_add_ip(): the route was pre-setup in __test_init() => link_init() for subnet, rather than a specific ip-address. Currently, __ip_route_add() mistakenly always sets VRF table to RT_TABLE_MAIN - this seems to have sneaked in during uns

[PATCH net-next 2/2] selftest/tcp-ao: Work on namespace-ified sysctl_optmem_max

2023-12-21 Thread Dmitry Safonov
Since commit f5769faeec36 ("net: Namespace-ify sysctl_optmem_max") optmem_max is per-netns, so need of switching to root namespace. It seems trivial to keep the old logic working, so going to keep it for a while (at least, until kernel with netns-optmem_max will be release). Currently, there is a

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
On Fri, 22 Dec 2023 10:52:00 +0900 Masami Hiramatsu (Google) wrote: > > +instance="foo-$(mktemp -u X)" > > > > This doesn't work. it needs XX (6 times X). And this is > > somewhat wrong usage of mktemp because it can not check there is > > foo-. > > What about change it as > > > > insta

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
On Fri, 22 Dec 2023 10:52:00 +0900 Masami Hiramatsu (Google) wrote: > On Fri, 22 Dec 2023 10:48:41 +0900 > Masami Hiramatsu (Google) wrote: > And I confirmed that this test passed on v6.5.13 with that change. > I just ran it on 6.5.13 and it took *forever*! But I do have a bit of debug, and

[PATCH v3] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
From: "Steven Rostedt (Google)" As there were bugs found with the ownership of eventfs dynamic file creation. Add a test to test it. It will remount tracefs with a different gid and check the ownership of the eventfs directory, as well as the system and event directories. It will also check the

Re: [PATCH v3] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Steven Rostedt
Shuah, This patch has no dependencies. You can take it through your tree for the next merge window if you want. If not, I can take it. Thanks, -- Steve On Thu, 21 Dec 2023 21:12:29 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > As there were bugs found with the ownersh

RE: [PATCH v7 1/9] iommu: Add cache_invalidate_user op

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > From: Lu Baolu > > The updates of the PTEs in the nested page table will be propagated to the > hardware caches on both IOMMU (IOTLB) and devices (DevTLB/ATC). this is incorrect. the scope of this cmd is driver specific. > >

Re: [PATCH v3] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
On Thu, 21 Dec 2023 21:12:29 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > As there were bugs found with the ownership of eventfs dynamic file > creation. Add a test to test it. > > It will remount tracefs with a different gid and check the ownership of > the eventfs direct

RE: [PATCH v7 2/9] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > + > +int iommufd_hwpt_invalidate(struct iommufd_ucmd *ucmd) > +{ > + struct iommu_hwpt_invalidate *cmd = ucmd->cmd; > + struct iommu_user_data_array data_array = { > + .type = cmd->req_type, > + .uptr

RE: [PATCH v7 3/9] iommu: Add iommu_copy_struct_from_user_array helper

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > From: Nicolin Chen > > Wrap up the data pointer/num sanity and __iommu_copy_struct_from_user > call for iommu drivers to copy driver specific data at a specific location > in the struct iommu_user_data_array, and > iommu_respond

RE: [PATCH v7 4/9] iommufd/selftest: Add mock_domain_cache_invalidate_user support

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > + > + > + if ((inv.flags & IOMMU_TEST_INVALIDATE_FLAG_ALL) && > + (inv.flags & > IOMMU_TEST_INVALIDATE_FLAG_TRIGGER_ERROR)) { > + rc = -EINVAL; > + break; > +

Re: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Yang, Weijiang
On 12/21/2023 11:39 PM, Yi Liu wrote: From: Lu Baolu This implements the .cache_invalidate_user() callback to support iotlb flush for nested domain. Signed-off-by: Lu Baolu Co-developed-by: Yi Liu Signed-off-by: Yi Liu --- drivers/iommu/intel/nested.c | 116 +++

RE: [PATCH v7 5/9] iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > From: Nicolin Chen > > Allow to test whether IOTLB has been invalidated or not. > > Signed-off-by: Nicolin Chen > Signed-off-by: Yi Liu Reviewed-by: Kevin Tian

RE: [PATCH v7 6/9] iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > From: Nicolin Chen > > Add test cases for the IOMMU_HWPT_INVALIDATE ioctl and verify it by using > the new IOMMU_TEST_OP_MD_CHECK_IOTLB. > > Signed-off-by: Nicolin Chen > Co-developed-by: Yi Liu > Signed-off-by: Yi Liu over

Re: [PATCH v2] tracing/selftests: Add ownership modification tests for eventfs

2023-12-21 Thread Google
On Thu, 21 Dec 2023 21:07:57 -0500 Steven Rostedt wrote: > On Fri, 22 Dec 2023 10:52:00 +0900 > Masami Hiramatsu (Google) wrote: > > > On Fri, 22 Dec 2023 10:48:41 +0900 > > Masami Hiramatsu (Google) wrote: > > > And I confirmed that this test passed on v6.5.13 with that change. > > > > I j

RE: [PATCH v7 7/9] iommu/vt-d: Allow qi_submit_sync() to return the QI faults

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > + fault &= DMA_FSTS_IQE | DMA_FSTS_ITE | DMA_FSTS_ICE; > + if (fault) { > + if (fsts) > + *fsts |= fault; do we expect the fault to be accumulated? otherwise it's clearer to just do direct a

RE: [PATCH v7 8/9] iommu/vt-d: Convert pasid based cache invalidation to return QI fault

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > From: Lu Baolu > > This makes the pasid based cache invalidation to return QI faults to callers. it's not just for pasid cache invalidation, e.g. there is also change on qi_flush_dev_iotlb(). > This is needed when usersapce wa

RE: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Tian, Kevin
> From: Yang, Weijiang > Sent: Friday, December 22, 2023 11:56 AM > > + > > + xa_for_each(&domain->iommu_array, i, info) { > > + nested_flush_pasid_iotlb(info->iommu, domain, addr, > npages, 0); > > + > > + if (domain->has_iotlb_device) > > + continue; > >

Re: [PATCH net-next 0/2] selftest/net: Some more TCP-AO selftest post-merge fixups

2023-12-21 Thread Hangbin Liu
On Fri, Dec 22, 2023 at 01:59:05AM +, Dmitry Safonov wrote: > Note that there's another post-merge fix for TCP-AO selftests, but that > doesn't conflict with these, so I don't resend that: > > https://lore.kernel.org/all/20231219-b4-tcp-ao-selftests-out-of-tree-v1-1-0fff92d26...@arista.com/T/#

RE: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Thursday, December 21, 2023 11:40 PM > > + > +static void intel_nested_flush_cache(struct dmar_domain *domain, u64 > addr, > + unsigned long npages, u32 *error) > +{ > + struct iommu_domain_info *info; > + unsigned long i; > +

Re: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Liu, Yi L
> On Dec 22, 2023, at 11:56, Yang, Weijiang wrote: > > On 12/21/2023 11:39 PM, Yi Liu wrote: >> From: Lu Baolu >> >> This implements the .cache_invalidate_user() callback to support iotlb >> flush for nested domain. >> >> Signed-off-by: Lu Baolu >> Co-developed-by: Yi Liu >> Signed-off-by:

Re: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Liu, Yi L
> On Dec 22, 2023, at 14:47, Tian, Kevin wrote: > >  >> >> From: Yang, Weijiang >> Sent: Friday, December 22, 2023 11:56 AM >>> + >>> +xa_for_each(&domain->iommu_array, i, info) { >>> +nested_flush_pasid_iotlb(info->iommu, domain, addr, >> npages, 0); >>> + >>> +if (domain

RE: [PATCH v7 9/9] iommu/vt-d: Add iotlb flush for nested domain

2023-12-21 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Friday, December 22, 2023 3:02 PM > > > > On Dec 22, 2023, at 14:47, Tian, Kevin wrote: > > > > > >> > >> From: Yang, Weijiang > >> Sent: Friday, December 22, 2023 11:56 AM > >>> + > >>> +xa_for_each(&domain->iommu_array, i, info) { > >>> +nested_flush_pa