linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arm64 kvm built with clang doesn't boot
@ 2018-03-16 13:49 Andrey Konovalov
  2018-03-16 14:13 ` Mark Rutland
  2018-03-16 14:13 ` Marc Zyngier
  0 siblings, 2 replies; 14+ messages in thread
From: Andrey Konovalov @ 2018-03-16 13:49 UTC (permalink / raw)
  To: Nick Desaulniers, Stephen Hines, Greg Hackmann, Christoffer Dall,
	Marc Zyngier, Catalin Marinas, Will Deacon, Linux ARM, kvmarm,
	LKML, Mark Rutland
  Cc: kernel-dynamic-tools

Hi!

I've recently tried to boot clang built kernel on real hardware
(Odroid C2 board) instead of using a VM. The issue that I stumbled
upon is that arm64 kvm built with clang doesn't boot.

Adding -fno-jump-tables compiler flag to arch/arm64/kvm/* helps. There
was a patch some time ago that did exactly that
(https://patchwork.kernel.org/patch/10060381/), but it wasn't accepted
AFAICT (see the discussion on that thread).

What would be the best way to get this fixed?

I've also had to disable CONFIG_JUMP_LABEL to get the kernel boot
(even without kvm enabled), but that might be a different (though
related) issue.

Thanks!

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-04-12 17:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16 13:49 arm64 kvm built with clang doesn't boot Andrey Konovalov
2018-03-16 14:13 ` Mark Rutland
2018-03-16 14:31   ` Mark Rutland
2018-03-16 14:55     ` Andrey Konovalov
2018-04-12 17:35     ` Andrey Konovalov
2018-03-16 14:50   ` Andrey Konovalov
2018-03-16 14:13 ` Marc Zyngier
2018-03-16 14:53   ` Andrey Konovalov
2018-03-16 15:00     ` Marc Zyngier
2018-03-16 16:52       ` Nick Desaulniers
2018-03-16 17:13         ` Mark Rutland
2018-03-17 10:19           ` Ard Biesheuvel
2018-03-16 17:18         ` Marc Zyngier
2018-03-19 17:42           ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).