Thread (42 messages) 42 messages, 9 authors, 2015-08-31

[PATCH 07/13] arm64: KVM: VHE: Patch out use of HVC

From: Marc Zyngier <hidden>
Date: 2015-07-08 17:54:57
Also in: kvm, kvmarm, lkml

On 08/07/15 18:14, Paolo Bonzini wrote:

On 08/07/2015 18:19, Marc Zyngier wrote:
quoted
+/* Hack to allow stringification of macros... */
+#define __S__(a,args...)	__stringify(a, ##args)
+#define _S_(a,args...)		__S__(a, args)
+
+.macro ifnvhe nonvhe vhe
+	alternative_insn	"\nonvhe", "\vhe", ARM64_HAS_VIRT_HOST_EXTN
+.endm
Why not use this in patch 6 too?
I tried, and ended up in #include hell. vhe-macros.h is local to
arch/arm64/kvm, and including it from asm/kvm_mmu.h breaks (we include
it from arch/arm/kvm/ and virt/kvm/arm/).

Alternatively, I could move it to arch/arm64/include/asm (renamed to
kvm_vhe_macros.h?), which would solve this issue. I just gave it a go,
and that seems sensible enough.

Thanks for the suggestion!

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help