[PATCH] ARM/hw_breakpoint: modify dead code for breakpoint_handler()

2019-10-09 Thread wangxu
From: Wang Xu In perf_event_alloc(), event->overflow_handler is initialized to a non-null value, which makes enable_single_step(bp, addr) in breakpoint_handler() never be executed. As a matter of fact, the branch condition has been updated to is_default_overflow_handler(). Signed-off-by: Wang X

RE: [PATCH] sample/hw_breakpoint: avoid sample hw_breakpoint recursion for arm/arm64

2019-09-26 Thread wangxu (AE)
-Original Message- From: Peter Zijlstra [mailto:pet...@infradead.org] Sent: Thursday, September 26, 2019 5:14 PM To: wangxu (AE) Cc: mi...@redhat.com; a...@kernel.org; mark.rutl...@arm.com; alexander.shish...@linux.intel.com; namhy...@kernel.org; gre...@linuxfoundation.org; t

RE: [PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-23 Thread wangxu (AE)
(iter); -Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Monday, September 23, 2019 4:07 PM To: wangxu (AE) Cc: jasow...@redhat.com; k...@vger.kernel.org; virtualizat...@lists.linux-foundation.org; net...@vger.kernel.org; linux-kernel@vger.kernel.org Subjec

[PATCH] sample/hw_breakpoint: avoid sample hw_breakpoint recursion for arm/arm64

2019-09-23 Thread wangxu
From: Wang Xu For x86/ppc, hw_breakpoint is triggered after the instruction is executed. For arm/arm64, which is triggered before the instruction executed. Arm/arm64 skips the instruction by using single step. But it only supports default overflow_handler. This patch provides a chance to avoid

[PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-23 Thread wangxu
From: Wang Xu Caller of vhost_exceeds_weight(..., total_len) in drivers/vhost/net.c usually pass size_t total_len, which may be affected by rx/tx package. Signed-off-by: Wang Xu --- drivers/vhost/vhost.c | 4 ++-- drivers/vhost/vhost.h | 7 --- 2 files changed, 6 insertions(+), 5 deletions