x86: kvmclock: Do not setup kvmclock vsyscall in the absence of that clock
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 23 Feb 2013 16:05:29 +0000 (17:05 +0100)
committerGleb Natapov <gleb@redhat.com>
Wed, 27 Feb 2013 11:19:18 +0000 (13:19 +0200)
commitfe1140cc369410a9c206fdb7aaabc644bd213dc2
tree183135861fb402b7aa655be43fb1da080041681c
parentbd31a7f55777a46063ebe3d50e6536cfff51a757
x86: kvmclock: Do not setup kvmclock vsyscall in the absence of that clock

This fixes boot lockups with "no-kvmclock", when the host is not
exposing this particular feature (QEMU: -cpu ...,-kvmclock) or when
the kvmclock initialization failed for whatever reason.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kernel/kvmclock.c