Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

From: Kevin Hilman
Date: Mon Mar 25 2013 - 17:14:29 EST


Gleb Natapov <gleb@xxxxxxxxxx> writes:

> On Sun, Mar 24, 2013 at 02:44:26PM +0100, Frederic Weisbecker wrote:
>> 2013/3/21 Gleb Natapov <gleb@xxxxxxxxxx>:
>> > Isn't is simpler for kernel/context_tracking.c to define empty
>> > __guest_enter()/__guest_exit() if !CONFIG_KVM.
>>
>> That doesn't look right. Off-cases are usually handled from the
>> headers, right? So that we avoid iffdeffery ugliness in core code.
> Lets put it in linux/context_tracking.h header then.

Here's a version to do that.

Kevin