From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeDz5-0006i9-8x for qemu-devel@nongnu.org; Fri, 12 Sep 2008 15:07:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeDz4-0006hR-MQ for qemu-devel@nongnu.org; Fri, 12 Sep 2008 15:07:10 -0400 Received: from [199.232.76.173] (port=48198 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeDz4-0006h9-IU for qemu-devel@nongnu.org; Fri, 12 Sep 2008 15:07:10 -0400 Received: from yx-out-1718.google.com ([74.125.44.156]:11853) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KeDz4-00049U-N6 for qemu-devel@nongnu.org; Fri, 12 Sep 2008 15:07:10 -0400 Received: by yx-out-1718.google.com with SMTP id 3so371048yxi.82 for ; Fri, 12 Sep 2008 12:07:08 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 22:07:07 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] [PATCH/RFC] provide --accel option In-Reply-To: <1221245233-26152-1-git-send-email-glommer@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1221245233-26152-1-git-send-email-glommer@redhat.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 9/12/08, Glauber Costa wrote: > The --accel option will provide us the ability of defining which > accelerator to pick at run time. It has the advantage of not using > the not-well-accepted constructor directives, and also, of stabilishing > a way to define priorities among accelerators. > > The ones registered first, are tried first. > + case QEMU_OPTION_accel: > + { > + int i; > + for (i = 0; i < sizeof(available_accels)/sizeof(void *); i++) { ARRAY_SIZE(available_accels)? > + if (!strcasecmp(optarg, available_accels[i]->name)) > + register_qemu_accel(available_accels[i]); > + } > + } > + break;