Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp567465rwo; Fri, 21 Jul 2023 17:21:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsizJ034hUlYbtD7n6P/jgzUioPUFDRKU/9Spx/8OiMIYqjj4PnElghq9mkfm1HPnAHWo/ X-Received: by 2002:a05:6402:4303:b0:521:946d:8280 with SMTP id m3-20020a056402430300b00521946d8280mr10401827edc.9.1689985273037; Fri, 21 Jul 2023 17:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689985273; cv=none; d=google.com; s=arc-20160816; b=oU0a7dDNakARcjrhnwfqh8mo1ph52JoWl3SAzXG6wyf9qDlxeTeS1U0+M0FgOm/5cv S5uNlTR5FVmQNTBU2i6aUs5RUun8Ovyro8B35nCS4qV1sHHWlm19rWBeA8a8+/07qiiE ILyPWXOLkO00RLguT+aUnLaJZCLgdxZljnLsAtcydpNXc8HSCNRkwCNaClWgiF08/hld wYicr0vKZEB0j2GlWhKJe2n4FnwTKSY5qnl7MdAyjX5Ja2/vts9qt3YpsGK3p/4woTq4 5ILFQU7IGHf/RCZqBk4/+6wO6hKQcOedsPzvq/mKwUVgUGjBFWMbtRhv3+kVkGUyYBa2 EynA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :reply-to:dkim-signature; bh=JB0mHFDmU3sjG3ZEt8YBjzzYwrb6CiQP2HeKKPMa64Q=; fh=876Zq2oV8dp1KMDsVIxM6dotCjDw9qRFXVLhzEk62XM=; b=TGPz8IMYJvlPJ3WNQVR+6pGN6jt/+IQeZhxbfcRJYxTLHkTXcZgtmEyiL5p+gX3i+V 00eiYZXDFEsV83J6rxnAN6jXwkmVf3WHmDlakOT+uUs0njD4iQYB3LIM/sX4Zy53w7MB c+h/dkBxbQnpIqg/SvKbLcnEJWRsG9FwO6yf6p74EWbS+YX9gzcjTxJhEaEUcsLXUBDh h7lf0av0jDH1yZAQDrpeEdnu0eplOHTCaofzwP7CuYphu8QCBwYu9eFPASw8aA4XG2/a SovO6eMffjd6tW7LOhhxryKKIjfHjPQ30UoWzurA94VHoKchymEjyg6arjGqUNXwMx5S I+Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=7czSKVAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k24-20020aa7c058000000b0051bdf1abe3csi2887883edo.415.2023.07.21.17.20.48; Fri, 21 Jul 2023 17:21:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=7czSKVAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbjGUX4o (ORCPT + 99 others); Fri, 21 Jul 2023 19:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjGUX4n (ORCPT ); Fri, 21 Jul 2023 19:56:43 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF4230E3 for ; Fri, 21 Jul 2023 16:56:42 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5704e551e8bso25567437b3.3 for ; Fri, 21 Jul 2023 16:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689983802; x=1690588602; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=JB0mHFDmU3sjG3ZEt8YBjzzYwrb6CiQP2HeKKPMa64Q=; b=7czSKVArYbjKlvoWLYM4+2xHiBQTDnu3Z/9oVQoar2KUiQzZAgwYxz3oOv8ym8DuTV pN1AKDyE4SdPxwA2BT+iv8gVeyjp1wTWYsKvZiHNV/fmSrUvTufu95z6kGt2dIUISU3x 1c27kC1rh/khD5B81SxRPUqTgvLNlsynfLXkaL1avx9Ar52ADcQuljq4IsS8EfXqFUBy l9jhwpeqZFWsPVeiCL5tzNlikMDJ/oW0r5SQQhYmpLVV7B4YWKKRZykthM7PvZNA/ZcH tOEo3v52H/61wRwlAacjF8ocUCVNAMylnS3FXcPpM1n8Ns5VDBiQDCgnRE0J/Q/1hQOj 10NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689983802; x=1690588602; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JB0mHFDmU3sjG3ZEt8YBjzzYwrb6CiQP2HeKKPMa64Q=; b=euqIFUFFj9yjdXbrtVUwtFvMjpr4QzWm70Egdlc05ifM+KAVX9wzJApKXu0XdX+1kW jpakCpXtnNmaeWift1j7bVWbxDbSQCJccyD/bcGMfKzDYmInEhie9Iij7femoWZS06If TJ6Zcrp/t3FKSGEFrQ1ayG3eOvjcey5tr74jmCKW3KHA75rwb1PgS2KIBRdVxqnMkJM9 kiHmSMlNyuuI5RnYfLSUiF5tTq8WICMgB4JNTJRDRmhqRltYCM9DQ9Ux2aXPcNYOwYyf 4ay6i0HTZbzERbg7y1h0AmMUutQgY93GYaar69YBbPI/5/h6XrSPRRYHviELHPFiDjJf h9Cg== X-Gm-Message-State: ABy/qLbJNzQ/PnqTGKVUBQpYewnOmlbN6QEXt659VOqPZ3tGH/MPP7Kk v3aXlnrbMYYtTDbLka7ki0ZqU2PMtOM= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:404a:0:b0:cbf:8936:4cb8 with SMTP id n71-20020a25404a000000b00cbf89364cb8mr20393yba.2.1689983802147; Fri, 21 Jul 2023 16:56:42 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 21 Jul 2023 16:56:35 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230721235637.2345403-1-seanjc@google.com> Subject: [PATCH 0/2] KVM: VMX: Make VMREAD error trampoline noinstr friendly From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Su Hui Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add another trampoline for the CONFIG_CC_HAS_ASM_GOTO_OUTPUT=n VMREAD error path in order to enable instrumentation, i.e. to make objtool happy, before calling pr_warn_ratelimited(). Sean Christopherson (2): KVM: VMX: Make VMREAD error path play nice with noinstr KVM: VMX: Use vmread_error() to report VM-Fail in "goto" path arch/x86/kvm/vmx/vmenter.S | 8 ++++---- arch/x86/kvm/vmx/vmx.c | 18 ++++++++++++++---- arch/x86/kvm/vmx/vmx_ops.h | 12 +++++++++--- 3 files changed, 27 insertions(+), 11 deletions(-) base-commit: fdf0eaf11452d72945af31804e2a1048ee1b574c -- 2.41.0.487.g6d72f3e995-goog