From patchwork Sat Oct 24 04:50:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 55698 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9O4oLhA015680 for ; Sat, 24 Oct 2009 04:50:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077AbZJXEuA (ORCPT ); Sat, 24 Oct 2009 00:50:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751541AbZJXEt7 (ORCPT ); Sat, 24 Oct 2009 00:49:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46285 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbZJXEt7 (ORCPT ); Sat, 24 Oct 2009 00:49:59 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9O4o48r004415 for ; Sat, 24 Oct 2009 00:50:04 -0400 Received: from blackpad.lan.raisama.net (vpn-12-7.rdu.redhat.com [10.11.12.7]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9O4o303027636; Sat, 24 Oct 2009 00:50:03 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 517C017FD02; Sat, 24 Oct 2009 02:50:01 -0200 (BRST) From: Eduardo Habkost To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org Subject: [PATCH 3/3] kvm: svm: init_vmcb(): remove redundant save->cr0 initialization Date: Sat, 24 Oct 2009 02:50:00 -0200 Message-Id: <1256359800-16893-4-git-send-email-ehabkost@redhat.com> In-Reply-To: <1256359800-16893-1-git-send-email-ehabkost@redhat.com> References: <1256359800-16893-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 6b86a11..cd32ea7 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -646,8 +646,6 @@ static void init_vmcb(struct vcpu_svm *svm) control->intercept_cr_write &= ~(INTERCEPT_CR0_MASK| INTERCEPT_CR3_MASK); save->g_pat = 0x0007040600070406ULL; - /* enable caching because the QEMU Bios doesn't enable it */ - save->cr0 = X86_CR0_ET; save->cr3 = 0; save->cr4 = 0; }