Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7511426rwp; Tue, 18 Jul 2023 17:05:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGlcuqHMduP5ZGHRRGPSW2VtWEDHdMvRLSJcalKvqWacR//Pv61f0NQH6hfqMyp/DC2ETv4 X-Received: by 2002:a17:90a:fb82:b0:258:c4b5:c6b4 with SMTP id cp2-20020a17090afb8200b00258c4b5c6b4mr570557pjb.12.1689725136261; Tue, 18 Jul 2023 17:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689725136; cv=none; d=google.com; s=arc-20160816; b=wdzfcH04D8DVgxy9WZrCtzv6RhvmP4XczehVqdFipPbHs9/Db0RIDXuvuQT9ZiWylP my3HZ1AGCpIt2rvYWoIkxcV7v1B/AOXCt3NvMPFdFnXgeiXa2XHy04fvJwMbPWrGRIbl DcZoGoErF+p263W1yhbhkLfQJe5sXRiHqs9Wv2z7QPnQO2Vvg2qe6XTnQbZodyIshCCR Kv3Z7ES4kvtMGazeA7VSN8XAcIKJmwUL+GTFDP0Mc8A2YSYMo/YIhEU6ELp9ip2sD1Sn PnYfPWQ/hGL6wz3vkv1Isa6B8dX8GcZ+0gyaRJoafu47N8KDQPm/gN/96t7L6XSCxU5X vybw== 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:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=RgixHOC4KKphqTDNjO+JFitY6BYM03Mxe9+IG67pQW4=; fh=D6d5aNryYQiYyjenfSFWOT3594jRd4xJmyqVXmIxeQo=; b=gxy9yZg+7sPVWXGiqMGUXmu2F4SJ679qxTaIZxvvv9JCyHatrxnKDM7dpdYHJdzmxU k4gqnItBA83SZhGQBmHtyxh2/QtTlkSy9M54a4tJA7J/54yF8ug0GWmD0wYPS+4qtj6J ikYnhKOvOTPkOuQ7Tp+hsJySnFahW8/yl4Mhvz4zs4+ZHeU4nuli0yu+2FZvRHb4MZXK GAB6anLKs90Lh7Oi8jmRbdWA+xV8WuH81405evTWJ+se0vkq9duoZ/PVIpZrCE+Bj/rU 1v/B+AfN7SLSlZu0emnVNz7Rp102Jf9tbSPr6NLh7sQOxb0aQKsb+ZR/pCu2d3/ObJsF U0hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Z2PDbS4g; 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 c5-20020a17090ad90500b0025ea1c0edb1si258261pjv.146.2023.07.18.17.05.24; Tue, 18 Jul 2023 17:05:36 -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=Z2PDbS4g; 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 S230364AbjGRXvl (ORCPT + 99 others); Tue, 18 Jul 2023 19:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbjGRXvN (ORCPT ); Tue, 18 Jul 2023 19:51:13 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2A7272D for ; Tue, 18 Jul 2023 16:49:27 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1b8b310553bso48763785ad.3 for ; Tue, 18 Jul 2023 16:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689724141; x=1692316141; 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=RgixHOC4KKphqTDNjO+JFitY6BYM03Mxe9+IG67pQW4=; b=Z2PDbS4gr+5Nj7HMCcZWGl1tZ5vDnWWr9UFOQWyuTPq4Le6J/DFchZREN78jDoLiNt wTz7e++DKf3xxvC6DQWmhlq9LCfY+6KJt/akai9MDfl4MMETtQmADEUIv6Xp3eUItkoI NKXA4wzFrdqI7D5dAv6Q1VzIxZDb5WlT5tngMM6tJ9RELglZJ0tflV4y4Fx6tBq8Fkd7 IUaHstDT6jWDiTJMcGXK9/WvGtGUecGjPCcXL17rHlO1OrRDwY7hH4OFFmMTb1EkgUWD ajOHXv3Kb54FHrD7lrS77IvTEUoejEKSKqlZdb+IK0Gyxo6V/0vyTGpUfmajaUotfr3l le4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689724141; x=1692316141; 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=RgixHOC4KKphqTDNjO+JFitY6BYM03Mxe9+IG67pQW4=; b=AnwwZuZTDguTnibYn0WfyjEYIMaBUH/0KrmXT+hyt5jIE/n0yasMV00/XKvPEAWoUf tUZlDzhtuzx9O3NgNovg7qvihQxcQKyPey1OPSD+v+pQKap68vJ9LWHhWuFRIPhk2NpI PszuplmqA8isQEjBcR5U7UU/YotINHSqzJjGwQifJzdITN/kR2PyttcUhghCLmZUm0Ab TKvRTrdm3sk8cccUCmReqTvhrGFB6g+pKJx4SaB6clcnqbpjH8nsSGYpy9NF3rpvxQDJ RvkxqMXsqo/f/eVAYwEx7StHhwureqqT4XoM8c+QvW5gZ8ymXFbO1mhqCkAwa7Cynd9R 0XsQ== X-Gm-Message-State: ABy/qLYBJeZ/uzVYcORl09MAiWzjPu9ngjX7pG5fWalVc+bHWndtMsHQ FTw4B6ME5Vzicgylid1C9P7PfIEH+Uk= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:d2cf:b0:1ba:a36d:f82c with SMTP id n15-20020a170902d2cf00b001baa36df82cmr7700plc.7.1689724140625; Tue, 18 Jul 2023 16:49:00 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 18 Jul 2023 16:44:58 -0700 In-Reply-To: <20230718234512.1690985-1-seanjc@google.com> Mime-Version: 1.0 References: <20230718234512.1690985-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230718234512.1690985-16-seanjc@google.com> Subject: [RFC PATCH v11 15/29] KVM: Drop superfluous __KVM_VCPU_MULTIPLE_ADDRESS_SPACE macro From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sean Christopherson , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 Signed-off-by: Sean Christopherson --- arch/x86/include/asm/kvm_host.h | 1 - include/linux/kvm_host.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index b87ff7b601fa..7a905e033932 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -2105,7 +2105,6 @@ enum { #define HF_SMM_MASK (1 << 1) #define HF_SMM_INSIDE_NMI_MASK (1 << 2) -# define __KVM_VCPU_MULTIPLE_ADDRESS_SPACE # define KVM_ADDRESS_SPACE_NUM 2 # define kvm_arch_vcpu_memslots_id(vcpu) ((vcpu)->arch.hflags & HF_SMM_MASK ? 1 : 0) # define kvm_memslots_for_spte_role(kvm, role) __kvm_memslots(kvm, (role).smm) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0d1e2ee8ae7a..5839ef44e145 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -693,7 +693,7 @@ bool kvm_arch_irqchip_in_kernel(struct kvm *kvm); #define KVM_MEM_SLOTS_NUM SHRT_MAX #define KVM_USER_MEM_SLOTS (KVM_MEM_SLOTS_NUM - KVM_INTERNAL_MEM_SLOTS) -#ifndef __KVM_VCPU_MULTIPLE_ADDRESS_SPACE +#if KVM_ADDRESS_SPACE_NUM == 1 static inline int kvm_arch_vcpu_memslots_id(struct kvm_vcpu *vcpu) { return 0; -- 2.41.0.255.g8b1d071c50-goog