Skip to content

x86,kvm: move qemu/guest FPU switching out to kvm_arch_vcpu_ioctl_run

[email protected] kvm lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 18 repliesIn review
  2. v11 patch 12 repliesSuperseded

Changes in v2 from the cover letter

- move FPU switching out to kvm_arch_vcpu_ioctl_run (David Hildenbrand)
- remove fpu handling from arch/x86/kvm/emulator.c (no longer needed)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86,kvm: move qemu/guest FPU switching out to vcpu_runarch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c include/linux/kvm_host.h+27 -2218 replies
2/2x86,kvm: remove KVM emulator get_fpu / put_fpuarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c arch/x86/kvm/x86.c+0 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] x86,kvm: move qemu/guest FPU switching out to kvm_arch_vcpu_ioctl_run

This code moves FPU handling from the non-preemptible part of running a VCPU, way further out into the KVM_RUN ioctl handling. That way there is no need to continuously save and load the qemu FPU user context every time a VCPU context switches, or goes to sleep in the host kernel.

v2:
- move FPU switching out to kvm_arch_vcpu_ioctl_run (David Hildenbrand)
- remove fpu handling from arch/x86/kvm/emulator.c (no longer needed)