From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 0/3] Emulator fuzz tester Date: Mon, 29 Aug 2011 15:05:03 +0300 Message-ID: <4E5B806F.2000706@redhat.com> References: <1314020469-30882-1-git-send-email-avi@redhat.com> <4E56E4B7.1020703@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Lucas Meneghel Rodrigues Return-path: Received: from mx1.redhat.com ([209.132.183.28]:51065 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464Ab1H2MFG (ORCPT ); Mon, 29 Aug 2011 08:05:06 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7TC56Ok006077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 29 Aug 2011 08:05:06 -0400 In-Reply-To: <4E56E4B7.1020703@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/26/2011 03:11 AM, Lucas Meneghel Rodrigues wrote: >> Lucas, how would we go about integrating this into kvm-autotest? > > > I have applied the 3 patches on your latest tree, compiled the kernel > but I'm having trouble in running the test the way you described. > > One thing I've noticed here: I can only compile the test as a kernel > module, not in the kernel image (menuconfig only gives me > (N/m/?). So I believe there's no way to test it the way you have > described... In any case I did try what you have suggested, then the > kernel panics due to the lack of a filesystem/init. After some > reading, I learned to create a bogus fs with a bogus init in it, but > still, the test does not run (I guess it's because the test module is > not compiled into the bzImage). > > I assume there are some details you forgot to mention to get this > done... Would you mind posting a more detailed procedure? The module depends on KVM, so if that is a module, then you can only build the test as a module. If you set CONFIG_KVM=y then you'll be able to build the fuzzer in. The simplest kernel you can build is probably make defconfig set CONFIG_KVM=y set CONFIG_KVM_EMULATOR_TEST=y Note there is no need to build kvm-intel or kvm-amd for that. -- error compiling committee.c: too many arguments to function