From nobody Tue Jun 23 14:06:57 2026 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 06D46C433F5 for ; Thu, 3 Mar 2022 16:05:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234883AbiCCQFx (ORCPT ); Thu, 3 Mar 2022 11:05:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbiCCQFe (ORCPT ); Thu, 3 Mar 2022 11:05:34 -0500 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098181986D7 for ; Thu, 3 Mar 2022 08:04:48 -0800 (PST) Received: by mail-pf1-x449.google.com with SMTP id 203-20020a6217d4000000b004f66d3542a5so1583751pfx.11 for ; Thu, 03 Mar 2022 08:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=pFhtq4SarysYe9oxC111dJQSetUbDTizJsJuJ+RcfS4=; b=KXnIJaKGcgH6Gk30m7FKapDGNiIvPKj5HIXovO2i0ceQJKz8HjFypEtR54muz/WN5e r4JtZ55rtLLp557YuM6iXsZjiyAsVjBFq7u9f4VaF60vznYvJ0ugqUpLPUu1BUPkourA Utzfj9V4h/LC+sbB7JisYPwz+EyGYe+uQ1/MYA9tex3jO5dONXzVMb3JSgzHSR7DWlrh hzZuLrAH8RMrtT71dL+OiZbU4QS/cZVop6PfRv/88THDJF89mE+3SblObmmsS2eWoRhW 8fHZPdEDR+BCnlpQqmIRmR93Cmiq3HG8wpUDGLvjRB+JonQ28/0psZeI+l58jmVGrp04 Qfog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=pFhtq4SarysYe9oxC111dJQSetUbDTizJsJuJ+RcfS4=; b=ApbsTLrIbyq1kq2kJngvKWeKnBGi3Z4B3CERbpJ4yXs3Bja+682v+fS0Drr73A7KvX or852r8JCpYKoKIBK7+ZFJDGWm01awgd8mgoalzLrMqSHho9K7DvyPo95U3//UTjbbwj +gVqbjVYqI3bklcufCeg+u9VR8SUua57leAsMWsw632Ng0TB1bpR/UaoijcdeTaEWDQ5 EzeArimHb+iWwDzU/1SXO/LG6aCnGUQn0davXS1TORLLd8FwGCoUYkQjUa4ClbIu4qYl +C70NybTBjdkWTgKQnTkAAa0eBSm8RLZkNt1769kIAw+alSxc4TiBRga9LZpSRzjekOO D4zA== X-Gm-Message-State: AOAM530X3IJ8GNPo6IVroOhb7OzGMDXLe3xXp3ZT8jNG0PyjGy5IC7Sf 7gPvNLUyn0/sJdi8wtk0WOrbj4fanCI= X-Google-Smtp-Source: ABdhPJynstxJuHD2FDfX+TswrMqE32RgCuGQqLqhvICbCOJSXNyRSOvTUX1x7iBOGh/qlkdzQDs/9y4oeGM= X-Received: from pgonda1.kir.corp.google.com ([2620:15c:29:203:9e02:fb61:c5eb:4183]) (user=pgonda job=sendgmr) by 2002:a05:6a00:240c:b0:4e1:2d98:d2c9 with SMTP id z12-20020a056a00240c00b004e12d98d2c9mr39052757pfh.51.1646323487365; Thu, 03 Mar 2022 08:04:47 -0800 (PST) Date: Thu, 3 Mar 2022 08:04:42 -0800 Message-Id: <20220303160442.1815411-1-pgonda@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog Subject: [PATCH] KVM: SVM: Fix missing kvm_cache_regs.h include in svm.h From: Peter Gonda To: kvm@vger.kernel.org Cc: Peter Gonda , Paolo Bonzini , Sean Christopherson , linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Adds include for is_guest_mode() in svm.h. Just compile tested. Fixes: 883b0a91f41ab ("KVM: SVM: Move Nested SVM Implementation to nested.c= ") Signed-off-by: Peter Gonda Cc: Paolo Bonzini Cc: Sean Christopherson Cc: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/x86/kvm/svm/svm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index e45b5645d5e0..396d60e36b82 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -22,6 +22,8 @@ #include #include =20 +#include "kvm_cache_regs.h" + #define __sme_page_pa(x) __sme_set(page_to_pfn(x) << PAGE_SHIFT) =20 #define IOPM_SIZE PAGE_SIZE * 3 --=20 2.35.1.574.g5d30c73bfb-goog