Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1796514ybn; Thu, 26 Sep 2019 02:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf+Um/p/m2JAmNzQBz6pok9LJc7zLf4X2EaXtAvdUrTih3jfwyPH2Wy1YZ/4khetp0xU29 X-Received: by 2002:a17:906:2542:: with SMTP id j2mr2171040ejb.278.1569489535773; Thu, 26 Sep 2019 02:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489535; cv=none; d=google.com; s=arc-20160816; b=N2gb6Pi97X/QvQSBI0HNzRXmklZRCWQq3u24okYkyC2j7GQBFi5a9fq5zBC9bCSchC 3e88cq66HS6GLc8i944f7YAX1sDiiNBl2AONeIUelqLU024boARGE39aq4pIO8KfiSQx +Dyd0gbkyd1WxZfXR9FHkyxggy2JOR/E4ERfzI+eHse/GnQeyQrRW84hr7AWGPcx/ZDi Ohqg31fixJMDrgtd7m7xWxyPU83cTJMtiUovOjNkJKbgoBebkCCL8YaDEsp+z7g/XEbZ e6/hsoEbHbX5EiAEgqqANns1tPaHOWJ8D7k6jw1p5W+8OSwN2ydXU2Qb6q/706Py5GZj tHFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=HYW+7OIc+oWfT/yx6/DrRQ9OVDX/Tk7EiyaM2Cojmhs=; b=R5iAyHayAJzsbIWfhU7cCG0oLtgVc9s9C9gnfB/utrztbasPUiZvjJkPcKLXvCj/tm QocFJJP4aFqv7AUZbltBphxqpm2u8N/5YYiQo4TWHZfpXVlYH4jUnEt+EiEMLFgEweLu 8bddVlA9h0VRSQBfA8Uo2vBorRhuJDFxRNbgZkUS0JKcpQzATkAOgdAYl8a4+Lz0wAkg J0k5Wad68IveAxRrkfh90O4jHBqBLfHC8QlCRtJWkcRzyLYZJRDDS7iZF0medUGNl7I+ CMZf+HLYNGSKAL9BG9khQN92gKRBGz3Eld/Cf36kc+S6nRb26M494HfIJTSlIykPfeef lCoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w34si974783edc.252.2019.09.26.02.18.31; Thu, 26 Sep 2019 02:18:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442592AbfIYHum (ORCPT + 99 others); Wed, 25 Sep 2019 03:50:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49282 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437273AbfIYHum (ORCPT ); Wed, 25 Sep 2019 03:50:42 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0AC59882F2 for ; Wed, 25 Sep 2019 07:50:42 +0000 (UTC) Received: by mail-wm1-f72.google.com with SMTP id s25so1506960wmh.1 for ; Wed, 25 Sep 2019 00:50:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HYW+7OIc+oWfT/yx6/DrRQ9OVDX/Tk7EiyaM2Cojmhs=; b=KkRQ9AETJ1cfOUjDVxuQUHZXflR9CnNAn3kyC+CKgZuC330Zzjr7PqAtzlmoYZcwuE OfjZSii7h4wH0ZR3k//qLA6SFAhrTd99eVJpmEAryI3ag7usmeow5fpcquXv462Q1e7H CEKMe2UKcswEsw4Js4ed3P27VQi/pjyfrIgsdW2uDj8bsC9Dd488PvezZdJR6pcU8+i9 NZcDZTAzVgp/wpopfawdmaTkwC30PznRh3o40NYw/GZagaUhoGBhm/EDcy8K68XW5Fez zuLj8eJYzAxhFp2uk+J66sRxZM+g+yv0QgJTZri8FtiaL86wGx8n9ZlRy1UEr0KxTaQ4 Kgog== X-Gm-Message-State: APjAAAWrEm8q2Mv9rLEDeO7EZ/bA/wHn5AQ2YASzhHFi9GDlEhEzq1vq 6MKWVnKpXDL/wQ6TrN2lTKStTODjmfLX4VZfCOjvxxpJodyK+0HeGDJT+rBMB/u6YJJcxeGPKXp VvdpmFghprDkGtPwAcRGlalvI X-Received: by 2002:a7b:c258:: with SMTP id b24mr5872499wmj.21.1569397840502; Wed, 25 Sep 2019 00:50:40 -0700 (PDT) X-Received: by 2002:a7b:c258:: with SMTP id b24mr5872474wmj.21.1569397840246; Wed, 25 Sep 2019 00:50:40 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:9520:22e6:6416:5c36? ([2001:b07:6468:f312:9520:22e6:6416:5c36]) by smtp.gmail.com with ESMTPSA id b15sm3904376wmb.28.2019.09.25.00.50.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Sep 2019 00:50:39 -0700 (PDT) Subject: Re: [PATCH 15/17] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers To: Andrea Arcangeli Cc: Vitaly Kuznetsov , "Dr. David Alan Gilbert" , Marcelo Tosatti , Peter Xu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190920212509.2578-1-aarcange@redhat.com> <20190920212509.2578-16-aarcange@redhat.com> <87o8zb8ik1.fsf@vitty.brq.redhat.com> <7329012d-0b3b-ce86-f58d-3d2d5dc5a790@redhat.com> <20190923190514.GB19996@redhat.com> <20190924214657.GE4658@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <5e047696-c641-da4b-1215-ebecbb492417@redhat.com> Date: Wed, 25 Sep 2019 09:50:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190924214657.GE4658@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/09/19 23:46, Andrea Arcangeli wrote: >>> >>> I would keep only EXIT_REASON_MSR_WRITE, EXIT_REASON_PREEMPTION_TIMER, >>> EXIT_REASON_EPT_MISCONFIG and add EXIT_REASON_IO_INSTRUCTION. >> Intuition doesn't work great when it comes to CPU speculative >> execution runtime. I can however run additional benchmarks to verify >> your theory that keeping around frequent retpolines will still perform >> ok. > On one most recent CPU model there's no measurable difference with > your list or my list with a hrtimer workload (no cpuid). It's > challenging to measure any difference below 0.5%. Let's keep the short list then. Paolo