diff mbox series

[3/4] kvm/arm64: simplify CC instrumentation opt-out

Message ID 20171016132440.38098-4-mark.rutland@arm.com
State New
Headers show
Series Cleanup instrumentation avoidance | expand

Commit Message

Mark Rutland Oct. 16, 2017, 1:24 p.m. UTC
Now that we can opt out of all instrumentation with a single option,
make use of this in the KVM hyp code. Hopefully, this will also avoid
fragility as new options are introduced.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <mark.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
---
 arch/arm64/kvm/hyp/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

-- 
2.11.0

Comments

Christoffer Dall Oct. 17, 2017, 2:50 p.m. UTC | #1
On Mon, Oct 16, 2017 at 02:24:39PM +0100, Mark Rutland wrote:
> Now that we can opt out of all instrumentation with a single option,

> make use of this in the KVM hyp code. Hopefully, this will also avoid

> fragility as new options are introduced.

> 

> Signed-off-by: Mark Rutland <mark.rutland@arm.com>

> Cc: Catalin Marinas <catalin.marinas@arm.com>

> Cc: Christoffer Dall <christoffer.dall@linaro.org>

> Cc: Marc Zyngier <mark.zyngier@arm.com>

> Cc: Will Deacon <will.deacon@arm.com>


Acked-by: Christoffer Dall <christoffer.dall@linaro.org>


> ---

>  arch/arm64/kvm/hyp/Makefile | 5 +----

>  1 file changed, 1 insertion(+), 4 deletions(-)

> 

> diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile

> index 14c4e3b14bcb..a8a212eb66f1 100644

> --- a/arch/arm64/kvm/hyp/Makefile

> +++ b/arch/arm64/kvm/hyp/Makefile

> @@ -22,7 +22,4 @@ obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o

>  # KVM code is run at a different exception code with a different map, so

>  # compiler instrumentation that inserts callbacks or checks into the code may

>  # cause crashes. Just disable it.

> -GCOV_PROFILE	:= n

> -KASAN_SANITIZE	:= n

> -UBSAN_SANITIZE	:= n

> -KCOV_INSTRUMENT	:= n

> +CC_INSTRUMENT	:= n

> -- 

> 2.11.0

>
diff mbox series

Patch

diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile
index 14c4e3b14bcb..a8a212eb66f1 100644
--- a/arch/arm64/kvm/hyp/Makefile
+++ b/arch/arm64/kvm/hyp/Makefile
@@ -22,7 +22,4 @@  obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
 # KVM code is run at a different exception code with a different map, so
 # compiler instrumentation that inserts callbacks or checks into the code may
 # cause crashes. Just disable it.
-GCOV_PROFILE	:= n
-KASAN_SANITIZE	:= n
-UBSAN_SANITIZE	:= n
-KCOV_INSTRUMENT	:= n
+CC_INSTRUMENT	:= n