Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4034742rdh; Tue, 28 Nov 2023 10:01:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH84jIP+X1biWobL85V2TNZFmrytqN5hUKizoYEGQIr3oymz/AAzX9JJSdzhokk8ZJMyoDS X-Received: by 2002:a05:6808:1391:b0:3af:8ed3:d7a3 with SMTP id c17-20020a056808139100b003af8ed3d7a3mr20689686oiw.54.1701194498610; Tue, 28 Nov 2023 10:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701194498; cv=none; d=google.com; s=arc-20160816; b=d4GELMCwlvJl0H3PaBbv1Toj/aUNwGTeeB6iH7u2uDL7wcHj+Aub/j57ZsXgQbP5Lx 0Y6l6YR4rAXtQP4gUf2XvlhGB7xbLxPvmdbisvB3xF6l11KCpzhLUrMlSVidY68gzGfS K0TeId2XcvCcp+BUkJTaQzVGfKejl3wgUUOiSmTV9YE+z/1bDGEAgZC9jIYWxfsGYv/a 4km/4ylg+An6xk5Vdz6NIRab12h8yu9QTOnZhV6DZeGC7ha2U5yUI8KM16SXvZz2nP6l 8x3AS5BDB1PKq4RXh1fx/WJTciPkgwkRAOnT/Mckt0L1i/2tXHBNiBkMrzEG11lJdVWg 6lAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=eLq05PNDVda9aScY/SisztbkXwqXqd3sYjTGw5PUJeI=; fh=QSqEFYjPU2LewDEg7uI+vSNzLzusORLsFtFQEKuZpsM=; b=FO6zMvsBK9C0JOxfWz1JvwHFe94BDt7u3MPtoY7r020Xa2o5iZDykOoxk0S3fmNMqG pyiVSCbsiFrgAo/nWWcbEEG8DkXeFapVLn61DH08K360SygTyK9kzz5ACFrp+YAgIYyY 2+zBQIQscxkHl3Pw3QCWvjnR2GjWPE+f0P/cGTVUcbb7hEE6/jc+oHvK7kSF/BP3gqs7 0+q7e7wMIiC1npkrhvISamFJ7cnKQ2BuGYB+zgrIu1amZB7E1HgyJc1G6vOSqpmUuz2L 1y9VW6Q45KY3ePCKhWfJ4oyhAPg8dvsitjhbM3Aj58LT7InbmkzYwetWTdoP8g75xPZ6 2gdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EFDaRbTO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o14-20020a0568080f8e00b003b844e2b74fsi5301162oiw.9.2023.11.28.10.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 10:01:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EFDaRbTO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 553F280964C8; Tue, 28 Nov 2023 10:01:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346569AbjK1SBV (ORCPT + 99 others); Tue, 28 Nov 2023 13:01:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346369AbjK1SBU (ORCPT ); Tue, 28 Nov 2023 13:01:20 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B6011A5 for ; Tue, 28 Nov 2023 10:01:27 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-5c1f17f0198so5047354a12.1 for ; Tue, 28 Nov 2023 10:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701194487; x=1701799287; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=eLq05PNDVda9aScY/SisztbkXwqXqd3sYjTGw5PUJeI=; b=EFDaRbTODs3BrLwQvjzLNpQxJURlV70rN4ctLh/5vrYOgTcW20BBhtPEHzoxVPzZtB tJ8Nj4QGZoqT0v2D+pNr0GbnzcilrX0TLY6wFgm0HuMYK4TZp5E2bmYfzp6MiycbtZMD z6smNynd+a1HNprx8/XMHmqAiDwxJ6y5w0YQ/xRY9BkYN05qg4JdFUCJ7K45NdgylMSC 8JjDR403Gd6pBeLRjNHFc2JUk3WEs7Blni3P1BvWjneSrJKxS2wRk/CpIgCKavc+MCTX 1gXOOxIj7RV4Va3fPGirpnH8O2T1wi603kCsBHtNAwQ9NpuUgbdLcIY3kCM8TiLgkkB9 OVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701194487; x=1701799287; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=eLq05PNDVda9aScY/SisztbkXwqXqd3sYjTGw5PUJeI=; b=hMfjR9JI/Gqh/Q1JPSqO0v4eGci1T4RNTyhHUe33Q4gSe5Kz90Zxacnx2Wp9MgdtWV BGsxFptkjl5QOF09wJ3An1Zuf7pB/qN5zqgTweDrdUSif9ahnvBX3ioa1mmMTl7UHQXp vx7eLtrquqoCzCqT2lPD2/gnuovjBEL91b3+UsXQTr5o+oobFmTzahxKeIJyZta3Mnj8 1GTGLrDIm3wmS51x3C0p6F7HCGSJhQv+aoxOFIPAJv9dRqF23aZ+NRcAqV88w7WWkhOy gXNLfmm1nHibppgYSQKBqIt6l/9LQXbGWsWDiAJOJrPw6/tOiyA56qpytOGl726NIjZl +fhw== X-Gm-Message-State: AOJu0Yxv6GXW29bM71i1Hw5LqdM3r67ylVvsUoTx7O6iPxb+PBRVtVkX iEihCsjxD5Zi2WVFeYogMPUQKifzV2Y= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a63:4a:0:b0:5bd:bf7a:d167 with SMTP id 71-20020a63004a000000b005bdbf7ad167mr2483762pga.9.1701194486901; Tue, 28 Nov 2023 10:01:26 -0800 (PST) Date: Tue, 28 Nov 2023 10:01:25 -0800 In-Reply-To: Mime-Version: 1.0 References: <20231107202002.667900-1-aghulati@google.com> <20231107202002.667900-10-aghulati@google.com> Message-ID: Subject: Re: [RFC PATCH 09/14] KVM: x86: Move shared KVM state into VAC From: Sean Christopherson To: Lai Jiangshan Cc: Anish Ghulati , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, hpa@zytor.com, Vitaly Kuznetsov , peterz@infradead.org, paulmck@kernel.org, Mark Rutland , Venkatesh Srinivas Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 10:01:36 -0800 (PST) On Fri, Nov 17, 2023, Lai Jiangshan wrote: > On Wed, Nov 8, 2023 at 4:21=E2=80=AFAM Anish Ghulati wrote: > > > > From: Venkatesh Srinivas > > > > Move kcpu_kick_mask and vm_running_vcpu* from arch neutral KVM code int= o > > VAC. >=20 > Hello, Venkatesh, Anish >=20 > IMO, the allocation code for cpu_kick_mask has to be moved too. I'm pretty sure this patch should be dropped. I can't think of any reason = why cpu_kick_mask needs to be in VAC, and kvm_running_vcpu definitely needs to = be per-KVM.