|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] Main loop |
Date: | Mon, 28 Sep 2009 14:35:24 -0500 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090825) |
malc wrote:
Now that we have talked i see the problem and it basically boils down to this: kvm can(and does) run multiple vcpus in multiple threads, qemu always uses one, on top of this you are mainly interested in KVM and i'm _only_ interested in TCG.
The multiple vcpus in multiple threads model is the right one for TCG too. Both Paul and Fabrice have expressed interest in this in the past. For certain architecture combinations, it may not be that bad to implement either.
OTOH, if most of the heavy lifting (like IO dispatch) can be refactored to shared functions, two main loops may not be so bad.The way i see it the best approach would be to factor out main loop into separate file and let QEMU and KVM go their own separate ways w.r.t. this new entity.
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |