From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.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 DCA914C8FF4 for ; Thu, 2 Jul 2026 09:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985801; cv=none; b=Xn/1+l0ohnSjyIqIU4VmuS5LR077eC40es8R6mVbxEMAIKM/zfMEF8fmzDlZ8vhQZvu2UJ+T9mywueO53UC34B3obpDx/96HzJ8gW691yi6yf484jIHAToApci2S3gfldAVDzYxvXHjumfKZJfr4j80GxJyeeyzDaABbePNYPio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985801; c=relaxed/simple; bh=Q3JRniqkyMXg2dBXWW+1anuwJps6VyhynpsJv8q7DjQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DspvO9RBLE6pq1PJEKIDBB3+RBn0uRrBZ0NjhMbR/YO7lD7qtKJVNA2369daR180A1ldMI61mGlAvWQuTFDYUZteh9mAxFzi5Dl5jUfjsj4pYFApuAWI2KOMOqJphbDktn3DKhgwJI3W2n/v4i7xVhr4ArX70OW9T/Y0P1nMUo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Ghb+4EaG; arc=none smtp.client-ip=209.85.221.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--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Ghb+4EaG" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-476d52b13d7so1484195f8f.0 for ; Thu, 02 Jul 2026 02:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782985798; x=1783590598; 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=84+Rn6wYUXeYiLyW3+xzYg/p7pJRku5hcVgAFmLjUag=; b=Ghb+4EaGI3XH/NReZ0EPotZY9bNO6UOXHFjtqXyJykFX/ZUi/M5FghYdt5tgNVT/v1 hcVEdJHzmBbYqLGssfIE/R5/7K+2wyuwz22D4P/H3tOOAuCLHfdeDBDgNdI1PqCEOFvf IM5ZgIYMJOC0PWOX6ghLagYpaB7iiC380u5s6mXftv+EyAdw6isOd47UairzwyJmBbPX wFhKBbeA0/go9i8Ps3ymN81LrrPYevmzAYpQO3zadg6nvGqkc6djVxlBemnChovAQDHP +ELi7EHSJU3TrpJOnRhum+WCiMzuX//xfH+4fwFrW8ynxfHa61N9v4mmhLwtWIoUiqZj 9kFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782985798; x=1783590598; 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=84+Rn6wYUXeYiLyW3+xzYg/p7pJRku5hcVgAFmLjUag=; b=gMRqVQqAl+yRDbyefeFweyVZgqFEigamomKJbGE4jcTDrB+kVcNy8kyXTdg0szcv6T y4oZjcVYUgMvQsqvFN5MESfHum5mS3UnL/2yPWmCvBrE7vna8+qVZeN6lZwkRSIAlT2S J6iwoSdhxyF/g/ew9Yz3xMOG7n3nOBJq8+V9b3kovKRIND3gYgTkOwOYqbfey+UGDxKx O40gbRMAmeqji98k4rqsugAd9d+rdvFQ3eFYP9rriyyzXcHao06TXOQ54DkXIwp4IoH3 rlVDTqaSU6B2mu9HRDrsnhaXMR767b9UfPoHepTsb2mf6swANuoPHc5Ib2T7qldt9Xqy JJCw== X-Forwarded-Encrypted: i=1; AHgh+RoNZ6mpGOz+W8z3KybxDzkXns3Efo06HrTCQ2BRDbSSbOeoEQjo6EeLOBUP+EfjOny6I5Q339XIODB0z9A=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5z9uNqHAvXKgryVlaOR1aWu5nlU+63A7JfxgIVHoW0XmbK1jS ps869JzY+Ze0hqD5VznwXugfx2LBxhedZN/2k8WtwpDNnv+EaCzZkUBfy2AUxtit+IaTKDY1XbG VwfwsfBxVtrDfKA== X-Received: from wrbcg15.prod.google.com ([2002:a5d:5ccf:0:b0:46d:32b0:5fa4]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6000:420e:b0:473:c18:f2cb with SMTP id ffacd0b85a97d-477af4f8f3dmr6971262f8f.18.1782985797975; Thu, 02 Jul 2026 02:49:57 -0700 (PDT) Date: Thu, 02 Jul 2026 09:49:40 +0000 In-Reply-To: <20260702-alloc-trylock-v4-0-0af8ff387e80@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260702-alloc-trylock-v4-0-0af8ff387e80@google.com> X-Mailer: b4 0.15.2 Message-ID: <20260702-alloc-trylock-v4-9-0af8ff387e80@google.com> Subject: [PATCH v4 09/18] KVM: VMX: Use higher-level allocator API From: Brendan Jackman To: Andrew Morton , Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Johannes Weiner , Zi Yan , Muchun Song , Oscar Salvador , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Mike Rapoport , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt Cc: "Harry Yoo (Oracle)" , Gregory Price , Johannes Weiner , Alexei Starovoitov , Matthew Wilcox , Hao Ge , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev, derkling@google.com, reijiw@google.com, Brendan Jackman , Yosry Ahmed , Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org Content-Type: text/plain; charset="utf-8" The difference between __alloc_pages_node() and alloc_pages_node() is that the latter allows you to pass NUMA_NO_NODE. The former is going away and the latter works fine here so switch over. No functional change intended. Cc: Sean Christopherson Cc: Paolo Bonzini Cc: kvm@vger.kernel.org Assisted-by: Gemini:unknown-version Reviewed-by: Suren Baghdasaryan Reviewed-by: Vlastimil Babka (SUSE) Signed-off-by: Brendan Jackman --- arch/x86/kvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 2325be57d3d75..ad6a7fc6a54da 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -3028,7 +3028,7 @@ struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags) struct page *pages; struct vmcs *vmcs; - pages = __alloc_pages_node(node, flags, 0); + pages = alloc_pages_node(node, flags, 0); if (!pages) return NULL; vmcs = page_address(pages); -- 2.54.0