From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH kvm-unit-tests 6/8] arm/arm64: Add support for migration tests Date: Wed, 7 Feb 2018 20:03:32 +0100 Message-ID: <20180207190334.16516-7-drjones@redhat.com> References: <20180207190334.16516-1-drjones@redhat.com> Cc: pbonzini@redhat.com, rkrcmar@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45530 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754469AbeBGTDm (ORCPT ); Wed, 7 Feb 2018 14:03:42 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 419384075171 for ; Wed, 7 Feb 2018 19:03:42 +0000 (UTC) In-Reply-To: <20180207190334.16516-1-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: We only need to implement getchar() and pass the test command line to run_migration when the unittests.cfg file tells us to. Signed-off-by: Andrew Jones --- arm/run | 2 +- lib/arm/io.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arm/run b/arm/run index fd280ee19837..1dd11b950447 100755 --- a/arm/run +++ b/arm/run @@ -57,6 +57,6 @@ fi M+=",accel=$ACCEL" command="$qemu -nodefaults $M -cpu $processor $chr_testdev $pci_testdev" command+=" -display none -serial stdio -kernel" -command="$(timeout_cmd) $command" +command="$(migration_cmd) $(timeout_cmd) $command" run_qemu $command "$@" diff --git a/lib/arm/io.c b/lib/arm/io.c index a111530f4802..f6b9a9012776 100644 --- a/lib/arm/io.c +++ b/lib/arm/io.c @@ -77,6 +77,11 @@ void puts(const char *s) spin_unlock(&uart_lock); } +int getchar(void) +{ + return readb(uart0_base); +} + void exit(int code) { chr_testdev_exit(code); -- 2.13.6