From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH v2 01/10] hvm/hpet: Add manual unit test code. Date: Wed, 09 Apr 2014 14:35:03 -0400 Message-ID: <534592D7.2020805@terremark.com> References: <1396967094-29484-1-git-send-email-dslutz@verizon.com> <1396967094-29484-2-git-send-email-dslutz@verizon.com> <53458CB40200007800007598@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53458CB40200007800007598@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Don Slutz Cc: Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 04/09/14 12:08, Jan Beulich wrote: >>>> On 08.04.14 at 16:24, wrote: >> Add the code at tools/tests/vhpet. >> >> Does repro the bug: >> >> ..MP-BIOS bug: 8254 timer not connected to IO-APIC >> >> Signed-off-by: Don Slutz >> --- >> tools/tests/vhpet/.gitignore | 4 + >> tools/tests/vhpet/emul.h | 405 ++++++++++++++++++++++++++++++++ >> tools/tests/vhpet/main.c | 541 +++++++++++++++++++++++++++++++++++++++++++ > So I'm having difficulty understanding what this is good for, or how > it is supposed to be used: You don't add or change any Makefile, and > don't say anything to explain how this code is reproducing the bug > you mention above. Please be a little more verbose. > > Jan > Ok. In a xen source tree (with this patch applied): cd tools/tests/vhpet xen_source=../../.. sed -e "/#include/d" -e "1i#include \"emul.h\"\n" <$xen_source/xen/arch/x86/hvm/hpet.c >hpet.c cp $xen_source/xen/include/asm-x86/hpet.h . gcc -g -o test_vhpet hpet.c main.c ./test_vhpet >foo Most of this is in main.c's comment. Will add to commit message also. -Don Slutz