Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp570375lqb; Fri, 24 May 2024 07:05:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzyoE0TtgscnwTRXLD/K5AS2qbWEDQ+bJ+UGHViNU52o6hIgrBlB5RhAViDhNHgEkMMPkziBOk21WE8p6zvUVv7P7qDKaTd4a+SnBUaw== X-Google-Smtp-Source: AGHT+IHF6EiAr2pJ5oiG16KU5mC9L3xselloDsR8l/3mItfwz7prhCS6Pn/UhOrxil+YIt4t1y9q X-Received: by 2002:ac8:5f52:0:b0:43a:c83c:8e2a with SMTP id d75a77b69052e-43fb0e80651mr21371641cf.37.1716559525772; Fri, 24 May 2024 07:05:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716559525; cv=pass; d=google.com; s=arc-20160816; b=gmLmVfCastmNAjG5X7bBZi8u95wQ4yyp07zDWPnfS3vgVHNEqG2QkmamKdFcZ+MPOa SoQgMjyBoephJCl/Fh9TKEGTA7ZTV+ro8CZCXqJbD707raY6V2z8pv1JNMVphSVm3gHs xoKHwmbeEbmoB+cMOKQArfbMaQELWfTw4hLwattzB6TyJsOIby3MH7zJtJQ3QGNi+JGp +PAngVlw2DWm6/c41GX9X+BaCLHJwlaVPdbqVbCingVXkYYsNwfj1qWknN9im9OFP2Nv EL0pDcMNZyNsXk/Rk8j6PQdD1QBg69BSfDTC9squ3HkEY1Yp41qCHzH7107vKF9DYUzU CBIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:content-language :references:cc:to:subject:reply-to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :from:dkim-signature; bh=202i6Q3HfmZI4lv+uYm0BvyUdBZ8rn9ftqmt4YhUNng=; fh=1AtbakSaEDOiGnXJwzkUm3N0r4FR229swXM+PFb4OYY=; b=fyNGm4AOW02DhEoqLeR8ntOVgEw/8p0UMLgJDw6I4uHJheA5j73x84LgQBxCbU1ldQ JR/XQg9t10q2eEnNxQ6b0PQpLqeey42SFbqIzCTFQE987zHoD1kK0WPHc6RaiL/2eJfU Ra1nya2NFgKWNCrEOAi6fa7sgdUIpOt3kfqu6xIrcxBTrd2/uBkdwVRJRIM27bOa6l6E qjHz7ZhyzCvi2naS7pKMa1V/rt2xIEB6BFUt+B70gIyNHjEQTQQvRdPJbGDpE46GrEaX /MdAbM2EUE4Toq9NyihOJ8ty0lhqKc1NlzPt71GQoxchazkehw3Jc+O5TgrZnnI0801f GycA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLwA1ko5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb809f8c6si2265341cf.251.2024.05.24.07.05.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 07:05:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLwA1ko5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0992C1C21CEA for ; Fri, 24 May 2024 14:05:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47BE912C485; Fri, 24 May 2024 14:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NLwA1ko5" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02F6E12BF38; Fri, 24 May 2024 14:05:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716559516; cv=none; b=cRulPINJRzXl62WvcoSgEmNsZyw4yfmGG64pIyw7h52wtwlnBw+yRqxxUPtHxNlG9qeKOyTa+WaQuKnvubNkbxqw44YL94vqLXN1vAAOqDW7GorohLFAqU9lsl/zCOKiCOcfDGUF538OOjssyecIOjC7X2bD8ofi1kvkRucZORI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716559516; c=relaxed/simple; bh=DCCBpwajUaHHrXRMmBxroBKg0DeNFPrf5Xbzu6XBIiY=; h=From:Message-ID:Date:MIME-Version:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Xk4hYNTY00swDuo2uIAalVjCCu1+WEwLMgwsZ7RpRskT0AsSdjLlQu7ep7j/rv2O4SFrhMJNgJ4OOWj5IiaYJalZiA23Usjb/6fvfZinWV89v/SpbTpWKDxc/Js03kjKUKzPuiMWsj6yS12ycHraUpTNmUdeJQ2ie3rgmRARUwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NLwA1ko5; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4210aa00c94so4226985e9.1; Fri, 24 May 2024 07:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716559513; x=1717164313; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:content-language :references:cc:to:subject:reply-to:user-agent:mime-version:date :message-id:from:from:to:cc:subject:date:message-id:reply-to; bh=202i6Q3HfmZI4lv+uYm0BvyUdBZ8rn9ftqmt4YhUNng=; b=NLwA1ko5RUayGbcZ4NgzNwRA2HpwuD12+YXhs0NYxKlQswSPOq/aUwxih+aGQzM7NL O4JRydJlmm6bJPjKti1BUL1Eu1ZY7fgxQogmvPs+N69myXtF1ux/T9hWOV+9ao5sRk0f C9EHOiOj4K20DVrFfSAlwPMzwA+72n6q4B55R2UKgxCJXheGrTEmKqulM2J3vzL+WBYK sdF2EhOgzFQemlxfjlb2GuKxcQnz8t7R5y+mHL8t8a4LnsT54pyBgL8SXxyqUuxVVz0M QylMHRaerQ2XVgIspeeNOsUic5wqhS4sli+yXqiitrGp11Yr48RuEfPiBa5vuaUL+Z4H prYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716559513; x=1717164313; h=content-transfer-encoding:in-reply-to:organization:content-language :references:cc:to:subject:reply-to:user-agent:mime-version:date :message-id:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=202i6Q3HfmZI4lv+uYm0BvyUdBZ8rn9ftqmt4YhUNng=; b=odfVQHnPlLDG+dMcnoJH16hpNgtTvonG2CEskBYoZxNJKXXif2ksmhcaSCz+hCSXam tho2lzmzUjf0C2EjtfOWLwLU9IzL6JfPre10MXB6KDvbRtsviWPM2GLBUrwtuUTx+roM gdo/+ZY4HhCoi8pMs95xa806VQgThgOKbmi8VKpySubwPnXYmlaB11HaWE5U3U8VJHX4 YBCSzUfGZaZBIki9VqVxGeKJPZTIR4U+66vT73YJ9qs6cKHSGwS/lhYPe749fz41dmne 2dle2M1kS+fkAC5/3O7oqRVfFEBM/yL3UzyHw/VObp99HzEVHEsxYT98NYRXUsKUF3yW IxUw== X-Forwarded-Encrypted: i=1; AJvYcCXk6GzVxhEnFkIbRuMBzhvIM3a5cnKa77Q6mS3RNqzkGBoOzjIO0Qao917fKtN/V8AQAwaJgWmVRJMZM9TyHWTY3x2sx7EuuaTB+3+0wypwYD3+Fe8TkGD6/nwCTyDHy4eqURfesjwe6rXNk6D7/hAYiX3FIZ6jy4MXyyZ5 X-Gm-Message-State: AOJu0YwLNcMfyVK9wkAa96pZSVjbVaaTy8giZ4b5Cq1Hepy8XNynjMGO wj5YW0Pb52T2BEz2n8mg3jaJqf+TmMwtuiPc+mlmOsqTMenxoZMb X-Received: by 2002:a05:600c:3506:b0:418:4841:162a with SMTP id 5b1f17b1804b1-421089d85b4mr19597135e9.15.1716559513089; Fri, 24 May 2024 07:05:13 -0700 (PDT) Received: from [192.168.0.200] (54-240-197-234.amazon.com. [54.240.197.234]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f598d7sm53564005e9.23.2024.05.24.07.05.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 07:05:12 -0700 (PDT) From: Paul Durrant X-Google-Original-From: Paul Durrant Message-ID: <03b1a60c-59a3-4a5a-ae3d-56819d1b8e66@xen.org> Date: Fri, 24 May 2024 15:05:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: paul@xen.org Subject: Re: [RFC PATCH v3 14/21] KVM: x86: Kill cur_tsc_{nsec,offset,write} fields To: David Woodhouse , kvm@vger.kernel.org Cc: Paolo Bonzini , Jonathan Corbet , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Shuah Khan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jalliste@amazon.co.uk, sveith@amazon.de, zide.chen@intel.com, Dongli Zhang , Chenyi Qiang References: <20240522001817.619072-1-dwmw2@infradead.org> <20240522001817.619072-15-dwmw2@infradead.org> Content-Language: en-US Organization: Xen Project In-Reply-To: <20240522001817.619072-15-dwmw2@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22/05/2024 01:17, David Woodhouse wrote: > From: David Woodhouse > > These pointlessly duplicate the last_tsc_{nsec,offset,write} values. > > The only place they were used was where the TSC is stable and a new vCPU > is being synchronized to the previous setting, in which case the 'last_' > value is definitely identical. > > Signed-off-by: David Woodhouse > --- > arch/x86/include/asm/kvm_host.h | 3 --- > arch/x86/kvm/x86.c | 19 ++++++++----------- > 2 files changed, 8 insertions(+), 14 deletions(-) > Reviewed-by: Paul Durrant