From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 651DE3C1967 for ; Thu, 15 Jan 2026 18:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500404; cv=none; b=ny2ozmwstKcU/vUnoVXo8VrxtBnCzg26cMsPWKVzaFDSxw6IkadbNrgt2igOp7N+19TrGziCKCoWkH5UnfK07dZQmPsduyviU0hkXmZh/4nrQ4TIqmqxPud4u+kM4mbJjIGa5j23a5KmcQWOzne+IOY3z5yLfdJtgQ+cxcnDxQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500404; c=relaxed/simple; bh=0aeAyBDnKHvIDtFU+Bzc5NiOeUlTvSEwhy1kNLPL5uM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RcHjAMwzAxJovrFWTBkoczVKOAbzd1q7M9tgVglmpyOHKpWkBEyiO4SurpGANPfs5yVeKV3B6b/kuuh3yx+vcuwzRF2znd99b9tfKpFZAU9mBlMWZYa5BTiluRtlBKLDlgpNEsCbcD3G1OgxG2ourIgVI4M8H4k3lDF/nbCM5YY= 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=CHkPA64o; arc=none smtp.client-ip=209.85.216.73 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="CHkPA64o" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-34eff656256so926678a91.2 for ; Thu, 15 Jan 2026 10:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768500403; x=1769105203; 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=+eJGb5mqNQAqOeMXHCtAlnLfiPVzW38r+Joh5J+UmC0=; b=CHkPA64oPFUPmM/yvxys4cdMwfg/eywX9vMeF3sXxMy89KDuNh1s+WlRrj9Ss7fAx5 +Pv+LEDdT0inICxMP/SysXgsNEr20ar8w4KscMnftt92a4+HZgPOS6aa5oviBXgu1Tio QV9S2MzxiJd9xYB3iPZjScNiYAZA7CBWSOkKV/8H602FcsOzQ1/YwBL+irvx10+nI7ot RkyFAmUtoV6F10j3v4y9x2TnT9qJjr0weh4bg355Z4rAZjsX7XVi8xOvHyiqMX1AARBW fL8GPR43UOsmFx0RvuQIKYZa9DAHfgKtqyF6dTrzs4VezhB6jezIIpFlZT+tUEqoIlRu +oDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768500403; x=1769105203; 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=+eJGb5mqNQAqOeMXHCtAlnLfiPVzW38r+Joh5J+UmC0=; b=JgpZKwWC/jpsqh755Oa2LdjIPFD+Q4eYrIMwSr+7OozyDMI724RF6Jn+CLSvANcg4w wJRrgXOGW5wMrfnDfFJ9a+atvPzKpBvmcb/sTNkxWcet/KOKFM+L3LfAXlbTpYEZ91IF 1q/2HvIf3OaDF+Bs8mmGHK8rIhM9ikEvUb8qjLEO+R2EgC15rCblmO3PijpXPrlKDTFN tieCMOh0On0pAT4HsGParqRnKw2MvdupzXfc/snEQRFzYF6YSZyOSdCylxG1crQqaA+E u0IwCD0oBwm/xJH0GnIPPTEARpuHwqSkZ6OjRI5Ztsb/1hANFLOOEFO3+TN6rceys3Ra qh2g== X-Forwarded-Encrypted: i=1; AJvYcCXtKO1PTUHLSSFs6sEQ5bA9QNlfVxNcZThrA/yhl9oeoYk7U/TcrEyK8spVEf4AKFOmYqJ0tJcVWKEMs7E=@vger.kernel.org X-Gm-Message-State: AOJu0YxFagWSru/k1pvjVxnZbpc8CrNFn5gMcYMwk9h0pi01f7OUIm5Z EBxEwQCG6VCwQ9+x1UUVVrQT+fxobrwlPbhEwB7+lSE2Sti3l7H2A3FB/6vgLr/HdPg1H+ZAd8u 5oAbVBA== X-Received: from pjbft22.prod.google.com ([2002:a17:90b:f96:b0:34a:ae36:b509]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90a:ec8d:b0:34a:b4a2:f0c1 with SMTP id 98e67ed59e1d1-352731666e3mr191679a91.16.1768500402658; Thu, 15 Jan 2026 10:06:42 -0800 (PST) Date: Thu, 15 Jan 2026 10:03:30 -0800 In-Reply-To: <20260113171456.2097312-1-yosry.ahmed@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260113171456.2097312-1-yosry.ahmed@linux.dev> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <176849723890.705555.5039008421742485282.b4-ty@google.com> Subject: Re: [PATCH] KVM: selftests: Slightly simplify memstress_setup_nested() From: Sean Christopherson To: Sean Christopherson , Yosry Ahmed Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Tue, 13 Jan 2026 17:14:56 +0000, Yosry Ahmed wrote: > Instead of calling memstress_setup_ept_mappings() only in the first > iteration in the loop, move it before the loop. > > The call needed to happen within the loop before commit e40e72fec0de > ("KVM: selftests: Stop passing VMX metadata to TDP mapping functions"), > as memstress_setup_ept_mappings() used to take in a pointer to vmx_pages > and pass it into tdp_identity_map_1g() (to get the EPT root GPA). This > is no longer the case, as tdp_identity_map_1g() gets the EPT root > through stage2 MMU. > > [...] Applied to kvm-x86 selftests, thanks! [1/1] KVM: selftests: Slightly simplify memstress_setup_nested() https://github.com/kvm-x86/linux/commit/f756ed82c62a -- https://github.com/kvm-x86/linux/tree/next