kvm: external module: preempt emulation miscompile fix
commitd80a18337a724f0e911c7c280ebad61563a6698a
authorAndrea Arcangeli <andrea@qumranet.com>
Tue, 12 Feb 2008 11:46:16 +0000 (12 12:46 +0100)
committerAvi Kivity <avi@qumranet.com>
Tue, 12 Feb 2008 12:21:29 +0000 (12 14:21 +0200)
tree644d1f8eff7a06695118d8f09d89ec2017aa7bbb
parent683a909dcefc784249b5638c28e090f3e8896676
kvm: external module: preempt emulation miscompile fix

I tracked down the reason of my kernel crashing builds with the latest
kvm-userland package. It has taken a bit of time because with certain
workloads this wouldn't crash. I've been testing stuff with preempt
emulation enabled most of the time to be sure it worked (and to fix
the host breakpoint too). This will fix it by importing the task
struct before we define CONFIG_PREEMPT_NOTIFIERS. preempt.h is most
certainly unnecessary but it's a good rule of thumb to include
anything that uses CONFIG_PREEMPT_NOTIFIERS before defining it.

Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/kernel/external-module-compat.h