From patchwork Thu Aug 25 22:57:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingwei Zhang X-Patchwork-Id: 12955342 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AD3AECAAD1 for ; Thu, 25 Aug 2022 22:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244318AbiHYW6L (ORCPT ); Thu, 25 Aug 2022 18:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244312AbiHYW6G (ORCPT ); Thu, 25 Aug 2022 18:58:06 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7198CC6EA4 for ; Thu, 25 Aug 2022 15:58:05 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id a16-20020a17090abe1000b001fad8c29b0bso3736894pjs.2 for ; Thu, 25 Aug 2022 15:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc; bh=y+lzaBk65ww51hCvJgNyxoyJqrGC7YrgWGmE6om5SXc=; b=ceIE676UVZGKZm2E6Mt/s5wpUNVii4s5j4u15I933eTsczM6yQlR9HER8rvL67CEBh tMJiMWWqXr1cNE7tYmrfMsGab+TAx9LRvYC5yPgH/KHemrsnAr1Rb/fZTcbneTdNA0Lw o25UuDmuir0bBEQkRhLbBfZWjVkYGrAmAAHGY2ziK9y7ZgwL7tSbA16Z5DDmETEzt3AI JNPqxMHFjw2486Smpe56NI6yUCl9oZ/WBNQd35P1ZuBxRRAhKAxx+WkL3D+F/byUkb80 sGhG7iUmX/0Oux2alHWN+IyKRqPgQhT62UVR/AlBcmnVNg05eEacNyVFmD4yVD1Y7dEr /ETQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc; bh=y+lzaBk65ww51hCvJgNyxoyJqrGC7YrgWGmE6om5SXc=; b=z3nvD11udTgi0LyilpvZt9A9ecUAMf1j9g9H81DFYzh3fzxsEwNB++B9odG8MPd8w9 sd2nn9pUIrsMMCjb/UBF3Ym1RPLeJaaa+mXBkZXTZZr1LtClE6bt196N+pSAzVXp8RKj hET0w8Sq/zZjnfsyIg/uoI4xXJbIRPtFMKFAp4WoEBNQZFFMziXVEWJKlmOjykvfP5Rl /hdBHQJMTXdgD3k77Tn77tpcNEJXp4m+fwIHffefOBpYOd3z0YEdrI7oExyGkoLAGjAR YRVyHBVjiZO3yxUcrtOaWSRNMHeC+9CBms53wzgA7Xrvh8ffoTH/i3BVT9yHemvEeg25 mtdg== X-Gm-Message-State: ACgBeo2kweHEjH9EHqkV0Htzl0P1ZNfUT5dZa3kixqElvO1C5A+jiP5Z JDl/QYjpwHQYt+hHeOzfLAB5xifbAZhO X-Google-Smtp-Source: AA6agR7vZwPSASd9sVEMyperT8XtrEmCG6kXiaFQSuzjtM1/GuniGBXVT5lFXlTLDnM9AW1zi/7lNtpjXqw2 X-Received: from mizhang-super.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1071]) (user=mizhang job=sendgmr) by 2002:aa7:8430:0:b0:536:5173:a2c6 with SMTP id q16-20020aa78430000000b005365173a2c6mr1207357pfn.4.1661468284842; Thu, 25 Aug 2022 15:58:04 -0700 (PDT) Reply-To: Mingwei Zhang Date: Thu, 25 Aug 2022 22:57:52 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220825225755.907001-1-mizhang@google.com> Subject: [PATCH v4 0/3] Extend KVM trace_kvm_nested_vmrun() to support VMX From: Mingwei Zhang To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Mingwei Zhang , David Matlack Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This patch set update trace_kvm_nested_vmrun() to support VMX. In addition, add the guest_pgd field to enrich the trace information. v3 -> v4: - Rebase to tip of kvm/queue. v2 -> v3: - Split the insertion of guest pgd field into a separate patch [seanjc]. - Update field names as suggested [seanjc]. v2: - https://lore.kernel.org/lkml/YurMLf3MDAK0RiZc@google.com/T/ v1 link: - https://lore.kernel.org/lkml/20220708232304.1001099-2-mizhang@google.com/T/ David Matlack (1): KVM: nVMX: Add tracepoint for nested vmenter Mingwei Zhang (2): KVM: x86: Update trace function for nested VM entry to support VMX KVM: x86: Print guest pgd in kvm_nested_vmenter() arch/x86/kvm/svm/nested.c | 8 ++++++-- arch/x86/kvm/trace.h | 33 +++++++++++++++++++++++---------- arch/x86/kvm/vmx/nested.c | 10 ++++++++++ arch/x86/kvm/x86.c | 2 +- 4 files changed, 40 insertions(+), 13 deletions(-) base-commit: 372d07084593dc7a399bf9bee815711b1fb1bcf2