]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - virt/kvm/arm/arm.c
Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64...
[mirror_ubuntu-bionic-kernel.git] / virt / kvm / arm / arm.c
index 95cba079982897bb5b1a1ab6a5717aa080d021b4..4cf9b91e6c9b28ab0d2c92f23701daa7f9ad24ce 100644 (file)
@@ -652,6 +652,9 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run)
                 */
                preempt_disable();
 
+               /* Flush FP/SIMD state that can't survive guest entry/exit */
+               kvm_fpsimd_flush_cpu_state();
+
                kvm_pmu_flush_hwstate(vcpu);
 
                kvm_timer_flush_hwstate(vcpu);