From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752340AbdKHL5p (ORCPT ); Wed, 8 Nov 2017 06:57:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbdKHL5n (ORCPT ); Wed, 8 Nov 2017 06:57:43 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com ACA537E386 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vkuznets@redhat.com From: Vitaly Kuznetsov To: devel@linuxdriverproject.org Cc: linux-kernel@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Alex Ng , Dexuan Cui Subject: [PATCH 0/4] hv_balloon: fixes for num_pages_onlined accounting and misc improvements Date: Wed, 8 Nov 2017 12:57:36 +0100 Message-Id: <20171108115740.911-1-vkuznets@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 08 Nov 2017 11:57:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While doing routing code review I noticed that commit 6df8d9aaf3af ("Drivers: hv: balloon: Correctly update onlined page count") introduced an issue with num_pages_onlined accounting on memory offlining. Deeper look showed that the accounting was always buggy. This is fixed in PATCH3. PATCHes 1 and 2 are preparatory cleanups, PATCH4 adds a tracepoint to post_status so it's now possible to see what's being sent to the host and where the data comes from. One more thing: currently core MM code forbids offlining blocks with reserved pages in it, I plat to send a patch making it possible. Tested with WS2016 only. Vitaly Kuznetsov (4): hv_balloon: fix printk loglevel hv_balloon: simplify hv_online_page()/hv_page_online_one() hv_balloon: fix bugs in num_pages_onlined accounting hv_balloon: trace post_status drivers/hv/Makefile | 1 + drivers/hv/hv_balloon.c | 121 +++++++++++++++++++++++++++++------------- drivers/hv/hv_trace_balloon.h | 48 +++++++++++++++++ 3 files changed, 132 insertions(+), 38 deletions(-) create mode 100644 drivers/hv/hv_trace_balloon.h -- 2.13.6