Skip to content

Lazy fpu for svm/npt

Avi Kivity kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

Refactored last patch into three independent patches; no code changes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: Set cr0.et when the guest writes cr0arch/x86/kvm/x86.c+2 -00 replies
2/6KVM: SVM: Fix SVM_CR0_SELECTIVE_MASKarch/x86/include/asm/svm.h+1 -10 replies
3/6KVM: SVM: Initialize fpu_active in init_vmcb()arch/x86/kvm/svm.c+2 -10 replies
4/6KVM: SVM: Restore unconditional cr0 intercept under nptarch/x86/kvm/svm.c+8 -220 replies
5/6KVM: SVM: Selective cr0 interceptarch/x86/kvm/svm.c+26 -60 replies
6/6KVM: SVM: Lazy fpu with nptarch/x86/kvm/svm.c+0 -80 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJoerg Roedel
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/6 v2] Lazy fpu for svm/npt

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(-)