Glauber Costa wrote:
On Thu, Oct 02, 2008 at 04:43:06PM +0300, Avi Kivity wrote:
Glauber Costa wrote:
- kvm_save_registers(mon_cpu);
+ if (kvm_enabled())
+ kvm_save_registers(mon_cpu);
If I'm not mistaken, this relies on the optimizer to remove the call to
kvm_save_registers(). Compilation with -O0 will break.
I think a better solution is to have kvm_save_registers() contain the
kvm_enabled() check, and also be defined to an empty function if kvm is
disabled at compile time.
ok master. Will redo.
I applied it already (since it fixes an issue), so base it on
kvm-userspace.git (once I push).
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html