From patchwork Wed Dec 2 16:12:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 11946367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A95FC64E7C for ; Wed, 2 Dec 2020 16:13:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A9C452173E for ; Wed, 2 Dec 2020 16:13:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9C452173E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C3CA68D0001; Wed, 2 Dec 2020 11:12:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BEBD46B0068; Wed, 2 Dec 2020 11:12:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB4208D0001; Wed, 2 Dec 2020 11:12:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 92A3F6B005D for ; Wed, 2 Dec 2020 11:12:59 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 160CF362E for ; Wed, 2 Dec 2020 16:12:59 +0000 (UTC) X-FDA: 77548836078.21.knife55_3a0c473273b4 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id DB8E2180442C4 for ; Wed, 2 Dec 2020 16:12:58 +0000 (UTC) X-HE-Tag: knife55_3a0c473273b4 X-Filterd-Recvd-Size: 2542 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Wed, 2 Dec 2020 16:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606925577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mnMzbDEpi77RtO/Ws+e06k7eBfAFFroo39MhnBjLVjQ=; b=PbyxQDHZCA+dazSpK32DWzmgr6w7zboDtQ54vzIkvk2fK6wzHEIvVvDbJ4A7NuwsLxC9Tg TU0Bv7KwVOPgsxK01FYLlF0FG+MkfbDqofC5M02TesjvzbGicdjCZT3mUyZ6PtD1dQ+mAd pw0uTYCN0UC3kkLHWrq4P0YVuHsczZE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-37-e9LXZ4EmN-280v1-3L1PrQ-1; Wed, 02 Dec 2020 11:12:54 -0500 X-MC-Unique: e9LXZ4EmN-280v1-3L1PrQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 10EE6185E4A6; Wed, 2 Dec 2020 16:12:52 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.40.192.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7EDE75C1D0; Wed, 2 Dec 2020 16:12:46 +0000 (UTC) From: Vitaly Kuznetsov To: linux-hyperv@vger.kernel.org Cc: Wei Liu , Stephen Hemminger , Haiyang Zhang , Michael Kelley , Dexuan Cui , David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/2] hv_balloon: hide ballooned out memory in stats Date: Wed, 2 Dec 2020 17:12:43 +0100 Message-Id: <20201202161245.2406143-1-vkuznets@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: It was noticed that 'free' information on a Hyper-V guest reports ballooned out memory in 'total' and this contradicts what other ballooning drivers (e.g. virtio-balloon/virtio-mem/xen balloon) do. Vitaly Kuznetsov (2): hv_balloon: simplify math in alloc_balloon_pages() hv_balloon: do adjust_managed_page_count() when ballooning/un-ballooning drivers/hv/hv_balloon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)