From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 7C1B813D53B for ; Wed, 25 Jun 2025 14:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750860285; cv=none; b=tcosgx5vYd1CFedk2DdozVPiOQCLISzo70y1ISkqh1kUinu/e/zeUPE2nFHDKkNHidufBT9vujG09TK/OjXJsmeH0lhRoZ1zb+43yNK5py9aXS4K+hZp/fLWtvb9xwcyb+fP2K1Sf0h7TkZehCrHAdGB37zypfuA5OUCbR12WQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750860285; c=relaxed/simple; bh=Vthl9OCrzwfCk7xPuvCTsc3MueFPT7P68ongcIgychc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=m/t6kU5X+icUL7MaP/cTUmNOU3LmrXyAW0L5wQ+kucWiK0Wl7RxRU4rgXFGTyX313rrGu+2VZTAzdIuFg41WfwmshRlsYAer0r/SyktiUarGMto1ixbrBMcZ/R2vS8zcLoI6xRA8NzEn/U209ioUJAK3KH5FlZaP5nPk91keSIk= 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=FB2TnfNb; arc=none smtp.client-ip=209.85.216.74 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="FB2TnfNb" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-311ef4fb5fdso1707943a91.1 for ; Wed, 25 Jun 2025 07:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1750860284; x=1751465084; 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=CDvIuTgl+znbHfx7LTS8xADVgYyXuhd1FSun0CfTI70=; b=FB2TnfNbFH2QUZsE+fKZ58O4cd6nfI4mSw+p8itO0Y6D0pD7Wd61UKtRF3oXQBEoFP TqVQRh3ERqdK4NXdPr94jt3awiGvPp2MlFkFcLW5b4aIdk5RRtQ6GfJOv3urrw4VXeJk bdiZuqSCv1AOP9EOMAj+liOryCpxvePFT2B5EhKfmt13Gfhm2PwwltJ3WbvSArLsv5Zw huW4pACfqDHO4uEvFVz+sXBrYMed0mDBNcPkqZbsUkLjDsGjHwQw+hXRRjzMND1Z5KaR 1moMUR7fuAjgt+GEPkhKwfcStBbOpKRTmVOkogxd6SsA/E0/+ke66iWzCjA25Sv2PU1B P04w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750860284; x=1751465084; 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=CDvIuTgl+znbHfx7LTS8xADVgYyXuhd1FSun0CfTI70=; b=Kl0yoPXo1SW4HzNqT+tTnJOxFr5udnnT8/0Rl5TLZZLjfZs0H9tTHeNlKtn8UWPDIb wK1D+cFb7cfFNtBAdJpPCzogCbifRgxSZ9HkiqePF4UlqJqXYHQgqEca5l+Ut13lWp/p EuL5c9oWmTymM6Z+wDV97X+D+VHPkw7Pxrb3K3OxUOnbs48Ykq0hxRJlfVk2Xo7rgR9m xBXdR0JXtzqk4117eIyHLRGAIXjhVHpTHESaqNyJIH296kMOE1l5Iex0nM9LfnxcYPX1 tAyCEanFffKcz3vPG3ctp54rmLjZM0Jc9vgYsFFkUpS+b4EtErhd4aMOrFqAmZ3AbnY3 ASFw== X-Gm-Message-State: AOJu0Yy/fYLOVoP+3BrYJABLOLPiYvUfRXnul1yiIhionnIeUfdiPAcC IWDDqISR0F62L4Iuj3Oznrswk/WfrniDzT4py6c+/QbBRQXQK21SmSUcohwR9dGRT4dO6Eg9tOu T0ls3/A== X-Google-Smtp-Source: AGHT+IEQ3enfzMitrA+oVbep3hpNytaZrw7ErQnlZeO5UYmqKnZ+yHhtLYFmyf3cJj+f+3pa9tBgBoZ6FUM= X-Received: from pjzz13.prod.google.com ([2002:a17:90b:58ed:b0:314:3438:8e79]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90a:d64b:b0:311:ea13:2e6a with SMTP id 98e67ed59e1d1-315f25e985dmr4748652a91.13.1750860283615; Wed, 25 Jun 2025 07:04:43 -0700 (PDT) Date: Wed, 25 Jun 2025 07:04:42 -0700 In-Reply-To: <20250610175424.209796-15-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-15-Neeraj.Upadhyay@amd.com> Message-ID: Subject: Re: [RFC PATCH v7 14/37] KVM: x86: Move lapic set/clear_vector() 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" Pick one scope for all of these. I.e. either "KVM: x86:" or "x86/apic: KVM:". My vote is for "x86/apic: KVM:", because the "x86/apic" part helps communicate where in common code the helpers are landing. On Tue, Jun 10, 2025, Neeraj Upadhyay wrote: > Move apic_clear_vector() and apic_set_vector() helper functions to > apic.h in order to reuse them in the Secure AVIC guest apic driver > in later patches to atomically set/clear vectors in the APIC backing > page. > > No functional change intended. > > Signed-off-by: Neeraj Upadhyay > ---