Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp139633lqp; Sun, 9 Jun 2024 21:29:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvCWZZ550pgIuHudZiGWzU6m1Svv08B2Kh1dFSq3NWvPXFjmrTqJqW505Zu/TQdQCpxbOWqPetZ0tQ85vpTSYibYeqWwX/vp8Yu1h7PQ== X-Google-Smtp-Source: AGHT+IFVaIeouRLLFO1zcOi1Eax6uKfyD+HK2wq3hjdzLfPFO3fDb6bkwllb5InyaMzb0YeTGaqD X-Received: by 2002:a05:6e02:12ce:b0:374:99bb:8b30 with SMTP id e9e14a558f8ab-375803d965dmr85090925ab.32.1717993767532; Sun, 09 Jun 2024 21:29:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717993767; cv=pass; d=google.com; s=arc-20160816; b=HTRKtNguO6rQ74ykDysBRoAzIss9UJZYeHibWhQlyrf1BVd6lUcDTdJ2MQa5MeRyjG uneFS8cRTyBfMSdMUBTaLJKbGmk7KYYqOeBlgbRpY1P6iSlWwWptEvSTaS9dhTR9WQdH PH9JXzHFvpRfBsK6YBB4rjlJtTYtaHp19zunfu+V7QZ1jSD80qvy7f09fYKfCbKjVYRk vuYT7mkkQsFEKYpRsMlBG33R0NcoHDrqBDQIIuLstRVYfa0uoaQrtHRLJUrGJZh+3MEb lTbCCvkNP+XUHVyGqJEvzc9nt2ZqJmLxJ41NUoiL6eoW3MGzXNqbi/iPrmui/JsQp65T ESGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=dZ0M1mMkyIQjD9GHv7ILLIsJEt6S/v29bdhzDaDdHV0=; fh=opXV1WEp03kbeubOZloyb10FoNtntQdRllRWblbVMRI=; b=mzul8qrpLD9BbW8xrOUfCX/Egt4vd4gP4BWbjlkmo3ZbMiLT873G5VsVr9XjVINqIH dxKPMfNrbuZBJJ3D/hhmW2al4cjnYtHQEjkjef8aRQxEPw4X2SUEwCh1KTbTxuntUm0W X8bee6c7FFmU3E1ZZXxb5fnBP5bfZveWqlqRkKy6D1r9Z3M9Kf9nOYMopAUhENtgust9 ySDZKTxdeS0da9j+mmjPuNbMmbGemzKBM7XLillJXX0ebxxtvaap2FtfMbtc8lvIlOGg OctoGIfny14hX5sOJa5ZovyjwM/tAbDuc4PxSoKDVONXdg8KTsIxZVHxFNPela3oiWic nr0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ouS1aMbV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ouS1aMbV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-207615-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e9d02469c2si2550214a12.640.2024.06.09.21.29.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 21:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207615-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ouS1aMbV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ouS1aMbV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-207615-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 21886281E10 for ; Mon, 10 Jun 2024 04:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A82FDB65D; Mon, 10 Jun 2024 04:29:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ouS1aMbV"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="xMKg0LFz"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ouS1aMbV"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="xMKg0LFz" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 5CF492594; Mon, 10 Jun 2024 04:29:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717993760; cv=none; b=RldCTALR/H0pa49mj73x+H88MZbvoZ47Ssy3rx1ayU/NNd6bcJR9ais0QzwLxGX0mBYUiz2PwHavpeTWnsk5O47brIHWb5XSA8Nm9/NA5BzSScqV2IqpJ04LrXULwIkld/HIlHLhDZvQeKrtFOp4qd2w/W5olcq0J3mv7yHBGJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717993760; c=relaxed/simple; bh=Bs/nYembIxGJ7IgdXrW97nm3aE6kxFEAObIdWWF6dFM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iisyzG1Pzzutv7y4YOnhCh2q1WrQcNuRXAiEtkE6WRT0TnBEhgaeq34AI8rBL2H0kAZukCF7vlk4zBByi5lfd7KkvCVR93kBT4S8LSoOFU0aR864IonmDTXlk7prWcHIAOzoKEIw5czj5ijDPD5RVbGObEbJearB0iKHUt9AG7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ouS1aMbV; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=xMKg0LFz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ouS1aMbV; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=xMKg0LFz; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6FD4C1F76E; Mon, 10 Jun 2024 04:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1717993756; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dZ0M1mMkyIQjD9GHv7ILLIsJEt6S/v29bdhzDaDdHV0=; b=ouS1aMbVEZAQVmHrDj9M+xsCMzi5lTc6/jUPSYA+SppS+h5NEBGkqZ/xLzWibfr8WOv/o9 cc8rOjHzymZljwOTKMr5dRcYBGcH8jm6EnAkfFpJkmjP6ECb0c8FE+m96t+996chAS7XNW bCBh8iHhcqz1FH8y+Mtdlf61/swOKLc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1717993756; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dZ0M1mMkyIQjD9GHv7ILLIsJEt6S/v29bdhzDaDdHV0=; b=xMKg0LFzrRdT0JzUutNU0hVH0KB4afQ7p5Tw5Clmij6qnvVx6ObtCh65qQCvh1PUPif7Vq EyZx8fBScE2Fr4AQ== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1717993756; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dZ0M1mMkyIQjD9GHv7ILLIsJEt6S/v29bdhzDaDdHV0=; b=ouS1aMbVEZAQVmHrDj9M+xsCMzi5lTc6/jUPSYA+SppS+h5NEBGkqZ/xLzWibfr8WOv/o9 cc8rOjHzymZljwOTKMr5dRcYBGcH8jm6EnAkfFpJkmjP6ECb0c8FE+m96t+996chAS7XNW bCBh8iHhcqz1FH8y+Mtdlf61/swOKLc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1717993756; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dZ0M1mMkyIQjD9GHv7ILLIsJEt6S/v29bdhzDaDdHV0=; b=xMKg0LFzrRdT0JzUutNU0hVH0KB4afQ7p5Tw5Clmij6qnvVx6ObtCh65qQCvh1PUPif7Vq EyZx8fBScE2Fr4AQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4E42513A7F; Mon, 10 Jun 2024 04:29:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id IEF7EBuBZmYbGAAAD6G6ig (envelope-from ); Mon, 10 Jun 2024 04:29:15 +0000 Date: Mon, 10 Jun 2024 06:29:13 +0200 From: Oscar Salvador To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, xen-devel@lists.xenproject.org, kasan-dev@googlegroups.com, Andrew Morton , Mike Rapoport , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Eugenio =?iso-8859-1?Q?P=E9rez?= , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Alexander Potapenko , Marco Elver , Dmitry Vyukov Subject: Re: [PATCH v1 3/3] mm/memory_hotplug: skip adjust_managed_page_count() for PageOffline() pages when offlining Message-ID: References: <20240607090939.89524-1-david@redhat.com> <20240607090939.89524-4-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240607090939.89524-4-david@redhat.com> X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[23]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:email] X-Spam-Score: -4.30 X-Spam-Flag: NO On Fri, Jun 07, 2024 at 11:09:38AM +0200, David Hildenbrand wrote: > We currently have a hack for virtio-mem in place to handle memory > offlining with PageOffline pages for which we already adjusted the > managed page count. > > Let's enlighten memory offlining code so we can get rid of that hack, > and document the situation. > > Signed-off-by: David Hildenbrand Acked-by: Oscar Salvador -- Oscar Salvador SUSE Labs