From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D0D262801 for ; Wed, 25 Jun 2025 14:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750860202; cv=none; b=E5h0U5SO032sNrSe9eoSBYNKmIgDdxE1YjzLIZzGcPXX1qPNk3TyL4khIa8Vd1kM9tGAunt5RknB2VhlmBgLjRz32C/NC0KFr7lQOqltt4KaMtYpi0Cl3j/Zgc3JbnRgCqsJ+DUSFYwj2K671XRckIbxKARW86M9trONLavMW6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750860202; c=relaxed/simple; bh=oSn8aYDBwOVsGZBtcp8W1lJNZEOJOPKnDHPf7p7wKzE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YK5rg+1sfJoZLpnH9YH71Rh2ZVpU9iIqvu2JXwRqYTkmdYWwtxh8QKWD+T2AacyBw5/gDmTHAYEH7XAOYr1Nj7nShtrMf91okyDzLNVje49CmGE2VIfV54d5VMudSM/MXEJxJ3OWfDedivwJUJCM+wFWhUD4La02J1xnUvinXNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=T8Fk7up+; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="T8Fk7up+" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-235c897d378so15457675ad.1 for ; Wed, 25 Jun 2025 07:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1750860200; x=1751465000; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=3YRJII8pCdLW2ImwCfhoApg2mNV52pabTRz+63LafFc=; b=T8Fk7up+RiT3gfkU5V1yucoM288t4F7ZkCzFvjz2lGGQO49TdoSUw3fZ5QPWIpdrlQ YbKf6jVnYRlJumWl2ENL1BmV4C3g3uiuVfMaGC6zA0NtN2DC6wVqWHmec6NnJZE18eWC OSvBrM80hguqT6J3sUF3nczxjjs+YqufWAUXa5jOz1OC2HZkwbKgZYR+LmCXNba4yLLx D6XokNn8kqrJCF5xImnypOJMvYtSrOVvl954w2TpjlMdpgXy/8RwKDhwzcsXBuDRPf+A yE6SlkhrK66+fyAlr550yhe0FHrLUVhnpNg0nx8Sjht3Y3Edu62bFbja98imORXLlyND eLQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750860200; x=1751465000; h=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=3YRJII8pCdLW2ImwCfhoApg2mNV52pabTRz+63LafFc=; b=TzQCs6BRL8xsBYsnQol9Cw+UTrsZ+P9TCVA3RvArc/4ygUjtOf90av15XmJuHLQCEE OkdGo9HLoL7BBlTnQ8CSJOfsXuqF6bnCGLMTgu58xuGbKx9RSaVqn7cZobSdjWxyVoxQ GNgG1g34ImpXwj9bu2FBnuu/HLDKtWnn2AvLZBVp8I7ri0HmqKtUVMiyG7luiVeKHNCv YcbjtGpQ7DPjD1v0xn9RkL+YTVl5i4C4pF9FgBJWQKXb6mQl1OnBq3L2PVw10+9jwige 1FdbK5khhVAl0oLspHd/rJBARAxpampo12exBG2HySX89XHZ+XEgKiwYAovsnMTzOh7G EEXw== X-Gm-Message-State: AOJu0YybIOGxKP8AJeYmksACvnrO88yyJ1ZOSMVqhruXlWq1cUQs3pwA O8OGI5iOvmA3aQQBN0xyDp7JZTpaEkjGYffhz6laj/619z7uCG+1kUbc2h/8r1HM+WtECkZmo9h MBdfALw== X-Google-Smtp-Source: AGHT+IFRtZBV4HtJQNLgaZY/PncR/dkJpNjxC1l7beeBFFZHiTSO5jkDC7b1biZ3vWvgDQjI6sqkJMk8vqg= X-Received: from plble7.prod.google.com ([2002:a17:902:fb07:b0:235:85e:1fac]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:41c3:b0:234:a66d:cce5 with SMTP id d9443c01a7336-2382407fdf9mr55258965ad.46.1750860199804; Wed, 25 Jun 2025 07:03:19 -0700 (PDT) Date: Wed, 25 Jun 2025 07:03:18 -0700 In-Reply-To: <20250610175424.209796-13-Neeraj.Upadhyay@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250610175424.209796-1-Neeraj.Upadhyay@amd.com> <20250610175424.209796-13-Neeraj.Upadhyay@amd.com> Message-ID: Subject: Re: [RFC PATCH v7 12/37] x86/apic: KVM: Move lapic get/set_reg() helpers to common code From: Sean Christopherson To: Neeraj Upadhyay Cc: linux-kernel@vger.kernel.org, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, Thomas.Lendacky@amd.com, nikunj@amd.com, Santosh.Shukla@amd.com, Vasant.Hegde@amd.com, Suravee.Suthikulpanit@amd.com, David.Kaplan@amd.com, x86@kernel.org, hpa@zytor.com, peterz@infradead.org, pbonzini@redhat.com, kvm@vger.kernel.org, kirill.shutemov@linux.intel.com, huibo.wang@amd.com, naveen.rao@amd.com, francescolavra.fl@gmail.com, tiala@microsoft.com Content-Type: text/plain; charset="us-ascii" On Tue, Jun 10, 2025, Neeraj Upadhyay wrote: > Move the apic_get_reg() and apic_set_reg() helper functions to > apic.h in order to reuse them in the Secure AVIC guest apic driver > in later patches to read/write 32-bit registers from/to the APIC > backing page. Please squash this with the next patch that moves apic_{g,s}et_reg64(). Calling out the need to access 32-bit registers is weird and confusing, and gives the impression that the kernel doesn't need the 64-bit accessors, which is obviously not true.