From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [qemu-kvm tests PATCH v2 2/3] qemu-kvm tests cleanup: adapt stringio test to kernel-mode run Date: Tue, 27 Apr 2010 16:03:07 +0300 Message-ID: <20100427130307.GG10044@redhat.com> References: <1272373065-3162-1-git-send-email-nsprei@redhat.com> <1272373065-3162-2-git-send-email-nsprei@redhat.com> <1272373065-3162-3-git-send-email-nsprei@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Naphtali Sprei Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36200 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753651Ab0D0NDJ (ORCPT ); Tue, 27 Apr 2010 09:03:09 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3RD39Du024589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Apr 2010 09:03:09 -0400 Content-Disposition: inline In-Reply-To: <1272373065-3162-3-git-send-email-nsprei@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Apr 27, 2010 at 03:57:44PM +0300, Naphtali Sprei wrote: > Also use testdev for output, call exit to quit. > Currently, test reboots endlessly because of a triple-fault. > Need to run test with -no-reboot till issue fixed (in kvm ??) > Rewriting this in C would be nice. May be adding this as additional test into emulator.c > Signed-off-by: Naphtali Sprei > --- > kvm/user/config-x86-common.mak | 2 +- > kvm/user/test/x86/stringio.S | 13 +++++++++---- > 2 files changed, 10 insertions(+), 5 deletions(-) > > diff --git a/kvm/user/config-x86-common.mak b/kvm/user/config-x86-common.mak > index 960741e..d312681 100644 > --- a/kvm/user/config-x86-common.mak > +++ b/kvm/user/config-x86-common.mak > @@ -54,7 +54,7 @@ $(TEST_DIR)/realmode.flat: $(TEST_DIR)/realmode.o > > $(TEST_DIR)/realmode.o: bits = 32 > > -$(TEST_DIR)/stringio.flat: $(TEST_DIR)/stringio.o > +$(TEST_DIR)/stringio.flat: $(cstart.o) $(TEST_DIR)/stringio.o > > $(TEST_DIR)/msr.flat: $(cstart.o) $(TEST_DIR)/msr.o > > diff --git a/kvm/user/test/x86/stringio.S b/kvm/user/test/x86/stringio.S > index 31ddc47..461621c 100644 > --- a/kvm/user/test/x86/stringio.S > +++ b/kvm/user/test/x86/stringio.S > @@ -8,24 +8,29 @@ > 1: > .endm > > +TESTDEV_PORT = 0xf1 > + > str "forward", "forward" > str "backward", "backward" > > .text > > - > +.global main > +main: > cld > movl forward, %ecx > lea 4+forward, %rsi > - movw $1, %dx > + movw $TESTDEV_PORT, %dx > rep outsb > > std > movl backward, %ecx > lea 4+backward-1(%rcx), %rsi > - movw $2, %dx > + movw $TESTDEV_PORT, %dx > rep outsb > > - hlt > + mov $0, %rsi > + call exit > + > > > -- > 1.6.3.3 > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Gleb.