Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1963058ybg; Fri, 5 Jun 2020 02:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze2Ei1BFzQzWO9eIggDDF8362S/rb3yDfKwQfJfUFN5ycKNjEovPO1IY+MV9yV+/Ek+A+S X-Received: by 2002:a50:ee08:: with SMTP id g8mr7796808eds.267.1591347619246; Fri, 05 Jun 2020 02:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591347619; cv=none; d=google.com; s=arc-20160816; b=QLqEyq4ZcTqhP18gkkuZnkF2JhAv29JnziGczQR+zPM28sK8s5FlKqbWTziz9hzG1u CTekMB3skDhFG3u52oulemSBDXrxUL3ULhKk9uhfiHSiIT/wfF+jZSoZj8CisL4qBf/t DYX9r1RgX4F1EZwGEWY892OfSdXkzPC41pHUDgKkQBkGUL840NM59y1meoWldTvGfqGW wkpvPV3d6cXgE/Tvi7NTDFlJ+POSn2+P4ktt/3rz5f8rj5URvsOoa0IrFBuD7HqqsSKB deoixvKNB5x77JnT0IEw7iolZGjEN5qRrVo8ylGI0xzQeW/i6k3Ki6CHMMGRW1XhcVhX pwmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=oTwSmN9VsZChYTiv08Re9guhWb/QJfviNDcaUz7FCJ8=; b=p6OwKmfb7InXDDWN6jGTNz9OARyNWguEeo7djS5Q9dsVUB4mHPrdDu1ZBe0p4bDKtn CkCDHpAZ1/DPEB6uum2jhM+d35fyNh6bxfRowMzNXQUzA+2g/7wZzmn4hq/XN6C1iGb8 eXPGszGE56mkVFjBGbyNZ5pJmUq810ztxO4gKh3VIEnbPjpo2OZdThG+GAxVHGXFXYXn xjAWL77K597sChIt/OIbfi6NfhIZozTOqCM/i7oUnSPtYG/BYWhtUw/H32BGXDG/5ppR q3D0QjpcXg+h+vsyR2RCDiqrNe8bXo3snpoaDbR1kaB1RJQfXPJdFJIkOn4oVnU09e/W uTJg== 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 c7si3207657edv.93.2020.06.05.01.59.56; Fri, 05 Jun 2020 02:00:19 -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 S1726218AbgFEIz0 (ORCPT + 99 others); Fri, 5 Jun 2020 04:55:26 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:40365 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgFEIz0 (ORCPT ); Fri, 5 Jun 2020 04:55:26 -0400 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/1/9 下午9:48, David Hildenbrand 写道: > Ping, > > I'd love to get some feedback on > > a) The remaining MM bits from MM folks (especially, patch #6 and #8). > b) The general virtio infrastructure (esp. uapi in patch #2) from virtio > folks. > > 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 with 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: 513141 [ 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=16G -kernel /root/linux-next/$1/arch/x86/boot/bzImage \ -smp 4 \ -append "earlyprintk=ttyS0 root=/dev/sda1 console=ttyS0 debug psi=1 nokaslr ignore_loglevel" \ -hda /root/CentOS-7-x86_64-Azure-1703.qcow2 \ -net user,hostfwd=tcp::2222-:22 -net nic -s \ -object memory-backend-ram,id=mem0,size=3G \ -device virtio-mem-pci,id=vm0,memdev=mem0,node=0,requested-size=0M \ --nographic