Received: from eggs.gnu.org ([2001:4830:134:3::10]:33775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsAsQ-0001Vl-76 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 09:05:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsAsG-0000y4-Rd for qemu-devel@nongnu.org; Wed, 04 Jun 2014 09:05:09 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:40626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsAsG-0000xr-LH for qemu-devel@nongnu.org; Wed, 04 Jun 2014 09:05:00 -0400 Received: by mail-we0-f176.google.com with SMTP id q59so8551696wes.35 for ; Wed, 04 Jun 2014 06:04:59 -0700 (PDT) Date: Wed, 4 Jun 2014 15:04:54 +0200 From: Stefan Hajnoczi Message-ID: <20140604130454.GH11073@stefanha-thinkpad.redhat.com> References: <1401529703-8227-1-git-send-email-maria.k@catit.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1401529703-8227-1-git-send-email-maria.k@catit.be> Subject: Re: [Qemu-devel] [RFC] image-fuzzer: Documentation for the image fuzzer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maria Kustova Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, Maria Kustova On Sat, May 31, 2014 at 01:48:23PM +0400, Maria Kustova wrote: Looks like a good starting point. Once the command-line interface is settled it would be good to document how to use the fuzzer and show examples. That can be done in later patches. > +Module interfaces > +----------------- Here it would be worth briefly explaining that the fuzzer can be extended by implementing additional image generator modules. This puts the section into context so the reader know why you are explaining the module interface. > + > +* Test runner/image generator > + > +The runner calls an image generator specifying path to a test image file, its > +size and seed. An image generator is expected to create a test image of the > +specified size using the specified seed for random generator and write an image > +to file. File should be created if it doesn't exist or overwritten otherwise. > +Size and seed arguments are optional. > + > +An image generator should return seeds for the logging purpose. Since the runner passes the random number seed to the image generator, why does the image generator need to return the seed back to the runner?