From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 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 31807C433DF for ; Fri, 5 Jun 2020 08:55:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CBDBA2053B for ; Fri, 5 Jun 2020 08:55:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBDBA2053B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0AD4B80007; Fri, 5 Jun 2020 04:55:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 05E588E0006; Fri, 5 Jun 2020 04:55:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E8EB980007; Fri, 5 Jun 2020 04:55:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0077.hostedemail.com [216.40.44.77]) by kanga.kvack.org (Postfix) with ESMTP id CEBB08E0006 for ; Fri, 5 Jun 2020 04:55:41 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 965926110 for ; Fri, 5 Jun 2020 08:55:41 +0000 (UTC) X-FDA: 76894550082.05.air50_1d06f1226d9e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 7813E1802ACAC for ; Fri, 5 Jun 2020 08:55:41 +0000 (UTC) X-HE-Tag: air50_1d06f1226d9e X-Filterd-Recvd-Size: 4775 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by imf12.hostedemail.com (Postfix) with ESMTP for ; Fri, 5 Jun 2020 08:55:38 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=39;SR=0;TI=SMTPD_---0U-diTxY_1591347318; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U-diTxY_1591347318) by smtp.aliyun-inc.com(127.0.0.1); Fri, 05 Jun 2020 16:55:19 +0800 Subject: Re: [PATCH RFC v4 00/13] virtio-mem: paravirtualized memory To: David Hildenbrand , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, virtio-dev@lists.oasis-open.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, Michal Hocko , Andrew Morton , "Michael S . Tsirkin" , Sebastien Boeuf , Samuel Ortiz , Robert Bradford , Luiz Capitulino , Alexander Duyck , Alexander Potapenko , Alexander Viro , 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 , Pavel Tatashin , Pavel Tatashin , Pingfan Liu , Qian Cai , "Rafael J. Wysocki" , Stefan Hajnoczi , Vlastimil Babka , Wei Yang References: <20191212171137.13872-1-david@redhat.com> <9acc5d04-c8e9-ef53-85e4-709030997ca6@redhat.com> From: Alex Shi Message-ID: <1cfa9edb-47ea-1495-4e28-4cf391eab44c@linux.alibaba.com> Date: Fri, 5 Jun 2020 16:55:18 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9acc5d04-c8e9-ef53-85e4-709030997ca6@redhat.com> Content-Type: text/plain; charset=utf-8 X-Rspamd-Queue-Id: 7813E1802ACAC X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 Content-Transfer-Encoding: quoted-printable 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: =E5=9C=A8 2020/1/9 =E4=B8=8B=E5=8D=889:48, David Hildenbrand =E5=86=99=E9= =81=93: > Ping, >=20 > I'd love to get some feedback on >=20 > a) The remaining MM bits from MM folks (especially, patch #6 and #8). > b) The general virtio infrastructure (esp. uapi in patch #2) from virti= o > folks. >=20 > I'm planning to send a proper v1 (!RFC) once I have all necessary MM > acks. In the meanwhile, I will do more testing and minor reworks (e.g., > fix !CONFIG_NUMA compilation). Hi David, Thanks for your work! I am trying your https://github.com/davidhildenbrand/linux.git virtio-mem= -v5 which works fine for me, but just a 'DMA error' happens when a vm start w= ith less than 2GB memory, Do I missed sth? Thanks Alex (qemu) qom-set vm0 requested-size 1g (qemu) [ 26.560026] virtio_mem virtio0: plugged size: 0x0 [ 26.560648] virtio_mem virtio0: requested size: 0x40000000 [ 26.561730] systemd-journald[167]: no db file to read /run/udev/data/+= virtio:virtio0: No such file or directory [ 26.563138] systemd-journald[167]: no db file to read /run/udev/data/+= virtio:virtio0: No such file or directory [ 26.569122] Built 1 zonelists, mobility grouping on. Total pages: 513= 141 [ 26.570039] Policy zone: Normal (qemu) [ 32.175838] e1000 0000:00:03.0: swiotlb buffer is full (sz: 81 = bytes), total 0 (slots), used 0 (slots) [ 32.176922] e1000 0000:00:03.0: TX DMA map failed [ 32.177488] e1000 0000:00:03.0: swiotlb buffer is full (sz: 81 bytes),= total 0 (slots), used 0 (slots) [ 32.178535] e1000 0000:00:03.0: TX DMA map failed my qemu command is like this: qemu-system-x86_64 --enable-kvm \ -m 2G,maxmem=3D16G -kernel /root/linux-next/$1/arch/x86/boot/bzImage \ -smp 4 \ -append "earlyprintk=3DttyS0 root=3D/dev/sda1 console=3DttyS0 debug psi=3D= 1 nokaslr ignore_loglevel" \ -hda /root/CentOS-7-x86_64-Azure-1703.qcow2 \ -net user,hostfwd=3Dtcp::2222-:22 -net nic -s \ -object memory-backend-ram,id=3Dmem0,size=3D3G \ -device virtio-mem-pci,id=3Dvm0,memdev=3Dmem0,node=3D0,requested-size=3D= 0M \ --nographic