From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754932AbbJ1Ovn (ORCPT ); Wed, 28 Oct 2015 10:51:43 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36219 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbbJ1Ovl (ORCPT ); Wed, 28 Oct 2015 10:51:41 -0400 Subject: Re: [PATCH 3/3] x86: context_tracking: avoid irq_save/irq_restore on kernel entry and exit To: Andy Lutomirski References: <1445996397-32703-1-git-send-email-pbonzini@redhat.com> <1445996397-32703-4-git-send-email-pbonzini@redhat.com> Cc: "linux-kernel@vger.kernel.org" , kvm list , Andy Lutomirski , Frederic Weisbecker , Rik van Riel , Paul McKenney From: Paolo Bonzini Message-ID: <5630E0F6.4070608@redhat.com> Date: Wed, 28 Oct 2015 15:51:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/10/2015 06:22, Andy Lutomirski wrote: >> > called by guest_enter and guest_exit. >> > >> > Use the previously introduced __context_tracking_entry and >> > __context_tracking_exit. > x86 isn't ready for this yet. We could do a quick-and-dirty fix with > explicit IRQs-on-and-off much protected by the static key, or we could > just wait until I finish the syscall cleanup. I favor the latter, but > you're all welcome to do the former and I'll review it. Or we could just do save/restore for the only call that doesn't ensure that interrupts are disabled (syscall_trace_phase1 or whatever it's called). But two days from the merge window, I also favor waiting until 4.5. Paolo