From: David Hildenbrand Subject: Re: [PATCH v2 00/10] virtio-mem: paravirtualized memory Date: Fri, 27 Mar 2020 18:07:08 +0100 Message-ID: References: <20200311171422.10484-1-david@redhat.com> <6858c4d8-7570-2c2b-5d53-1a7f994c14ee@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: In-Reply-To: <6858c4d8-7570-2c2b-5d53-1a7f994c14ee@redhat.com> Content-Language: en-US To: Pankaj Gupta Cc: linux-kernel@vger.kernel.org, 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 , teawater , Igor Mammedov , "Dr . David Alan Gilbert" , Alexander Duyck , Alexander Potapenko , Anshuman Khandual , Anthony Yznaga , Dan Williams , Dave Young , Jason Wang , Johannes Weiner List-Id: virtualization@lists.linuxfoundation.org On 27.03.20 18:03, David Hildenbrand wrote: > On 27.03.20 17:58, Pankaj Gupta wrote: >> Hi David, >> >> Trying to test the series with the Qemu branch(virtio-mem) mentioned. >> Unfortunately, >> not able to hotplug memory. Is anything changed from your previous posting >> or I am doing something wrong? >> >> After giving value to "requested-size", I see size as zero. >> >> (qemu) qom-set vm0 requested-size 10G >> (qemu) info memory-devices >> Memory device [virtio-mem]: "vm0" >> memaddr: 0x240000000 >> node: 0 >> requested-size: 10737418240 >> size: 0 >> max-size: 107374182400 >> block-size: 2097152 >> memdev: /objects/mem0 >> >> Guest kernel: 5.6.0-rc4 >> Using same Qemu commandline arguments mentioned in cover-letter. > > Are you booting from an initrd? Are you compiling virtio-mem as a kernel > module or into the kernel binary? > > Make sure that the virtio-mem driver will actually be loaded. (lsmod | > grep virtio-mem). "virtio_mem", of course :) > > Also, double check if there are any virtio-mem dmesg errors/warnings. > -- Thanks, David / dhildenb