From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJQ9M-0001pI-ML for qemu-devel@nongnu.org; Wed, 03 Oct 2012 10:42:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJQ9G-0002C0-Nx for qemu-devel@nongnu.org; Wed, 03 Oct 2012 10:42:12 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:38680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJQ9G-0002Bu-HR for qemu-devel@nongnu.org; Wed, 03 Oct 2012 10:42:06 -0400 Received: from /spool/local by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 3 Oct 2012 08:42:05 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 6C23119D803F for ; Wed, 3 Oct 2012 08:42:03 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q93EfvWI154016 for ; Wed, 3 Oct 2012 08:42:00 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q93EfWNs001205 for ; Wed, 3 Oct 2012 08:41:32 -0600 From: Anthony Liguori In-Reply-To: <20121003105509.528026359@amt.cnet> References: <20121003105255.972669952@amt.cnet> <20121003105509.528026359@amt.cnet> Date: Wed, 03 Oct 2012 09:41:10 -0500 Message-ID: <877gr7hb3t.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [patch 4/6] Use global properties to emulate -no-kvm-pit-reinjection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti , qemu-devel@nongnu.org, Gerd Hoffmann Cc: kvm@vger.kernel.org Marcelo Tosatti writes: > Commit 80019541e9c13fab476bee35edcef3e11646222c from qemu-kvm.git. > > From: Jan Kiszka > > Use global properties to emulate -no-kvm-pit-reinjection > > Signed-off-by: Marcelo Tosatti Reviewed-by: Anthony Liguori Regards, Anthony Liguori > > Index: qemu-compat-kvm/vl.c > =================================================================== > --- qemu-compat-kvm.orig/vl.c > +++ qemu-compat-kvm/vl.c > @@ -3071,6 +3071,21 @@ int main(int argc, char **argv, char **e > "separately.\n"); > break; > } > + case QEMU_OPTION_no_kvm_pit_reinjection: { > + static GlobalProperty kvm_pit_lost_tick_policy[] = { > + { > + .driver = "kvm-pit", > + .property = "lost_tick_policy", > + .value = "discard", > + }, > + { /* end of list */ } > + }; > + > + fprintf(stderr, "Warning: option deprecated, use " > + "lost_tick_policy property of kvm-pit instead.\n"); > + qdev_prop_register_global_list(kvm_pit_lost_tick_policy); > + break; > + } > case QEMU_OPTION_usb: > usb_enabled = 1; > break; > Index: qemu-compat-kvm/qemu-options.hx > =================================================================== > --- qemu-compat-kvm.orig/qemu-options.hx > +++ qemu-compat-kvm/qemu-options.hx > @@ -2844,7 +2844,10 @@ DEF("no-kvm-irqchip", 0, QEMU_OPTION_no_ > DEF("no-kvm-pit", 0, QEMU_OPTION_no_kvm_pit, > "-no-kvm-pit disable KVM kernel mode PIT\n", > QEMU_ARCH_I386) > - > +DEF("no-kvm-pit-reinjection", 0, QEMU_OPTION_no_kvm_pit_reinjection, > + "-no-kvm-pit-reinjection\n" > + " disable KVM kernel mode PIT interrupt reinjection\n", > + QEMU_ARCH_I386) > > HXCOMM This is the last statement. Insert new options before this line! > STEXI > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html