qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm.


From: Avi Kivity
Subject: Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm.
Date: Mon, 09 Mar 2009 11:42:48 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Andreas Färber wrote:

Am 08.03.2009 um 17:10 schrieb Anthony Liguori:

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]. [...]

I really don't have a great suggestion. I've been hoping we could come up with something better than if (kvm_enabled()) foo(). If we can't, we can't.

What about this pattern:

#define KVM(x) if (kvm_enabled()) { x; }
KVM(foo());

That would make it shorter to type and allows to #define KVM(x) for the no-KVM case.


Need to work out what to do if the function returns a value.

--
error compiling committee.c: too many arguments to function





reply via email to

[Prev in Thread] Current Thread [Next in Thread]