Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs

Avi Kivity
2010-11-24T16:10:26Z

On 11/24/2010 05:50 PM, Anthony Liguori wrote:
>>>
>> Any sane modern language gives you that. Why C++?
>
>
> Because I don't think we can implement a reasonable device model using
> a garbage collected language. Garbage collection introduces
> non-determinism and in QEMU we need to ensure that when we're running
> in a VCPU context, we exit back to the guest as quickly as possible.

My answer is that C++ is the only language that allows you to evolve
away from C, with mixed C/C++ source (not just linkage level
compatibility). If there are others, I want to know about them.

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