From: Jean-Philippe Brucker Subject: Re: [PATCH seabios 3/3] kvmtool: support larger virtio queues Date: Fri, 3 Nov 2017 13:49:32 +0000 Message-ID: <66585b58-481f-7eb2-1786-43e377619368@arm.com> References: <20171102155031.17454-1-kraxel@redhat.com> <20171102155031.17454-4-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: James Morse To: Gerd Hoffmann , "seabios@seabios.org" , "kvm@vger.kernel.org" Return-path: Received: from foss.arm.com ([217.140.101.70]:43140 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756260AbdKCNr2 (ORCPT ); Fri, 3 Nov 2017 09:47:28 -0400 In-Reply-To: <20171102155031.17454-4-kraxel@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 02/11/17 15:50, Gerd Hoffmann wrote: > Queues have 256 entries on kvmtool, support that. Needs more memory for > virtqueues now. But with the move to 32bit drivers for virtio this > should not be much of an issue any more. > > Known problems (probably kvmtool bugs): > * Must bump to 260 entries to make things actually work, > otherwise kvmtool segfaults. Oops. You mean setting MAX_QUEUE_NUM to 256 instead of 260 in seabios causes a kvmtool crash? Do you have any more detail on the segfault? One problem I can see is kvmtool's handling of used/avail event indexes. net and blk devices call virtio_queue__should_signal which reads event indexes without of checking if VIRTIO_F_EVENT_IDX was negotiated first. Since seabios doesn't use the event indexes, this would lead to missing signals, but not a segfault. > * Linux kernel doesn't find virtio-blk devices after seabios > initialized them. virtio device reset not working properly? No, reset isn't implemented at all... A lot of work is required to properly clear the state and threads of each device. Thanks, Jean