From patchwork Tue Mar 9 00:47:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 84194 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o290nV8R020302 for ; Tue, 9 Mar 2010 00:49:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756226Ab0CIAta (ORCPT ); Mon, 8 Mar 2010 19:49:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43744 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756235Ab0CIAt2 (ORCPT ); Mon, 8 Mar 2010 19:49:28 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o290nS23020697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Mar 2010 19:49:28 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o290nRtN019928; Mon, 8 Mar 2010 19:49:28 -0500 Received: from amt.cnet (vpn-9-132.rdu.redhat.com [10.11.9.132]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o290nQf0000977; Mon, 8 Mar 2010 19:49:27 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 568A068A865; Mon, 8 Mar 2010 21:48:42 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o290mfNi019707; Mon, 8 Mar 2010 21:48:41 -0300 Message-Id: <20100309004834.722887121@redhat.com> User-Agent: quilt/0.47-1 Date: Mon, 08 Mar 2010 21:47:08 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: Marcelo Tosatti Subject: [patch 4/7] kvm-tpr-opt: clean up usage of bios_enabled References: <20100309004704.049355766@redhat.com> Content-Disposition: inline; filename=kvm-tpr-bios-enabled-clean X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 09 Mar 2010 00:49:32 +0000 (UTC) Index: qemu-kvm-tpr/kvm-tpr-opt.c =================================================================== --- qemu-kvm-tpr.orig/kvm-tpr-opt.c +++ qemu-kvm-tpr/kvm-tpr-opt.c @@ -250,7 +250,6 @@ int kvm_tpr_enable_vapic(CPUState *env) static int enable_vapic(CPUState *env) { - bios_enabled = 1; env->update_vapic = 1; return 1; } @@ -322,8 +321,6 @@ void kvm_tpr_access_report(CPUState *env void kvm_tpr_vcpu_start(CPUState *env) { kvm_enable_tpr_access_reporting(env); - if (bios_enabled) - kvm_tpr_enable_vapic(env); } static void tpr_save(QEMUFile *f, void *s)