Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7913306rdb; Thu, 4 Jan 2024 11:34:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IH37X9GQp2rSv7op529a3GPZRFyJdMTKUS2RCrj5Yc/Na1AQqma3cwcbLbWDxPQdjQrqX17 X-Received: by 2002:a05:6a00:2e95:b0:6d9:8e5f:52fe with SMTP id fd21-20020a056a002e9500b006d98e5f52femr1211364pfb.48.1704396880241; Thu, 04 Jan 2024 11:34:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704396880; cv=none; d=google.com; s=arc-20160816; b=r/3/EWYgNVloKVFuEUvijm+jswltkWN3ATyf1+AnxO8Zek4ysMTy1k2t3csd6N4OUE fTxdLaxGwJM0pEJ277MHzvVuKIeIyIwLiLNEao3hvweVseBWL/K6NjjVlYJjw/ycnpGV TM+ckLEIadNNuvqnZ/O8xvJzbvNDuB1ENWAcuRMkzZg/krWZ//3Mn7JKhkEaASAtPEN/ ex9DqmZIUBw4gy362K2HIycGOQRzK5u0h6K2sT7Jp8TVePHTnau/1D8ceSl2necd63dO IgOS5nqqThI5vP7TGeqz3eVTvVGeo60jb5H1B/E5qUGBpJF3cDOVYK25vECkCt+HgWu4 LFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=0gL82psZOay2fkE6NWKDmgNyb6GicZeTgyQYLdcvkDM=; fh=dogxdQWc7Q2U5Ekp9F18wEHwMgE3kRwQ/60KgTj3654=; b=E126g3ZbugpMUfPBkrfnvYA2dsxiXRF3PBfjm4fU46v5tINewb6L5yn4l9dTSzPokJ cOhTFxQspfppu13bXpp2YpkqEPpNjwkOG8kks0RQxA/NqKQTWBiWz+k9r/6/HYVtIVC/ p18m32nU0Gh2IKfMvf1lCt+a339Tnk9pO+0MblEZgC2TirNg1ypPKfvrIR+Pa3PUTxsV sUay3qZOy4sxlWu+V5UoQWVnqAqojfMX6KeyPJ0jiLMBo737DZ7OcnfxNHBFMYVWM5EK PjRVjgT9MRr9Qo5/OOxJ16aSQqT2nxC1oS/L3KJAcvJOlhSYiPdFM4FW0BJJvGn3ZSNC sezQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sX3wrLLs; spf=pass (google.com: domain of linux-kernel+bounces-17165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v7-20020aa78087000000b006ce7ec100ecsi43814pff.87.2024.01.04.11.34.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 11:34:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sX3wrLLs; spf=pass (google.com: domain of linux-kernel+bounces-17165-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E4CDA2868C8 for ; Thu, 4 Jan 2024 19:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDA072D624; Thu, 4 Jan 2024 19:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="sX3wrLLs" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 D18562D05E for ; Thu, 4 Jan 2024 19:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dbe9dacc912so1168167276.2 for ; Thu, 04 Jan 2024 11:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704396795; x=1705001595; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=0gL82psZOay2fkE6NWKDmgNyb6GicZeTgyQYLdcvkDM=; b=sX3wrLLsuT6j7vDEVEP1PtFuBrOTbW7VqyXVMzlPy0Oeijrug3Wz7FT0sRENFm+yuh PUEst8CKAsBI0KOfvr/zHxOz9MMl9aGcUhYUBPyIEDGIpaTCwHU8cd9f8arpGa7eAEI7 dqHk3+thCy5KVMRIRLw4wPpGf4tM3hfUaljbu5nlZc0DgNddM5VhEdb1d05bguY2qWtn 0Ke4qbiTblN6GReoDR6JmbFvOZh1BItln5A0BuZ4eFDLi6ZuRKtZhDv2NWsbhCjchlMo ObS4hnUtvSvDUtiwZGT60fX5gxkJ958zVdECpcU74XkXc0gM+T6rHyHRKdakWRug90bc Lq9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704396795; x=1705001595; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0gL82psZOay2fkE6NWKDmgNyb6GicZeTgyQYLdcvkDM=; b=FVSYpm9qUvtdp/Xod5bM2gcGiGbPDLTGZ72/GO04r6sDvc1m8Qy9CzCR7WQ3UZ0+wQ b/uMNaNixzfyls4OtVhPfIbW+DYztaHnYH0oy7uKMA0CCzKkmFyuZadYMnUYM208LIVl REc9+3t3EXk2cV3zO8GqvNkvbkc6/v/fmb1+ancX1IC8U+Visi6IJLWMhG+/0zyatWy0 9tuYneJ8eo3ZtXVaEEuBrA1W+pCt78V9U23Jjvr4RYdlXwyo1kTROO5sQN2/CFRVpRNC rE2y3obwnKAib3QbpwLLEQ7Nk9Msa5Ppav1LP7oltAmKFOKbiimyrOthN+Dlh0X9XoDT 2/4A== X-Gm-Message-State: AOJu0YyWAQ0P+RdHGUoU6SwUZeb2u8MozeAVjYyhYcCuWHn2PLDxRfbV AAAubowe98tuJMXJx+OMlTOIolzdDDFTWmWdiw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:81ce:0:b0:dbd:b1d3:85e4 with SMTP id n14-20020a2581ce000000b00dbdb1d385e4mr37002ybm.1.1704396794928; Thu, 04 Jan 2024 11:33:14 -0800 (PST) Reply-To: Sean Christopherson Date: Thu, 4 Jan 2024 11:32:59 -0800 In-Reply-To: <20240104193303.3175844-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240104193303.3175844-1-seanjc@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20240104193303.3175844-5-seanjc@google.com> Subject: [GIT PULL] KVM: x86: Misc changes for 6.8 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson Content-Type: text/plain; charset="UTF-8" A variety of one-off changes... The following changes since commit e9e60c82fe391d04db55a91c733df4a017c28b2f: selftests/kvm: fix compilation on non-x86_64 platforms (2023-11-21 11:58:25 -0500) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-misc-6.8 for you to fetch changes up to 15223c4f973a6120665ece9ce1ad17aec0be0e6c: KVM: SVM,VMX: Use %rip-relative addressing to access kvm_rebooting (2023-11-30 12:51:54 -0800) ---------------------------------------------------------------- KVM x86 misc changes for 6.8: - Turn off KVM_WERROR by default for all configs so that it's not inadvertantly enabled by non-KVM developers, which can be problematic for subsystems that require no regressions for W=1 builds. - Advertise all of the host-supported CPUID bits that enumerate IA32_SPEC_CTRL "features". - Don't force a masterclock update when a vCPU synchronizes to the current TSC generation, as updating the masterclock can cause kvmclock's time to "jump" unexpectedly, e.g. when userspace hotplugs a pre-created vCPU. - Use RIP-relative address to read kvm_rebooting in the VM-Enter fault paths, partly as a super minor optimization, but mostly to make KVM play nice with position independent executable builds. ---------------------------------------------------------------- Jim Mattson (2): KVM: x86: Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace KVM: x86: Use a switch statement and macros in __feature_translate() Sean Christopherson (2): KVM: x86: Turn off KVM_WERROR by default for all configs KVM: x86: Don't unnecessarily force masterclock update on vCPU hotplug Uros Bizjak (1): KVM: SVM,VMX: Use %rip-relative addressing to access kvm_rebooting arch/x86/kvm/Kconfig | 14 +++++++------- arch/x86/kvm/cpuid.c | 21 ++++++++++++++++++--- arch/x86/kvm/reverse_cpuid.h | 33 ++++++++++++++++++++++----------- arch/x86/kvm/svm/vmenter.S | 10 +++++----- arch/x86/kvm/vmx/vmenter.S | 2 +- arch/x86/kvm/x86.c | 29 ++++++++++++++++------------- 6 files changed, 69 insertions(+), 40 deletions(-)