Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1002000ybh; Wed, 15 Jul 2020 23:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw00rNdSHBLonsLN+fNuiaEmlltepz5d2M02aZi0mVhTXxLSaqiptioVQQM1fgsYIhU+4ZB X-Received: by 2002:a17:906:270d:: with SMTP id z13mr2304237ejc.281.1594881975725; Wed, 15 Jul 2020 23:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594881975; cv=none; d=google.com; s=arc-20160816; b=glh4MyjHJOOcc9DjfcSsMhwktMPU/1xtttpqrJADSI1fn6Wjrk+1e58eJO3yiL3ZO/ hneisEESNGnIRz2aZbX4Eb3vbOe0XLlyNCtK2vLtz0n6SqFbNY1+GKH45vzTgNj0BRAS XS2BnyyMihlKnZ6ARDnNA5lP+TQLuL2gmefXLh12ZXNVPkxnAq2odyP4OxUY3xJQBc0C TAZ5DKo5Q4dngUbRIX4iyuap/S3xQOeHeND5/2PjZ3zoR5Kql3EjQQ+PCm1HPMRsPKWF QC0rXcYSiYdkgToWSgOPJFZusiU75jIdqrgOMRjXBRShWT8rIQjXCtmi1Ca9t9A5H9hs 1UKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=92A49Ojmn2AU0Fmvk+D6Q53rRv9UoaDayPIPpa5wWcs=; b=Hnqnj/njprATil6FyL5xM3MBF52JwjLsERx4bJe6VXMvAMjHlF4wcSy1C81ehJ1MKk JEZN15xsxK5K58FpBrcSAW/9N3z2BVV++a744QMxL5XeIcOcG4f3FT6IzzKSV7RuLC6y 6d9mBB7pwMKuts0FNOJfkRVnZWf1suwzXzY3lNOyOCO4OD1OFEJlrP596likqgYQEjal UlgX+qtZAxD96Mo3KL+eAowKeW3S96hfvxN4rP08rNqXMF7A1FXwo2dd29SPrT9kNQP+ hK936wEXgskCDnxPTcH1YkAzJGniVPi2ZULRlWrLYQZ/GojZwmOzI0Zot3AKgJLFjDHd jpgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="MO8/5ogS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r5si2653634edo.130.2020.07.15.23.45.51; Wed, 15 Jul 2020 23:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="MO8/5ogS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728041AbgGPGnf (ORCPT + 99 others); Thu, 16 Jul 2020 02:43:35 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:28496 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726141AbgGPGne (ORCPT ); Thu, 16 Jul 2020 02:43:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594881813; h=from:from:reply-to:subject:subject: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=92A49Ojmn2AU0Fmvk+D6Q53rRv9UoaDayPIPpa5wWcs=; b=MO8/5ogSgdemiaogmGgiARWFGj9RpG7wn1e0V0kcMI0DZdR+MWf7nt2aF+VvyQEGYfW5WF UaEEooi7g4df/WZkWuDPmbinoStPKP5l0Qy2Px00HmAG89DpftWGRcVvT6W8vH9cMWAEGA ws6/qnCT6oi+j1k2QXU8604NBG1/cJ8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-agiQ7in4NsaR7ImE9y9K4g-1; Thu, 16 Jul 2020 02:43:29 -0400 X-MC-Unique: agiQ7in4NsaR7ImE9y9K4g-1 Received: by mail-wr1-f71.google.com with SMTP id c6so4728557wru.7 for ; Wed, 15 Jul 2020 23:43:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=92A49Ojmn2AU0Fmvk+D6Q53rRv9UoaDayPIPpa5wWcs=; b=rzuKwp45Kcteg/WbwCIYbtGxx4UOWtf6aRbJ5Rx1dspU+MbU9Ds+bW1+p1J6bEQ3Ya a9HtTDyQgaRbFYpSNt5DoYN+XmmWZpzV/ZvcsaPEG1DKtiI4fh/sRvOoulOGlFb0OJoX EPN6FXiRN+rAOVun6WUYEIrkTxLjHKAWzDOk7AntmpzZ3quSBv1ZMVMCYEGubiadKPdL +KMOHZXIWNMTfO8yWyd/5e/Ti4Evi50HEsCZBXIQ4E2qExPMJDf10WxupF/5ID6fTv8+ pHkZZ4vIJX/DaWzfFoqhb65ffWjamB9dMaLd3+aTyPuIHbGTHieiF2sQTxwIl7Wbi+dl CH2Q== X-Gm-Message-State: AOAM5316ilekklxaBdC3b6zHghEr5xYVpwPsicX1CwE1BnOJI9InsUD/ HHTwmV3zXWHx9vxR8lkL72dXkYEl1Wv9RUvNEtHEBT7Cuv3MBj9dNeICYhH43yOr8lFtn+5334m 2+hpCctnYI5PMPYANq5nwnja5 X-Received: by 2002:a1c:9a07:: with SMTP id c7mr2963443wme.147.1594881808573; Wed, 15 Jul 2020 23:43:28 -0700 (PDT) X-Received: by 2002:a1c:9a07:: with SMTP id c7mr2963420wme.147.1594881808359; Wed, 15 Jul 2020 23:43:28 -0700 (PDT) Received: from redhat.com (bzq-79-182-31-92.red.bezeqint.net. [79.182.31.92]) by smtp.gmail.com with ESMTPSA id g3sm8085920wrb.59.2020.07.15.23.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 23:43:27 -0700 (PDT) Date: Thu, 16 Jul 2020 02:43:25 -0400 From: "Michael S. Tsirkin" To: Hui Zhu Cc: david@redhat.com, jasowang@redhat.com, akpm@linux-foundation.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org, Hui Zhu Subject: Re: [RFC for Linux v4 1/2] virtio_balloon: Add VIRTIO_BALLOON_F_CONT_PAGES and inflate_cont_vq Message-ID: <20200716024114-mutt-send-email-mst@kernel.org> References: <1594867315-8626-1-git-send-email-teawater@gmail.com> <1594867315-8626-2-git-send-email-teawater@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1594867315-8626-2-git-send-email-teawater@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 10:41:51AM +0800, Hui Zhu wrote: > diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h > index dc3e656..4d0151a 100644 > --- a/include/uapi/linux/virtio_balloon.h > +++ b/include/uapi/linux/virtio_balloon.h > @@ -37,6 +37,7 @@ > #define VIRTIO_BALLOON_F_FREE_PAGE_HINT 3 /* VQ to report free pages */ > #define VIRTIO_BALLOON_F_PAGE_POISON 4 /* Guest is using page poisoning */ > #define VIRTIO_BALLOON_F_REPORTING 5 /* Page reporting virtqueue */ > +#define VIRTIO_BALLOON_F_CONT_PAGES 6 /* VQ to report continuous pages */ > > /* Size of a PFN in the balloon interface. */ > #define VIRTIO_BALLOON_PFN_SHIFT 12 So how does the guest/host interface look like? Could you write up something about it?