qemu-devel@nongnu.org
[Top] [All Lists]

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

Subject: Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm.
From: Andreas Färber
Date: Sun, 8 Mar 2009 17:35:17 +0100

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.

Andreas



<Prev in Thread] Current Thread [Next in Thread>