| 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 allthe "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> |
|---|---|---|
| ||
| Previous by Date: | Re: [Qemu-devel] ANNOUNCE: Release 0.10.0 of QEMU, Stuart Brady |
|---|---|
| Next by Date: | Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm., Blue Swirl |
| Previous by Thread: | [Qemu-devel] Re: [6684] Fix "info registers" under kvm., Gerd Hoffmann |
| Next by Thread: | Re: [Qemu-devel] Re: [6684] Fix "info registers" under kvm., Avi Kivity |
| Indexes: | [Date] [Thread] [Top] [All Lists] |