• F
    kvm: Move guest entry/exit APIs to context_tracking · 521921ba
    Frederic Weisbecker 提交于
    The kvm_host.h header file doesn't handle well
    inclusion when archs don't support KVM.
    
    This results in build crashes for such archs when they
    want to implement context tracking because this subsystem
    includes kvm_host.h in order to implement the
    guest_enter/exit APIs but it doesn't handle KVM off case.
    
    To fix this, move the guest_enter()/guest_exit()
    declarations and generic implementation to the context
    tracking headers. These generic APIs actually belong to
    this subsystem, besides other domains boundary tracking
    like user_enter() et al.
    
    KVM now properly becomes a user of this library, not the
    other buggy way around.
    Reported-by: NKevin Hilman <khilman@linaro.org>
    Reviewed-by: NKevin Hilman <khilman@linaro.org>
    Tested-by: NKevin Hilman <khilman@linaro.org>
    Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Kevin Hilman <khilman@linaro.org>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@kernel.org>
    521921ba
context_tracking.h 2.2 KB