From patchwork Tue Jul 27 16:14:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 114552 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6RGGFAF008397 for ; Tue, 27 Jul 2010 16:16:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280Ab0G0QPM (ORCPT ); Tue, 27 Jul 2010 12:15:12 -0400 Received: from tx2ehsobe005.messaging.microsoft.com ([65.55.88.15]:56987 "EHLO TX2EHSOBE010.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741Ab0G0QPL (ORCPT ); Tue, 27 Jul 2010 12:15:11 -0400 Received: from mail58-tx2-R.bigfish.com (10.9.14.244) by TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id 8.1.340.0; Tue, 27 Jul 2010 16:15:10 +0000 Received: from mail58-tx2 (localhost.localdomain [127.0.0.1]) by mail58-tx2-R.bigfish.com (Postfix) with ESMTP id 96B914005EA; Tue, 27 Jul 2010 16:15:10 +0000 (UTC) X-SpamScore: 7 X-BigFish: VPS7(z41cfnzzz1202hzzz32i87h2a8h61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail Received: from mail58-tx2 (localhost.localdomain [127.0.0.1]) by mail58-tx2 (MessageSwitch) id 1280247310376492_8036; Tue, 27 Jul 2010 16:15:10 +0000 (UTC) Received: from TX2EHSMHS010.bigfish.com (unknown [10.9.14.235]) by mail58-tx2.bigfish.com (Postfix) with ESMTP id 5817DC0004C; Tue, 27 Jul 2010 16:15:10 +0000 (UTC) Received: from ausb3extmailp02.amd.com (163.181.251.22) by TX2EHSMHS010.bigfish.com (10.9.99.110) with Microsoft SMTP Server (TLS) id 14.0.482.44; Tue, 27 Jul 2010 16:15:09 +0000 Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with SMTP id o6RGCdUw017260; Tue, 27 Jul 2010 11:12:42 -0500 X-WSS-ID: 0L684ZQ-02-JAF-02 X-M-MSG: Received: from sausexhtp01.amd.com (sausexhtp01.amd.com [163.181.3.165]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ausb3twp02.amd.com (Tumbleweed MailGate 3.7.2) with ESMTP id 299A4C8532; Tue, 27 Jul 2010 11:11:50 -0500 (CDT) Received: from storexhtp02.amd.com (172.24.4.4) by sausexhtp01.amd.com (163.181.3.165) with Microsoft SMTP Server (TLS) id 8.2.254.0; Tue, 27 Jul 2010 11:11:55 -0500 Received: from gwo.osrc.amd.com (165.204.16.204) by storexhtp02.amd.com (172.24.4.4) with Microsoft SMTP Server id 8.2.254.0; Tue, 27 Jul 2010 12:11:54 -0400 Received: from lemmy.osrc.amd.com (lemmy.osrc.amd.com [165.204.15.93]) by gwo.osrc.amd.com (Postfix) with ESMTP id 9465849C0F5; Tue, 27 Jul 2010 17:11:53 +0100 (BST) Received: by lemmy.osrc.amd.com (Postfix, from userid 1000) id 6781A9FBFB; Tue, 27 Jul 2010 18:14:25 +0200 (CEST) From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: , , Joerg Roedel Subject: [PATCH 1/2] KVM: SVM: Sync efer back into nested vmcb Date: Tue, 27 Jul 2010 18:14:20 +0200 Message-ID: <1280247261-19115-2-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1280247261-19115-1-git-send-email-joerg.roedel@amd.com> References: <1280247261-19115-1-git-send-email-joerg.roedel@amd.com> MIME-Version: 1.0 X-Reverse-DNS: ausb3extmailp02.amd.com 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, 27 Jul 2010 16:16:16 +0000 (UTC) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 56c9b6b..7d10f2c 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1897,6 +1897,7 @@ static int nested_svm_vmexit(struct vcpu_svm *svm) nested_vmcb->save.ds = vmcb->save.ds; nested_vmcb->save.gdtr = vmcb->save.gdtr; nested_vmcb->save.idtr = vmcb->save.idtr; + nested_vmcb->save.efer = svm->vcpu.arch.efer; nested_vmcb->save.cr0 = kvm_read_cr0(&svm->vcpu); nested_vmcb->save.cr3 = svm->vcpu.arch.cr3; nested_vmcb->save.cr2 = vmcb->save.cr2;