From: Avi Kivity Subject: [PATCH 0/6 v2] Lazy fpu for svm/npt Date: Sun, 10 Jan 2010 12:31:23 +0200 Message-ID: <1263119489-29150-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti , Joerg Roedel Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753204Ab0AJKbd (ORCPT ); Sun, 10 Jan 2010 05:31:33 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patchset (on top of the previous cr0 patchset) brings lazy fpu to npt. For the cases where guest and host cr0 match (the majority) it will disable intercepts for cr0.ts once the guest fpu is loaded, so the guest can to its own lazy fpu without trapping. v2: Refactored last patch into three independent patches; no code changes. Avi Kivity (6): KVM: Set cr0.et when the guest writes cr0 KVM: SVM: Fix SVM_CR0_SELECTIVE_MASK KVM: SVM: Initialize fpu_active in init_vmcb() KVM: SVM: Restore unconditional cr0 intercept under npt KVM: SVM: Selective cr0 intercept KVM: SVM: Lazy fpu with npt arch/x86/include/asm/svm.h | 2 +- arch/x86/kvm/svm.c | 73 +++++++++++++++++++++---------------------- arch/x86/kvm/x86.c | 2 + 3 files changed, 39 insertions(+), 38 deletions(-)