From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762AbcHSKyr (ORCPT ); Fri, 19 Aug 2016 06:54:47 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:35228 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607AbcHSKyp (ORCPT ); Fri, 19 Aug 2016 06:54:45 -0400 Subject: Re: RFC: Petition Intel/AMD to add POPF_IF insn To: Linus Torvalds , Denys Vlasenko References: <8de26c33-5597-bf00-2ac5-d265ba01d0d4@redhat.com> <1686aa11-152d-9416-34dd-17820de7a7b6@redhat.com> Cc: Andy Lutomirski , Sara Sharon , Dan Williams , =?UTF-8?Q?Christian_K=c3=b6nig?= , Vinod Koul , Alex Deucher , Johannes Berg , "Rafael J. Wysocki" , Andy Lutomirski , the arch/x86 maintainers , Ingo Molnar , LKML , Adrian Hunter From: Paolo Bonzini Message-ID: Date: Fri, 19 Aug 2016 12:54:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.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 18/08/2016 19:24, Linus Torvalds wrote: >> > I didn't do CPL0 tests yet. Realized that cli/sti can be tested in userspace >> > if we set iopl(3) first. > Yes, but it might not be the same. So the timings could be very > different from a cpl0 case. FWIW I recently measured around 20 cycles for a popf as well on Haswell-EP and CPL=0 (that was for commit f2485b3e0c6c, "KVM: x86: use guest_exit_irqoff", 2016-07-01). Paolo