Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp273773ybk; Tue, 19 May 2020 22:28:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxR/YRxRVcD9Uuz8qQq/cI6vLZJV2idm5FW7rHqyupVfm9ic3C2WIRZd43hsf00IuYiqmu X-Received: by 2002:a17:907:447f:: with SMTP id oo23mr2271915ejb.274.1589952481489; Tue, 19 May 2020 22:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589952481; cv=none; d=google.com; s=arc-20160816; b=i9S0KmpvFa/6KugVnIQreri5k0Add9CVpnFUMwV7bm2N7Dx7GlQ+P5vJMTiLq8nImK cvN4RR5d2qzgvEaYBT7WtWGJfEinmC9oFvZMYyDxEJ0WPSYjGFf5sqp18G0t4launPzb 5M3oliBAMW6yRdPAyWhsmjLl+sAidCuKly2ZMPvorjvVShjgDPzTKvhSK5LciJbkucZS nntVyAdvGhnsLbwMxWsSTBg2PT8LF5+MHLJgYVeKlou2sQ8+0Kpm14VLcVcPVvNDdEUZ YCGnqFYUzLBEXtgxMYYX/xw+GBZZ8glINtDXQjR3K8CqNZ3VKlOWhH+6QG5IuD6ev2Bg DXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=Vy4ZbqS77VyUdSdM8L0YGSTzgEH6CQKMj0aO64h7Tf0=; b=kTlJshvZN4DevbtdgUPSdBUrdeLqxZJcStiD5l0jOfoLJETJNd81REg514ST17/p1i DnDKpuP5Hu+ZT9bxGe3zZVezy4g+JVyfUIYnehA2/b70qw95ayOW756O2vfz4KVYdWA8 mIIsvfuOwlI07zs9S9wt+cZtUDNTGqJSuNf/DaIYUglBRfKFXdgRQVSiA1MT5YYYzix2 gnJ0E3OCMmmnIXvI0z+GvxC71ryOQRCLS+kJh1LZ3BKwm1NSqwLhbUAC1fmHi5Dfwpgl G4NCMuJOvMU5hVBnwOTOQEhqQEn18nGWBrXJCp8fFDsDRzESs8pu5Q8C9D1V4QmRoZx8 YG9Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si1015206edp.582.2020.05.19.22.27.39; Tue, 19 May 2020 22:28:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726844AbgETFZi convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 May 2020 01:25:38 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:56870 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbgETFZi (ORCPT ); Wed, 20 May 2020 01:25:38 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01419;MF=teawaterz@linux.alibaba.com;NM=1;PH=DS;RN=36;SR=0;TI=SMTPD_---0Tz4XaVs_1589952329; Received: from 30.30.208.9(mailfrom:teawaterz@linux.alibaba.com fp:SMTPD_---0Tz4XaVs_1589952329) by smtp.aliyun-inc.com(127.0.0.1); Wed, 20 May 2020 13:25:31 +0800 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v4 00/15] virtio-mem: paravirtualized memory From: teawater In-Reply-To: <20200507140139.17083-1-david@redhat.com> Date: Wed, 20 May 2020 13:25:29 +0800 Cc: LKML , Linux MM , virtio-dev@lists.oasis-open.org, Linux Virtualization , kvm@vger.kernel.org, Michal Hocko , Andrew Morton , "Michael S . Tsirkin" , Alexander Duyck , Alexander Potapenko , Anshuman Khandual , Anthony Yznaga , Dan Williams , Dave Young , Igor Mammedov , Jason Wang , Johannes Weiner , Juergen Gross , Konrad Rzeszutek Wilk , Len Brown , Mel Gorman , Michal Hocko , Mike Rapoport , Oscar Salvador , Oscar Salvador , Pankaj Gupta , Pavel Tatashin , Pavel Tatashin , Pingfan Liu , Qian Cai , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Stefan Hajnoczi , Vlastimil Babka , Wei Yang Content-Transfer-Encoding: 8BIT Message-Id: <2603F9B2-17D0-4A05-A82B-2D3B9671A96E@linux.alibaba.com> References: <20200507140139.17083-1-david@redhat.com> To: David Hildenbrand X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Thanks for your work. I tried this version with cloud-hypervisor master. It worked very well. Best, Hui > 2020年5月7日 22:01,David Hildenbrand 写道: > > This series is based on v5.7-rc4. The patches are located at: > https://github.com/davidhildenbrand/linux.git virtio-mem-v4 > > This is basically a resend of v3 [1], now based on v5.7-rc4 and restested. > One patch was reshuffled and two ACKs I missed to add were added. The > rebase did not require any modifications to patches. > > Details about virtio-mem can be found in the cover letter of v2 [2]. A > basic QEMU implementation was posted yesterday [3]. > > [1] https://lkml.kernel.org/r/20200507103119.11219-1-david@redhat.com > [2] https://lkml.kernel.org/r/20200311171422.10484-1-david@redhat.com > [3] https://lkml.kernel.org/r/20200506094948.76388-1-david@redhat.com > > v3 -> v4: > - Move "MAINTAINERS: Add myself as virtio-mem maintainer" to #2 > - Add two ACKs from Andrew (in reply to v2) > -- "mm: Allow to offline unmovable PageOffline() pages via ..." > -- "mm/memory_hotplug: Introduce offline_and_remove_memory()" > > v2 -> v3: > - "virtio-mem: Paravirtualized memory hotplug" > -- Include "linux/slab.h" to fix build issues > -- Remember the "region_size", helpful for patch #11 > -- Minor simplifaction in virtio_mem_overlaps_range() > -- Use notifier_from_errno() instead of notifier_to_errno() in notifier > -- More reliable check for added memory when unloading the driver > - "virtio-mem: Allow to specify an ACPI PXM as nid" > -- Also print the nid > - Added patch #11-#15 > > David Hildenbrand (15): > virtio-mem: Paravirtualized memory hotplug > MAINTAINERS: Add myself as virtio-mem maintainer > virtio-mem: Allow to specify an ACPI PXM as nid > virtio-mem: Paravirtualized memory hotunplug part 1 > virtio-mem: Paravirtualized memory hotunplug part 2 > mm: Allow to offline unmovable PageOffline() pages via > MEM_GOING_OFFLINE > virtio-mem: Allow to offline partially unplugged memory blocks > mm/memory_hotplug: Introduce offline_and_remove_memory() > virtio-mem: Offline and remove completely unplugged memory blocks > virtio-mem: Better retry handling > virtio-mem: Add parent resource for all added "System RAM" > virtio-mem: Drop manual check for already present memory > virtio-mem: Unplug subblocks right-to-left > virtio-mem: Use -ETXTBSY as error code if the device is busy > virtio-mem: Try to unplug the complete online memory block first > > MAINTAINERS | 7 + > drivers/acpi/numa/srat.c | 1 + > drivers/virtio/Kconfig | 17 + > drivers/virtio/Makefile | 1 + > drivers/virtio/virtio_mem.c | 1962 +++++++++++++++++++++++++++++++ > include/linux/memory_hotplug.h | 1 + > include/linux/page-flags.h | 10 + > include/uapi/linux/virtio_ids.h | 1 + > include/uapi/linux/virtio_mem.h | 208 ++++ > mm/memory_hotplug.c | 81 +- > mm/page_alloc.c | 26 + > mm/page_isolation.c | 9 + > 12 files changed, 2314 insertions(+), 10 deletions(-) > create mode 100644 drivers/virtio/virtio_mem.c > create mode 100644 include/uapi/linux/virtio_mem.h > > -- > 2.25.3