From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (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 0C1D241D131 for ; Thu, 27 Aug 2026 19:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787859276; cv=none; b=e+U2JCrPH0NbjI6lU6quSzCyTarQIiAMmezmRb2L7UNLDWoECXCZia4R7KAukUwah4fpq5EEpctUboaX1qjU3SBNuFl/RQh4x+FqVHQQ7eGaTDSdxKtegUo5B/7E+R7eL+wkp9rKikMHW15G6YJUnErgAHTvfTARqBKJdHrBaUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787859276; c=relaxed/simple; bh=CXeLDMtwKsuAiRqbdkAJJBlPnxsxpXz1LOI6gpzsWug=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RowXmmjzXKQPwKeptZmqC2wgCAqVuEJQA5hWNRmJKQWFRyhEyfeVJ+qn/xvEE5UdJvoSjO5cLlvU7QaRYTy/xklmgDE5Y64HhEfvaU31sU02DfFVVUEB7B+kcNcN+jsm/+dlpeITB3E5q4DX4DzvWPlEMWQWpESCbwwBrl81ZBY= 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=wdD50d8L; arc=none smtp.client-ip=209.85.215.197 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="wdD50d8L" Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c856470fe9fso191880a12.2 for ; Thu, 27 Aug 2026 12:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787859274; x=1788464074; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dg12XoIFyQkc7HYpiPyGSu+F6pcgqgzKa/+pfUliURY=; b=wdD50d8L4JT+BhB+AquUE3INFIdI1x7eLia7hnubn0iVi+6WAGNH3rBIdS6aikf0z4 Z/Zr9OI6P0MdGlBksotUE43udsIfc9UtXILQvKuNChpSfs0f2wjXNpylRf7rsm84X7yu m8R6z/5ae+gJ8XpF/u7xYpzpf1CtnADkROSS0Xywzpr447uY2yBLrE+nWdAamFY+d9+P vUECMUhZ1yD7QDrYTC1MHAQGGy7HYKEB3sksBWKENlMGnpk4C6fMxJz0JDOov4uNL38v uwrx1WAP0+WjjQfjmKi29lPvakiloyoxaIgeMKvyAMIKpTT2LAZdrhXmL9tIBnnVVB70 DGRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787859274; x=1788464074; h=content-type: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:content-type; bh=dg12XoIFyQkc7HYpiPyGSu+F6pcgqgzKa/+pfUliURY=; b=gJWB7oQE7doiHQsh+hp2sttJ8eKJD1NiMsw8zd0soHmlMAfH52WTAdBRnK4RKxf9Yu 8OzvrSkvbO7rkTmwLcMwbJdZJ9wmnVjG6rF3MH/xdroRuX/oIufQu3siFg2oIQd0LZE1 rpIpO1j1sI+GAV5ob1AZHajpDXNoToD55x+RChANxxFbErc6ZdKvPt7M4vX6ilT5cHtE gF9uQrOaf/AiQ3GsKdRrqMhzlwRRyPUGTQPRaTLL/AsZEWJGP1ftssxpTBQ/BeLUbwA6 NaCPU8T2f+s5WNiLAqGTprbpxL3TtnCBLXLmLYf4p9T4BDQG0aRWtoLg1CdxN+IYy+B+ 32sQ== X-Forwarded-Encrypted: i=1; AHgh+RoztgVm9d2pwJvTV4dTsFp48mZ5hE1j3zT5uvJHUgf3PKN36robUHioWP13+AI2afmMa0uMuhzprOApQqM=@vger.kernel.org X-Gm-Message-State: AFuF++mGtUBkr02tSwIFm5SZjXMp0Vq/MdHqBA42I4QcjGeXRSJ/Lmpc T619S0fwcepf9myCzmVLZAUgqyuwGhEca5bzmDB9aFAnRUqagVplbsG9il6F1SODUVVk/bPNLqj PssYAGA== X-Received: from pfbf10.prod.google.com ([2002:a05:6a00:ad8a:b0:84b:77e6:b15]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:194a:b0:847:9267:2104 with SMTP id d2e1a72fcca58-85629a24448mr2685408b3a.12.1787859274040; Thu, 27 Aug 2026 12:34:34 -0700 (PDT) Date: Thu, 27 Aug 2026 12:34:33 -0700 In-Reply-To: <56ad5526-76c9-4cca-85bc-242a09a98936@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260826171246.777729-1-seanjc@google.com> <20260826171246.777729-2-seanjc@google.com> <56ad5526-76c9-4cca-85bc-242a09a98936@intel.com> Message-ID: Subject: Re: [PATCH v2 1/8] KVM: VMX: Move the shared "IRQs off" exit handler(s) to common code From: Sean Christopherson To: Xiaoyao Li Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Rick Edgecombe , Binbin Wu , Kai Huang , Yan Zhao Content-Type: text/plain; charset="us-ascii" On Thu, Aug 27, 2026, Xiaoyao Li wrote: > On 8/27/2026 1:12 AM, Sean Christopherson wrote: > > Move vmx_handle_exit_irqoff() and its helpers to common.h / main.c to > > capture that it's a common handler and > > > to allow guarding against incorrectly using to_vmx(). > > For this purpose, it seems better to put patch 3 as the first patch? Huh, yes. I have no idea why I didn't do that in the first place.