Re: [PATCH 3/7] Disable instrumentation for some code
From: Liuwenliang (Abbott Liu)
Date: Sat Mar 24 2018 - 07:39:30 EST
On 19/03/2018 16:38, Marc Zyngier wrote:
>You need to extend this at least to arch/arm/kvm/hyp/Makefile, as the
>KASAN shadow region won't be mapped in HYP. See commit a6cdf1c08cbfe for
>more details (all the arm64 comments in this patch apply to 32bit as well).
Thanks for your review.
I will disable the instrumentation of arch/arm/kvm/hyp in the next version.
Just like this:
liuwenliang@linux:/home/soft_disk/yocto/linux-git/linux> git diff
diff --git a/arch/arm/kvm/hyp/Makefile b/arch/arm/kvm/hyp/Makefile
index 63d6b40..0a8b500 100644
--- a/arch/arm/kvm/hyp/Makefile
+++ b/arch/arm/kvm/hyp/Makefile
@@ -24,3 +24,7 @@ obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o
obj-$(CONFIG_KVM_ARM_HOST) += switch.o
CFLAGS_switch.o += $(CFLAGS_ARMV7VE)
obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
+
+GCOV_PROFILE := n
+KASAN_SANITIZE := n
+UBSAN_SANITIZE := n