Re: [PATCH 1/4] KVM: delete .change_pte MMU notifier callback

2024-04-06 Thread Anup Patel
On Fri, Apr 5, 2024 at 5:28 PM Paolo Bonzini wrote: > > The .change_pte() MMU notifier callback was intended as an > optimization. The original point of it was that KSM could tell KVM to flip > its secondary PTE to a new location without having to first zap it. At > the time there was also an .inv

[PATCH] kprobes: Fix possible warn in __arm_kprobe_ftrace()

2024-04-06 Thread Zheng Yejian
There is once warn in __arm_kprobe_ftrace() on: ret = ftrace_set_filter_ip(ops, (unsigned long)p->addr, 0, 0); if (WARN_ONCE(..., "Failed to arm kprobe-ftrace at %pS (error %d)\n", ...) return ret; This warning is due to 'p->addr' is not a valid ftrace_location and that invalid 'p->addr' was

Re: [PATCH v3] vhost/vdpa: Add MSI translation tables to iommu for software-managed MSI

2024-04-06 Thread Jason Wang
On Fri, Mar 29, 2024 at 6:42 PM Michael S. Tsirkin wrote: > > On Fri, Mar 29, 2024 at 06:39:33PM +0800, Jason Wang wrote: > > On Fri, Mar 29, 2024 at 5:13 PM Michael S. Tsirkin wrote: > > > > > > On Wed, Mar 27, 2024 at 05:08:57PM +0800, Jason Wang wrote: > > > > On Thu, Mar 21, 2024 at 3:00 PM M

Re: [PATCH] vhost-vdpa: change ioctl # for VDPA_GET_VRING_SIZE

2024-04-06 Thread Jason Wang
On Wed, Apr 3, 2024 at 5:21 AM Michael S. Tsirkin wrote: > > VDPA_GET_VRING_SIZE by mistake uses the already occupied > ioctl # 0x80 and we never noticed - it happens to work > because the direction and size are different, but confuses > tools such as perf which like to look at just the number, >

Re: [PATCHv2 1/3] uprobe: Add uretprobe syscall to speed up return probe

2024-04-06 Thread Oleg Nesterov
On 04/06, Masami Hiramatsu wrote: > > On Fri, 5 Apr 2024 13:02:30 +0200 > Oleg Nesterov wrote: > > > With or without this patch userpace can also do > > > > foo() { <-- retprobe1 > > bar() { > > jump to xol_area > > } > > } > > > > handle_trampol

Re: [PATCH] Documentation: ABI: document in_temp_input file

2024-04-06 Thread Luca Weiss
gt; > +What: /sys/bus/iio/devices/iio:deviceX/in_temp_input > > KernelVersion: 2.6.38 > > Contact: linux-...@vger.kernel.org > > Description: > > > > --- > > base-commit: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc > > change-id: 20240406-in_temp_input-4505d7fafff8 > > > > Best regards, > >

[PATCH v20 4/5] Documentation: tracing: Add ring-buffer mapping

2024-04-06 Thread Vincent Donnefort
It is now possible to mmap() a ring-buffer to stream its content. Add some documentation and a code example. Signed-off-by: Vincent Donnefort diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst index 5092d6c13af5..0b300901fd75 100644 --- a/Documentation/trace/index.rst +++

[PATCH v20 3/5] tracing: Allow user-space mapping of the ring-buffer

2024-04-06 Thread Vincent Donnefort
Currently, user-space extracts data from the ring-buffer via splice, which is handy for storage or network sharing. However, due to splice limitations, it is imposible to do real-time analysis without a copy. A solution for that problem is to let the user-space map the ring-buffer directly. The m

[PATCH v20 2/5] ring-buffer: Introducing ring-buffer mapping functions

2024-04-06 Thread Vincent Donnefort
In preparation for allowing the user-space to map a ring-buffer, add a set of mapping functions: ring_buffer_{map,unmap}() And controls on the ring-buffer: ring_buffer_map_get_reader() /* swap reader and head */ Mapping the ring-buffer also involves: A unique ID for each subbuf of the r

[PATCH v20 1/5] ring-buffer: allocate sub-buffers with __GFP_COMP

2024-04-06 Thread Vincent Donnefort
In preparation for the ring-buffer memory mapping, allocate compound pages for the ring-buffer sub-buffers to enable us to map them to user-space with vm_insert_pages(). Signed-off-by: Vincent Donnefort diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 25476ead681b..cc9e

[PATCH v20 0/5] Introducing trace buffer mapping by user-space

2024-04-06 Thread Vincent Donnefort
The tracing ring-buffers can be stored on disk or sent to network without any copy via splice. However the later doesn't allow real time processing of the traces. A solution is to give userspace direct access to the ring-buffer pages via a mapping. An application can now become a consumer of the ri

Re: [PATCH] Documentation: ABI: document in_temp_input file

2024-04-06 Thread Jonathan Cameron
nelVersion: 2.6.38 > Contact: linux-...@vger.kernel.org > Description: > > --- > base-commit: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc > change-id: 20240406-in_temp_input-4505d7fafff8 > > Best regards,

Re: [PATCH] ARM: dts: qcom: msm8974-sony-shinano: Enable vibrator

2024-04-06 Thread Dmitry Baryshkov
On Sat, 6 Apr 2024 at 18:36, Luca Weiss wrote: > > Enable the vibrator connected to PM8941 found on the Sony shinano > platform. > > Signed-off-by: Luca Weiss > --- > .../arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi | 4 > > 1 file changed, 4 insertions(+) Reviewed-b

[PATCH] ARM: dts: qcom: msm8974-sony-shinano: Enable vibrator

2024-04-06 Thread Luca Weiss
@@ led@7 { }; }; +&pm8941_vib { + status = "okay"; +}; + &remoteproc_adsp { cx-supply = <&pm8841_s2>; status = "okay"; --- base-commit: 956abeb75f90eac3d5ba1f4cff7c048f7c079502 change-id: 20240406-shinano-vib-80e27e9bab2c Best regards, -- Luca Weiss

[PATCH] Documentation: ABI: document in_temp_input file

2024-04-06 Thread Luca Weiss
-...@vger.kernel.org Description: --- base-commit: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc change-id: 20240406-in_temp_input-4505d7fafff8 Best regards, -- Luca Weiss

Re: [PATCH] livepatch: Add KLP_IDLE state

2024-04-06 Thread zhang warden
Hi Joe and Petr : > On Apr 5, 2024, at 01:50, Joe Lawrence wrote: > > On 4/4/24 11:17, Petr Mladek wrote: >> On Tue 2024-04-02 09:52:31, Joe Lawrence wrote: >>> On Tue, Apr 02, 2024 at 11:09:54AM +0800, zhangwar...@gmail.com wrote: From: Wardenjohn In livepatch, using KLP_UNDEF