|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm. |
Date: | Sun, 08 Mar 2009 18:23:17 +0200 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090105) |
Avi Kivity wrote:
Jan Kiszka wrote:I'm just still waiting for a reply from Anthony on how to embed best all the "if (kvm_enabled()) foo();" patterns [2]. That would also allow us to merge gdbstub support for upstream kvm.Wouldn't 'if (!kvm_enabled()) return;' inside the callees suffice?
Rather, static inline void kvm_foo(...) { if (!kvm_enabled()) { return; } #ifdef CONFIG_KVM kvm_do_foo(); #endif } -- error compiling committee.c: too many arguments to function
[Prev in Thread] | Current Thread | [Next in Thread] |