[PATCH] contrib/plugins: add mask plugin

2022-01-24 Thread Oleg Vasilev
From: Oleg Vasilev Plugin can be used to track statistics based on virtual address mask matching. Useful for tracking kernel vs user translation blocks. Signed-off-by: Oleg Vasilev Signed-off-by: Oleg Vasilev --- contrib/plugins/Makefile | 1 + contrib/plugins/mask.c | 144

[RFC PATCH 2/2] accel/tcg: replace phys_pc with asid in TB htable key

2021-12-22 Thread Oleg Vasilev
From: Oleg Vasilev Using a physical pc requires to translate address every time next block needs to be found and executed. This also contaminates TLB with code-related records. Instead, I suggest we introduce an architecture-specific address space identifier, and use it to distinguish between

[RFC PATCH 1/2] target/arm: move regime_ttbr helper

2021-12-22 Thread Oleg Vasilev
From: Oleg Vasilev Now it is available for other files to use. CC: qemu-...@nongnu.org Signed-off-by: Oleg Vasilev Signed-off-by: Oleg Vasilev --- target/arm/helper.c| 17 - target/arm/internals.h | 17 + 2 files changed, 17 insertions(+), 17 deletions

[RFC PATCH 0/2] accel/tcg: replace phys_pc with asid in TB htable key

2021-12-22 Thread Oleg Vasilev
See last patch in series. Oleg Vasilev (2): target/arm: move regime_ttbr helper accel/tcg: replace phys_pc with asid in TB htable key accel/tcg/cpu-exec.c | 38 accel/tcg/tb-hash.h | 4 ++-- accel/tcg/translate-all.c| 7