From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757187AbdKNVyd (ORCPT ); Tue, 14 Nov 2017 16:54:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59264 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757163AbdKNVy2 (ORCPT ); Tue, 14 Nov 2017 16:54:28 -0500 From: riel@redhat.com To: pbonzini@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, david@redhat.com, borntraeger@de.ibm.com, tglx@linutronix.de, rkrcmar@redhat.com Subject: [PATCH v2 0/2] x86,kvm: move qemu/guest FPU switching out to kvm_arch_vcpu_ioctl_run Date: Tue, 14 Nov 2017 16:54:22 -0500 Message-Id: <20171114215424.32214-1-riel@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 14 Nov 2017 21:54:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)