From nobody Mon Apr 29 14:16:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1623774007; cv=none; d=zohomail.com; s=zohoarc; b=GqOaQtgUwDPDydb8kwBUb8q6FFe5oZ4HovVUvHnGRBnMT1Jv0GUDSD/q9+ZgRH1luWKE694QFwcfc4hNM0naT7WQnR7LBuLfRftOlxbOwMPFzbuAnsWanpdf88NLCpUX9NF6/78ftorSc8UKauOCxRnrTNOcFsTYGarGIjx2fEQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623774007; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=V0n9J3fwjHzi1LLGJQmPmssEqs0VRiQpu01J7I0F1N4=; b=n7yLtI+kM6OC3eySOHXe+9qfansVV7yw0LxMRD0Tmw/poFgR3wJx56dmq6bm7jfh/lnXzzlCOu3b4H+TcHcPuoyfpiYgRWTkXfRpSAyWhyiS5JjrXOkV42AetZW+4YjLuhIeUqqDcVo1cMZvbmflcSOm/uhVDUzYiFKer73s2wc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1623774007553207.91838654370235; Tue, 15 Jun 2021 09:20:07 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.142260.262545 (Exim 4.92) (envelope-from ) id 1ltBmx-0008Ul-5K; Tue, 15 Jun 2021 16:19:43 +0000 Received: by outflank-mailman (output) from mailman id 142260.262545; Tue, 15 Jun 2021 16:19:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBmx-0008Ue-2K; Tue, 15 Jun 2021 16:19:43 +0000 Received: by outflank-mailman (input) for mailman id 142260; Tue, 15 Jun 2021 16:19:41 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBmv-0008UY-7h for xen-devel@lists.xenproject.org; Tue, 15 Jun 2021 16:19:41 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id de181325-28a1-4c2d-9140-6e4d015bd390; Tue, 15 Jun 2021 16:19:37 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: de181325-28a1-4c2d-9140-6e4d015bd390 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1623773977; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bEMZpVBmeRQ9/504L1DN5a8NyA+wTFLwDvRaI1x9uWw=; b=Z5FQL1dyO9qusrQ5mbQQAsv8I8dQt55Z7z4qlkoS/f3o8LoALv+d2lxM 9vSPTW/N9FoJ7+Y7qzAazOlhP5SA08IXLofPlddA3zdwCKm3zo1/coPGd wiDwATG7m4h+dk5QjE9flQHWQRWXPomx14tITkxAjnTSscbIED6nFy6jt 8=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: gORyeNmDcweyhEWXVVae+k+mCTL1IDKF0C5mhgHy2YCVrmR8M2kRceTAcqbotumP4q8+DnSxSG dTuyGh4rwdZZsxqy9Jctg4ty5elfc7+ZJBsCkCN/wVNEb30DoNCXHZMKr08VeTd/fuq6bbRBYn 0EbGeE1N5wUB4zXM9mF8NVk3VtPPAl+pHcmGN3XYdR7jHpBjs6VJ8GCqEVIQvKRwFeBAms2KZt SCWxfV4Dbn0B1mcxlHRAx0UKn6125hRvPXeJmETQKLVXZEssoeE2AMmi3as5io7I2a438Q7UQF QZM= X-SBRS: None X-MesageID: 46552105 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:EtEDYqprNmCLDzU1qfkfo8oaV5oTeYIsimQD101hICG8cqSj+f xG+85rrCMc6QxhPk3I9urhBEDtex/hHNtOkOws1NSZLW7bUQmTXeJfBOLZqlWKcUDDH6xmpM NdmsBFeaXN5DNB7PoSjjPWLz9Z+qjkzJyV X-IronPort-AV: E=Sophos;i="5.83,275,1616472000"; d="scan'208";a="46552105" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Juergen Gross Subject: [PATCH 1/5] tools/tests: Drop obsolete mce-test infrastructure Date: Tue, 15 Jun 2021 17:19:01 +0100 Message-ID: <20210615161905.9831-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210615161905.9831-1-andrew.cooper3@citrix.com> References: <20210615161905.9831-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) mce-test has a test suite, but it depends on xend, needs to run in-tree, and requires manual setup of at least one guest, and manual parameters to pass into cases. Drop the test infrasturcture. Move the one useful remaining item, xen-mceinj, into misc/, fixing some min= or style issues as it goes. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Ian Jackson CC: Wei Liu CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Juergen Gross --- .gitignore | 1 - tools/misc/.gitignore | 1 + tools/misc/Makefile | 4 + tools/{tests/mce-test/tools =3D> misc}/xen-mceinj.c | 32 +-- tools/tests/Makefile | 1 - tools/tests/mce-test/Makefile | 12 - tools/tests/mce-test/README | 75 ------ tools/tests/mce-test/cases/srao_llc/dom0/cases.sh | 73 ------ tools/tests/mce-test/cases/srao_llc/guest/cases.sh | 94 -------- tools/tests/mce-test/cases/srao_llc/xen/cases.sh | 69 ------ tools/tests/mce-test/cases/srao_mem/dom0/cases.sh | 73 ------ tools/tests/mce-test/cases/srao_mem/guest/cases.sh | 94 -------- tools/tests/mce-test/cases/srao_mem/xen/cases.sh | 69 ------ tools/tests/mce-test/cases/ucna_llc/dom0/cases.sh | 72 ------ tools/tests/mce-test/cases/ucna_llc/guest/cases.sh | 92 -------- tools/tests/mce-test/cases/ucna_llc/xen/cases.sh | 68 ------ tools/tests/mce-test/config/setup.conf | 24 -- tools/tests/mce-test/lib/xen-mceinj-tool.sh | 260 -----------------= ---- tools/tests/mce-test/tools/Makefile | 24 -- tools/tests/mce-test/tools/README | 24 -- 20 files changed, 24 insertions(+), 1138 deletions(-) rename tools/{tests/mce-test/tools =3D> misc}/xen-mceinj.c (97%) delete mode 100644 tools/tests/mce-test/Makefile delete mode 100644 tools/tests/mce-test/README delete mode 100644 tools/tests/mce-test/cases/srao_llc/dom0/cases.sh delete mode 100644 tools/tests/mce-test/cases/srao_llc/guest/cases.sh delete mode 100644 tools/tests/mce-test/cases/srao_llc/xen/cases.sh delete mode 100644 tools/tests/mce-test/cases/srao_mem/dom0/cases.sh delete mode 100644 tools/tests/mce-test/cases/srao_mem/guest/cases.sh delete mode 100644 tools/tests/mce-test/cases/srao_mem/xen/cases.sh delete mode 100644 tools/tests/mce-test/cases/ucna_llc/dom0/cases.sh delete mode 100644 tools/tests/mce-test/cases/ucna_llc/guest/cases.sh delete mode 100644 tools/tests/mce-test/cases/ucna_llc/xen/cases.sh delete mode 100644 tools/tests/mce-test/config/setup.conf delete mode 100644 tools/tests/mce-test/lib/xen-mceinj-tool.sh delete mode 100644 tools/tests/mce-test/tools/Makefile delete mode 100644 tools/tests/mce-test/tools/README diff --git a/.gitignore b/.gitignore index 38a085e398..d4b90303b2 100644 --- a/.gitignore +++ b/.gitignore @@ -276,7 +276,6 @@ tools/tests/x86_emulator/test_x86_emulator tools/tests/x86_emulator/x86_emulate tools/tests/x86_emulator/xop*.[ch] tools/tests/xenstore/xs-test -tools/tests/mce-test/tools/xen-mceinj tools/tests/vpci/list.h tools/tests/vpci/vpci.[hc] tools/tests/vpci/test_vpci diff --git a/tools/misc/.gitignore b/tools/misc/.gitignore index ce6f937d0c..73ce95e6d7 100644 --- a/tools/misc/.gitignore +++ b/tools/misc/.gitignore @@ -1,4 +1,5 @@ xen-access +xen-mceinj xen-memshare xen-ucode xen-vmtrace diff --git a/tools/misc/Makefile b/tools/misc/Makefile index 2b683819d4..1a07191d83 100644 --- a/tools/misc/Makefile +++ b/tools/misc/Makefile @@ -22,6 +22,7 @@ INSTALL_SBIN-$(CONFIG_MIGRATE) +=3D xen-hptool INSTALL_SBIN-$(CONFIG_X86) +=3D xen-hvmcrash INSTALL_SBIN-$(CONFIG_X86) +=3D xen-hvmctx INSTALL_SBIN-$(CONFIG_X86) +=3D xen-lowmemd +INSTALL_SBIN-$(CONFIG_X86) +=3D xen-mceinj INSTALL_SBIN-$(CONFIG_X86) +=3D xen-memshare INSTALL_SBIN-$(CONFIG_X86) +=3D xen-mfndump INSTALL_SBIN-$(CONFIG_X86) +=3D xen-ucode @@ -97,6 +98,9 @@ xen-memshare: xen-memshare.o xen-vmtrace: xen-vmtrace.o $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(LDLIBS_libxenforeignmemo= ry) $(APPEND_LDFLAGS) =20 +xen-mceinj: xen-mceinj.o + $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LD= LIBS_libxenstore) $(APPEND_LDFLAGS) + xenperf: xenperf.o $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS) =20 diff --git a/tools/tests/mce-test/tools/xen-mceinj.c b/tools/misc/xen-mcein= j.c similarity index 97% rename from tools/tests/mce-test/tools/xen-mceinj.c rename to tools/misc/xen-mceinj.c index 1187d01e5f..df55eefbac 100644 --- a/tools/tests/mce-test/tools/xen-mceinj.c +++ b/tools/misc/xen-mceinj.c @@ -137,7 +137,7 @@ static void err(xc_interface *xc_handle, const char *fm= t, ...) va_list args; =20 va_start(args, fmt); - if (vasprintf(&buf, fmt, args) < 0) + if ( vasprintf(&buf, fmt, args) < 0 ) abort(); perror(buf); va_end(args); @@ -173,7 +173,7 @@ static unsigned int mca_cpuinfo(xc_interface *xc_handle) mc.cmd =3D XEN_MC_physcpuinfo; mc.interface_version =3D XEN_MCA_INTERFACE_VERSION; =20 - if (!xc_mca_op(xc_handle, &mc)) + if ( !xc_mca_op(xc_handle, &mc) ) return mc.u.mc_physcpuinfo.ncpus; else return 0; @@ -187,9 +187,9 @@ static int inject_cmci(xc_interface *xc_handle, unsigne= d int cpu_nr) memset(&mc, 0, sizeof(struct xen_mc)); =20 nr_cpus =3D mca_cpuinfo(xc_handle); - if (!nr_cpus) + if ( !nr_cpus ) err(xc_handle, "Failed to get mca_cpuinfo"); - if (cpu_nr >=3D nr_cpus) + if ( cpu_nr >=3D nr_cpus ) err(xc_handle, "-c %u is larger than %u", cpu_nr, nr_cpus - 1); =20 mc.cmd =3D XEN_MC_inject_v2; @@ -284,7 +284,7 @@ static int add_msr_intpose(xc_interface *xc_handle, flush_msr_inj(xc_handle); init_msr_inj(); } - count=3D msr_inj.mcinj_count; + count =3D msr_inj.mcinj_count; =20 if ( !count ) { @@ -422,7 +422,7 @@ static long xs_get_dom_mem(int domid) if (!memstr || !plen) return -1; =20 - mem =3D atoll(memstr)*1024; + mem =3D atoll(memstr) * 1024; free(memstr); =20 return mem; @@ -474,17 +474,20 @@ int main(int argc, char *argv[]) cpu_nr =3D 0; =20 init_msr_inj(); - xc_handle =3D xc_interface_open(0, 0, 0); - if ( !xc_handle ) { + xc_handle =3D xc_interface_open(NULL, NULL, 0); + if ( !xc_handle ) + { Lprintf("Failed to get xc interface"); exit(EXIT_FAILURE); } =20 - while ( 1 ) { + while ( 1 ) + { c =3D getopt_long(argc, argv, "c:Dd:t:hp:l", opts, &opt_index); if ( c =3D=3D -1 ) break; - switch ( c ) { + switch ( c ) + { case 'D': dump=3D1; break; @@ -516,7 +519,8 @@ int main(int argc, char *argv[]) } } =20 - if ( domid !=3D DOMID_XEN ) { + if ( domid !=3D DOMID_XEN ) + { max_gpa =3D xs_get_dom_mem(domid); Lprintf("get domain %d max gpa is: 0x%lx", domid, max_gpa); if ( gaddr >=3D max_gpa ) @@ -524,7 +528,8 @@ int main(int argc, char *argv[]) } Lprintf("get gaddr of error inject is: 0x%lx", gaddr); =20 - if ( dump ) { + if ( dump ) + { if ( domid =3D=3D DOMID_XEN ) Lprintf("Xen: gaddr=3D0x%lx", gaddr); else @@ -532,7 +537,8 @@ int main(int argc, char *argv[]) goto out; } =20 - if ( type < 0 || type >=3D MCE_TABLE_SIZE ) { + if ( type < 0 || type >=3D MCE_TABLE_SIZE ) + { err(xc_handle, "Unsupported error type"); goto out; } diff --git a/tools/tests/Makefile b/tools/tests/Makefile index 8746aabe6b..f76feb0b3a 100644 --- a/tools/tests/Makefile +++ b/tools/tests/Makefile @@ -4,7 +4,6 @@ include $(XEN_ROOT)/tools/Rules.mk SUBDIRS-y :=3D SUBDIRS-y +=3D resource SUBDIRS-$(CONFIG_X86) +=3D cpu-policy -SUBDIRS-$(CONFIG_X86) +=3D mce-test ifneq ($(clang),y) SUBDIRS-$(CONFIG_X86) +=3D x86_emulator endif diff --git a/tools/tests/mce-test/Makefile b/tools/tests/mce-test/Makefile deleted file mode 100644 index 1395df38ac..0000000000 --- a/tools/tests/mce-test/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -.PHONY: all clean distclean - -all:=20 - $(MAKE) -C tools - -clean: - $(MAKE) -C tools clean - -distclean: - $(MAKE) -C tools distclean - -install uninstall: diff --git a/tools/tests/mce-test/README b/tools/tests/mce-test/README deleted file mode 100644 index 65e6d1b045..0000000000 --- a/tools/tests/mce-test/README +++ /dev/null @@ -1,75 +0,0 @@ -Xen MCE test suite ---------------- - -The Xen MCE test suite is a collection of tools and test scripts for -testing the Xen MCE processing features. The goal is to cover -most Xen MCE processing code paths and features with automation tests. - - -In the Package --------------- - -Here is a short description of what is included in the package - -README - This is document - -Makefile - For compile - -cases/* - Contains all test cases, which may be organized in sub-directories,=20 - the interface of test case is a shell script under cases/, such as: - -- cases/srao_mem/dom0/cases.sh - -config/* - Contains test configuration files, which specifies the parameters=20 - for test cases, etc. - -lib/* - Contains some shell scripts, in which some common shell - functions and variable definitions are defined to be used by - test cases. - -tools/* - Tools used by MCE test suites, now only xen-mceinj tool. - -results/ - When test is done, the test result will be placed in this - directory, test results of various cases may be in corresponding=20 - directory.=20 - For example, files in - results/srao_mem_dom0/result - is the result for test case cases/srao_mem/dom0/cases.sh, there will - be 3 result conditions: PASSED/FAILED/NORESULT. - results//testlog #the test log during testing - results//mcelog #mcelog output during testing - results//xenlog #Xen log during testing - results//gklog #VM guest kernel log during testing - results//guest_config #config file used to create guest - - -Test Instruction ----------------- - -1. make sure you have a dom0 with mce support - CONFIG_X86_MCE=3Dy - CONFIG_X86_MCE_INTEL=3Dy - CONFIG_X86_MCE_AMD=3Dy - CONFIG_X86_MCE_THRESHOLD=3Dy - CONFIG_X86_MCE_INJECT=3Dy - -2. run system at xen and start xend. A installed guest image is - necessary when do guest MCE error injection. -3. compile tools that used to test. in mce-test, $make. - Note: make sure compile xen/tools before do this step -4. run test cases that you want. - e.g. $sh cases/srao_mem/dom0/cases.sh -d 0 -p 0x0200 -c 2 -t 1 -5. get test result in results directory - - -Notes ----------------- -All test cases fake a error and inject this error in 0x180020, For Xen -test cases(e.g. cases/srao_mem/xen/cases.sh), error happen on every page=20 -may cause a Xen panic.=20 diff --git a/tools/tests/mce-test/cases/srao_llc/dom0/cases.sh b/tools/test= s/mce-test/cases/srao_llc/dom0/cases.sh deleted file mode 100644 index c540f64998..0000000000 --- a/tools/tests/mce-test/cases/srao_llc/dom0/cases.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_llc_dom0 - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-d domainID\t: 0" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:d:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - d) domid=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -[ -z $domid ] && domid=3D0 - -inject() -{ - mce_inject_trigger $MCE_SRAO_LLC -d $domid -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_LLC || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/srao_llc/guest/cases.sh b/tools/tes= ts/mce-test/cases/srao_llc/guest/cases.sh deleted file mode 100644 index 47a7ee4ab9..0000000000 --- a/tools/tests/mce-test/cases/srao_llc/guest/cases.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_llc_guest - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the mu= st have options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-i image\t: guest image" - echo -e "\t-m memory\t: set guest virtual memory" - echo "=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-u vcpus\t: set guest virtual cpus number" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -[ $# -lt 1 ] && usage - -while getopts ":i:u:m:c:p:hl:" option -do - case "$option" in - i) image=3D$OPTARG; offset=3D`kpartx -l $image | awk '{print $NF*512}'= `;; - u) vcpus=3D$OPTARG;; - m) memory=3D$OPTARG;; - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - l) early_kill=3D"0";; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - - -start_guest() -{ - create_hvm_guest $image -u $vcpus -m $memory - if [ $? -ne 0 ]; then - echo " Create guest fail!" - return 1 - fi - return 0 -} - -inject() -{ - mce_inject_trigger $MCE_SRAO_LLC -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - start_guest || ret_val=3D1 - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - guest_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_LLC || ret_val=3D1 - des_guest - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/srao_llc/xen/cases.sh b/tools/tests= /mce-test/cases/srao_llc/xen/cases.sh deleted file mode 100644 index 1d8e02ff65..0000000000 --- a/tools/tests/mce-test/cases/srao_llc/xen/cases.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_llc_xen - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -inject() -{ - mce_inject_trigger $MCE_SRAO_LLC -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_LLC || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/srao_mem/dom0/cases.sh b/tools/test= s/mce-test/cases/srao_mem/dom0/cases.sh deleted file mode 100644 index 22d4a00960..0000000000 --- a/tools/tests/mce-test/cases/srao_mem/dom0/cases.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_mem_dom0 - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-d domainID\t: 0" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:d:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - d) domid=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -[ -z $domid ] && domid=3D0 - -inject() -{ - mce_inject_trigger $MCE_SRAO_MEM -d $domid -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_MEM || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/srao_mem/guest/cases.sh b/tools/tes= ts/mce-test/cases/srao_mem/guest/cases.sh deleted file mode 100644 index 7ab4523096..0000000000 --- a/tools/tests/mce-test/cases/srao_mem/guest/cases.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_mem_guest - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the mu= st have options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-i image\t: guest image" - echo -e "\t-m memory\t: set guest virtual memory" - echo "=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-u vcpus\t: set guest virtual cpus number" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -[ $# -lt 1 ] && usage - -while getopts ":i:u:m:c:p:hl:" option -do - case "$option" in - i) image=3D$OPTARG; offset=3D`kpartx -l $image | awk '{print $NF*512}'= `;; - u) vcpus=3D$OPTARG;; - m) memory=3D$OPTARG;; - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - l) early_kill=3D"0";; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - - -start_guest() -{ - create_hvm_guest $image -u $vcpus -m $memory - if [ $? -ne 0 ]; then - echo " Create guest fail!" - return 1 - fi - return 0 -} - -inject() -{ - mce_inject_trigger $MCE_SRAO_MEM -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - start_guest || ret_val=3D1 - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - guest_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_MEM || ret_val=3D1 - des_guest - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/srao_mem/xen/cases.sh b/tools/tests= /mce-test/cases/srao_mem/xen/cases.sh deleted file mode 100644 index 7ae49a82ac..0000000000 --- a/tools/tests/mce-test/cases/srao_mem/xen/cases.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Dsrao_mem_xen - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -inject() -{ - mce_inject_trigger $MCE_SRAO_MEM -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - xen_verify || ret_val=3D1 - mcelog_verify $MCE_SRAO_MEM || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/ucna_llc/dom0/cases.sh b/tools/test= s/mce-test/cases/ucna_llc/dom0/cases.sh deleted file mode 100644 index 808f007708..0000000000 --- a/tools/tests/mce-test/cases/ucna_llc/dom0/cases.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Ducna_llc_dom0 - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-d domainID\t: 0" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:d:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - d) domid=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -[ -z $domid ] && domid=3D0 - -inject() -{ - mce_inject_trigger $CMCI_UCNA_LLC -d $domid -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - mcelog_verify $CMCI_UCNA_LLC || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/ucna_llc/guest/cases.sh b/tools/tes= ts/mce-test/cases/ucna_llc/guest/cases.sh deleted file mode 100644 index 0ca4e2c961..0000000000 --- a/tools/tests/mce-test/cases/ucna_llc/guest/cases.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Ducna_llc_guest - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the mu= st have options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-i image\t: guest image" - echo -e "\t-m memory\t: set guest virtual memory" - echo "=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D=3D" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-u vcpus\t: set guest virtual cpus number" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -[ $# -lt 1 ] && usage - -while getopts ":i:u:m:c:p:hl:" option -do - case "$option" in - i) image=3D$OPTARG; offset=3D`kpartx -l $image | awk '{print $NF*512}'= `;; - u) vcpus=3D$OPTARG;; - m) memory=3D$OPTARG;; - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - l) early_kill=3D"0";; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - - -start_guest() -{ - create_hvm_guest $image -u $vcpus -m $memory - if [ $? -ne 0 ]; then - echo " Create guest fail!" - return 1 - fi - return 0 -} - -inject() -{ - mce_inject_trigger $CMCI_UCNA_LLC -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - start_guest || ret_val=3D1 - inject || ret_val=3D1 - mcelog_verify $CMCI_UCNA_LLC || ret_val=3D1 - des_guest - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/cases/ucna_llc/xen/cases.sh b/tools/tests= /mce-test/cases/ucna_llc/xen/cases.sh deleted file mode 100644 index c73a2f6c16..0000000000 --- a/tools/tests/mce-test/cases/ucna_llc/xen/cases.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -sd=3D$(dirname $0) -export ROOT=3D`(cd $sd/../../../; pwd)` -export this_case=3Ducna_llc_xen - -. $ROOT/lib/xen-mceinj-tool.sh - -usage() -{ - echo "Usage: ./cases.sh [-options] [arguments]" - echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBelow are the op= tional options=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" - echo -e "\t-c injcpu\t: which cpu to inject error" - echo -e "\t-p pageaddr\t: Guest Physical Address to inject error" - echo -e "\t\t\tBy default, the GPA is 0x180020" - echo -e "\t-h help" - exit 0 -} - -while getopts ":c:p:h" option -do - case "$option" in - c) injcpu=3D$OPTARG;; - p) pageaddr=3D$OPTARG;; - h) usage;; - *) echo "invalid option!"; usage;; - esac -done - -inject() -{ - mce_inject_trigger $CMCI_UCNA_LLC -u $injcpu -p $pageaddr=20 - if [ $? -eq 0 ]; then - show " Passed: Successfully to fake and inject a MCE error" - else - show " Failed: Fake error and inject fail !!" - return 1 - fi - return 0 -} - -do_main() -{ - ret_val=3D0 - clean_env - inject || ret_val=3D1 - mcelog_verify $CMCI_UCNA_LLC || ret_val=3D1 - gen_result $ret_val -} - -do_main "$@" diff --git a/tools/tests/mce-test/config/setup.conf b/tools/tests/mce-test/= config/setup.conf deleted file mode 100644 index 05f754dfd6..0000000000 --- a/tools/tests/mce-test/config/setup.conf +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# -# Software injection based test cases: test cases are triggered via -# mce-inject tool. -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -export MCE_SRAO_MEM=3D0 -export MCE_SRAO_LLC=3D1 -export CMCI_UCNA_LLC=3D2 diff --git a/tools/tests/mce-test/lib/xen-mceinj-tool.sh b/tools/tests/mce-= test/lib/xen-mceinj-tool.sh deleted file mode 100644 index c0a3b293c5..0000000000 --- a/tools/tests/mce-test/lib/xen-mceinj-tool.sh +++ /dev/null @@ -1,260 +0,0 @@ -#!/bin/bash -# -# Software injection based test cases: test cases are triggered via -# mce-inject tool. -# Copyright (c) 2010, Intel Corporation -#=20 -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License version -# 2 as published by the Free Software Foundation. -#=20 -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#=20 -# You should have received a copy of the GNU General Public License -# along with this program; If not, see . -# -# Author: Xudong Hao -# - -. $ROOT/config/setup.conf - -#Guest Image Preparation -hvm_image_prepare() -{ - local image=3D$1 - local tmpdir=3D`mktemp -d` - local tmpfile=3D`mktemp` - local offset=3D`kpartx -l $image | awk '{print $NF*512}'` - mount -oloop,offset=3D$offset $image $tmpdir && echo "mount image to $= tmpdir" - local g_grub=3D$tmpdir/boot/grub/grub.conf - if [ $? -ne 0 ]; then - show " Mount image failed!" - return 1 - fi - - if ! grep FLAG_CONSOLE $g_grub; then - sed -e '/kernel/s/$/ console=3DttyS0,115200,8n1 console=3Dtty0/g' \ - $g_grub > $tmpfile - mv -f $tmpfile $g_grub - rm -f $tmpfile - echo " -#### FLAG_CONSOLE #### " >> $g_grub - fi - umount $tmpdir - rm -fr $tmpdir - - return 0 -} - -create_hvm_guest() -{ - local image=3D$1 - local originconfig=3D"/etc/xen/xmexample.hvm" - local TF=3D`mktemp` - local case_dir=3D$ROOT/results/$this_case - local config=3D$case_dir/guest_config - [ -d $case_dir ] || mkdir $case_dir - [ -f $logfile ] || touch $logfile - local File=3D`echo $image|sed "s/\//\\\\\\\\\\//g"` - local g_name=3D"`basename $image`_`date +%H%M%S`" - - hvm_image_prepare $image - - while getopts ":u:m:" Option - do - case $Option in - u ) vcpus=3D$OPTARG;; - m ) memory=3D$OPTARG;; - e ) bridge_name=3D$OPTARG;; - * ) ;; - esac - done - - cp $originconfig $config -f - - if [ -z $image ]; then - show "Image file $image does not exist, Please input one valid fil= e" - return 1 - fi - - sed -e "/^disk/s/file:.*,\(hda\)/file:${File},\1/" $config \ - | sed -e "/^disk/s/phy:.*,\(hda\)/file:${File},\1/" >$TF - mv -f $TF $config - - [ -z $memory ] || sed -i "/^memory/s/^.*$/memory =3D $memory/" $config - [ -z $vcpus ] || sed -i "1,/^#vcpus/s/^#vcpus.*$/vcpus=3D$vcpus/;1d" $= config - sed -i "/^vif/s/vif/#vif/" $config - sed -i "/^name/s/^.*$/name =3D \"$g_name\"/" $config - - string1=3D$(ls /dev/pts | sort) - xm cr $config - [ $? -eq 0 ] && domid=3D`xm list $g_name | tail -n1 | awk '{print $2}'` - if [ -z $domid ]; then - show " Guest can not boot up" - return 1 - fi - =20 - sleep 10 - - string2=3D$(ls /dev/pts | sort) - - get_guest_klog - sleep 40 - - return 0 -} - -get_guest_klog() -{ - local case_dir=3D$ROOT/results/$this_case - gklog=3D$case_dir/gklog - [ -d $case_dir ] || mkdir $case_dir - [ -f $gklog ] || touch $gklog - for fo in $string2; do - echo $string1 | grep $fo -wq - [ $? -eq 1 ] && num=3D$fo - done - cat /dev/pts/$num > $gklog & -} - -mce_inject_trigger() -{ - local errtype=3D$1 - local append=3D"" - while getopts ":d:u:p:" Option - do - case $Option in - d ) domid=3D$OPTARG;; - u ) cpu=3D$OPTARG;; - p ) pageaddr=3D$OPTARG;; - * ) ;; - esac - done - - [ -z $domid ] || append=3D$append" -d $domid" - [ -z $cpu ] || append=3D$append" -c $cpu" - [ -z $pageaddr ] || append=3D$append" -p $pageaddr" - - [ -f $ROOT/tools/xen-mceinj ] - if [ $? -eq 0 ]; then - xm dmesg -c - $ROOT/tools/xen-mceinj -t $errtype $append - if [ $? -ne 0 ]; then - show " Failed: Maybe the memory addr is out of range. \ - Please check whether used xen-mceinj tool correctlly" - return 1 - fi - else - show " Failed: please compile xen-mce inject tool firstly" - return 1 - fi - return 0 -} - -xen_verify() -{ - local case_dir=3D$ROOT/results/$this_case - local xenlog=3D$case_dir/xenlog - [ -d $case_dir ] || mkdir $case_dir - [ -f $xenlog ] || touch $xenlog - xm dmesg > $xenlog - grep "Error is successfully recovered" $xenlog > /dev/null - if [ $? -eq 0 ]; then - show " Passed: Xen handle this MCE error successfully" - else - show " Failed: Xen does not handle MCE error correctly !!" - return 1 - fi - return 0 -} - -guest_verify() -{ - grep "kernel page recovery" $gklog > /dev/null - if [ $? -eq 0 ]; then - show " Passed: Guest recive MCE error and solved correctly" - else - show " Failed: Guest fail to solve MCE error" - return 1 - fi - return 0 -} - -mcelog_verify() -{ - local err_type=3D$1 - local ret=3D0 - local case_dir=3D$ROOT/results/$this_case - local mcelog=3D$case_dir/mcelog - [ -d $case_dir ] || mkdir $case_dir - [ -f $mcelog ] || touch $mcelog - mcelog > $mcelog - if [ -z $mcelog ]; then - show " Failed: MCELOG does not catch anything" - return 1 - else - if [ $err_type -eq 0 ]; then - grep "MEMORY CONTROLLER MS_CHANNELunspecified_ERR" $mcelog \ - > /dev/null - ret=3D$? - elif [ $err_type -eq 1 ]; then - grep "Generic CACHE Level-2 Eviction Error" $mcelog > /dev/null - ret=3D$? - elif [ $err_type -eq 2 ]; then - grep "Data CACHE Level-2 Data-Read Error" $mcelog > /dev/null - ret=3D$? - fi - - if [ $ret -eq 0 ]; then - show " Passed: MCElog catch a correct error" - else=20 - show " Failed: MCE log catch a incorrect error !!" - return 1 - fi - fi - - return 0 -} - -function des_guest() -{ - xm des $domid =20 -} - -function clean_env() -{ - [ -d $ROOT/results ] || mkdir $ROOT/results - # clean logs and results of last test for this case - rm -fr $ROOT/results/$this_case/* -} - -function show() -{ - local case_dir=3D$ROOT/results/$this_case - local logfile=3D$case_dir/testlog - [ -d $case_dir ] || mkdir $case_dir - [ -f $logfile ] || touch $logfile - echo -e $* | tee -a $logfile > /dev/null -} - -function gen_result() -{ - local ret=3D$1 - local case_dir=3D$ROOT/results/$this_case - local result=3D$case_dir/result - [ -d $case_dir ] || mkdir $case_dir - [ -f $result ] || touch $result - =20 - if [ $ret -eq 0 ]; then - echo "PASSED" > $result - elif [ $ret -eq 1 ]; then - echo "FAILED" > $result - echo " Please check testlog for details!!! " >> $result - else - echo "NORESULT" > $result - echo " Please check testlog for details!!! " >> $result - fi -} diff --git a/tools/tests/mce-test/tools/Makefile b/tools/tests/mce-test/too= ls/Makefile deleted file mode 100644 index 0e92ac2977..0000000000 --- a/tools/tests/mce-test/tools/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -XEN_ROOT=3D$(CURDIR)/../../../.. -include $(XEN_ROOT)/tools/Rules.mk - -CFLAGS +=3D -Werror -CFLAGS +=3D $(CFLAGS_libxenctrl) -CFLAGS +=3D $(CFLAGS_libxenguest) -CFLAGS +=3D $(CFLAGS_libxenstore) -CFLAGS +=3D $(CFLAGS_xeninclude) - -.PHONY: all -all: xen-mceinj - -install: xen-mceinj - $(INSTALL_PROG) xen-mceinj $(DESTDIR)$(sbindir) - -.PHONY: clean -clean: - $(RM) *.o xen-mceinj - -.PHONY: distclean -distclean: clean - -xen-mceinj: xen-mceinj.o Makefile - $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LD= LIBS_libxenstore) diff --git a/tools/tests/mce-test/tools/README b/tools/tests/mce-test/tools= /README deleted file mode 100644 index bd0d442bae..0000000000 --- a/tools/tests/mce-test/tools/README +++ /dev/null @@ -1,24 +0,0 @@ -Xen Machine Check Exception(MCE) error inject tool ----------------------------------------------- - -xen-mceinj is a software MCE injection tool, which is based on Xen=20 -MCE injection mechanism. It allows to inject machine check errors on the -software level into a running Xen/dom0/VM. This is intended for -validation of the Xen machine check handler. - -With the help of the Makefile, it is possible to compile a binary file=20 -named "xen-mceinj". - -Usage ------ -$make (make install) --Note: make sure compile xen/tools before do this st= ep -$./xen-mceinj [OPTION]... - -OPTION arguments can be: - -D, --dump dump addr info without error injection - -c, --cpu=3DCPU_ID target CPU, the default is CPU0 - -d, --domain=3DDomID target domain, the default is Xen itself - -p, --page physical page address, the default is 0x180020 - -t, --type=3Derror error type - -For detail help, please refer to "./xen-mceinj -h" --=20 2.11.0 From nobody Mon Apr 29 14:16:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1623774325; cv=none; d=zohomail.com; s=zohoarc; b=Vdx1ywmSVMAkUGOjvjkBEMDg/wVzCYOa9Ppsjok5FuHGuMSnNDdpJdvmQBOeulcjMgjN1uM8low3XB8FRHX+ZgiHB7DsTs/w5wGiAI96ExWGcGAz6C+xau/nOfajPhDyeHcGT00BBJeYQxAk4ILdVqEUefPhJcItnKVzGBlqcBk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623774325; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eLz/VDz6+szw+DNxzLz8corg2WgfL+JRJYfMOP24iqs=; b=Pwy6aBZ3GeWPyw/n1fDR+Kt4Ousc4AE+lJTO20VoD4ZHXwdeX7bNQguNU6Uzi7quYmfmyyvQpno3uCgskBmKWKEIbJN9SwuauSrDNHSi7RVz2M+bzHv73B1zucmopn55FQhqyQbLJTAjsP4OVF18vNu3pADdPpDeT+ciYGFlJDs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1623774325336909.0899060851042; Tue, 15 Jun 2021 09:25:25 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.142288.262601 (Exim 4.92) (envelope-from ) id 1ltBsH-0003dK-Vz; Tue, 15 Jun 2021 16:25:13 +0000 Received: by outflank-mailman (output) from mailman id 142288.262601; Tue, 15 Jun 2021 16:25:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBsH-0003dD-Ss; Tue, 15 Jun 2021 16:25:13 +0000 Received: by outflank-mailman (input) for mailman id 142288; Tue, 15 Jun 2021 16:25:12 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBsG-0003IV-4t for xen-devel@lists.xenproject.org; Tue, 15 Jun 2021 16:25:12 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 430cf9d0-84ca-47da-9e24-22f579c47ed3; Tue, 15 Jun 2021 16:25:02 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 430cf9d0-84ca-47da-9e24-22f579c47ed3 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1623774302; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zXwBttlq/sUctChlltDPrS3/9kYAFsNJN4Yl+m3Z5I0=; b=Uv9WOl155jbybyXWFKG/HpmXnY1Vc/f51nKqaLPArvvfWXRW0yb0uDbf 5JXrQh25ZAqXuXYKh7JaFoXmJXNDyCiSF6m6DDvEKL4GLw5igwQAgiTi4 454c9+zYnh2SsGAijq4sloLn84Xt5oOGFrXZQ0YRr4dAbrm0GilL+bGsv I=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: r7fvxB8phPJ6dc9iLBwsP4KCY8wB7wqr2HsSbs1E37V29dzS9IQVFgt/1/x6WSZDI2wQ2pZt/U qPfb9MxbMtxUN7rDtPXB/7aMaf9QLO29HsCHIzmQpTM7ZFbpZn4ghuZwG8uCiQ6DfA5x29QwJE krdg8h/zb+fTfgj86JRVBMR9gs7hnx1xFfARxsx4TveZOC6FGsME1nUvw1SEFiU+GMz+S1Zb3h JtFvvI3O13ggSczOfQAYNq6QkQo/StTfMoxy4T91dDXrJANpAOgJ2fCH4SMmkzSuQhk2c22Uj5 DVw= X-SBRS: 5.1 X-MesageID: 46552554 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:rNLb2qnSbOtMMtblxjK47wyt/kjpDfLW3DAbv31ZSRFFG/Fw9/ rCoB3U73/JYVcqKRUdcLW7UpVoLkmyyXcY2+cs1NSZLWzbUQmTXeJfBOLZqlWNJ8SXzIVgPM xbAspD4bPLbGSTjazBkXSF+9RL+qj6zEh/792usEuETmtRGt9dBx8SMHf9LqXvLjM2fqbQEv Cnl6x6jgvlQ1s7ROKhCEIIWuDSzue77q4PMXY9dmcaABDlt0LR1ILH X-IronPort-AV: E=Sophos;i="5.83,275,1616472000"; d="scan'208";a="46552554" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Juergen Gross Subject: [PATCH 2/5] tools/tests: Drop run runes Date: Tue, 15 Jun 2021 17:19:02 +0100 Message-ID: <20210615161905.9831-3-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210615161905.9831-1-andrew.cooper3@citrix.com> References: <20210615161905.9831-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) These aren't implemented consistently. The one in resource/ is useless as = the binary needs running in dom0, and the layout in cpu-policy/ demonstrates the weakness of this approach with multiple binaries. Signed-off-by: Andrew Cooper --- CC: Ian Jackson CC: Wei Liu CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Juergen Gross --- tools/tests/cpu-policy/Makefile | 4 ---- tools/tests/resource/Makefile | 4 ---- tools/tests/vpci/Makefile | 4 ---- tools/tests/x86_emulator/Makefile | 4 ---- 4 files changed, 16 deletions(-) diff --git a/tools/tests/cpu-policy/Makefile b/tools/tests/cpu-policy/Makef= ile index 70ff154da6..53b4f28b2a 100644 --- a/tools/tests/cpu-policy/Makefile +++ b/tools/tests/cpu-policy/Makefile @@ -17,10 +17,6 @@ endif .PHONY: all all: $(TARGET-y) =20 -.PHONY: run -run: $(TARGET-y) - ./$(TARGET-y) - .PHONY: clean clean: $(RM) -f -- *.o .*.d .*.d2 test-cpu-policy diff --git a/tools/tests/resource/Makefile b/tools/tests/resource/Makefile index 4bef482966..da5e2a4f9b 100644 --- a/tools/tests/resource/Makefile +++ b/tools/tests/resource/Makefile @@ -6,10 +6,6 @@ TARGET :=3D test-resource .PHONY: all all: $(TARGET) =20 -.PHONY: run -run: $(TARGET) - ./$(TARGET) - .PHONY: clean clean: $(RM) -f -- *.o $(TARGET) $(DEPS_RM) diff --git a/tools/tests/vpci/Makefile b/tools/tests/vpci/Makefile index 5075bc2be2..f172cefd3d 100644 --- a/tools/tests/vpci/Makefile +++ b/tools/tests/vpci/Makefile @@ -6,10 +6,6 @@ TARGET :=3D test_vpci .PHONY: all all: $(TARGET) =20 -.PHONY: run -run: $(TARGET) - ./$(TARGET) - $(TARGET): vpci.c vpci.h list.h main.c emul.h $(HOSTCC) -g -o $@ vpci.c main.c =20 diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/M= akefile index 7b07c31bbd..7b3f58b7a2 100644 --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -7,10 +7,6 @@ TARGET :=3D test_x86_emulator .PHONY: all all: =20 -.PHONY: run -run: $(TARGET) - ./$(TARGET) - # Add libx86 to the build vpath %.c $(XEN_ROOT)/xen/lib/x86 =20 --=20 2.11.0 From nobody Mon Apr 29 14:16:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1623774319; cv=none; d=zohomail.com; s=zohoarc; b=fOmmgcK35HGTMn2H1bn+0uODvpkrAygcQsQzSAlu5UfXZ49TbZ69BldfcCNTZLvK5q/Tgdf4Q/RvArDuVRBS/46/f7S2mJMseje2hKBv0P+0+vQio8zYzFjX893JgVZ3SC/tdf1micl5G9ZsQrd3IugvkQ6QmS0mk8jpIAjmMfA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623774319; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jOu9rSgSOQCBtt/EWxnpKwEKaZimTRpISXaU6Cqq3iA=; b=FWwF4w7Ob8ScejNFLx/UbQ6URtcegM9r4QW6kjAPK4V53/MLJCH7S2A42QJqOmsdfOv+nPc7usKvSqYYaMkWRc+u+QAeiviPfMC4nndnPN8HxFnnz8b2J53a71oZipm0ueh+fwUbgDTDpUo4whRfCppUIqY+7Jjt8sS5OGl9Bzc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1623774319029453.8481124956968; Tue, 15 Jun 2021 09:25:19 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.142286.262590 (Exim 4.92) (envelope-from ) id 1ltBs7-0003Im-Of; Tue, 15 Jun 2021 16:25:03 +0000 Received: by outflank-mailman (output) from mailman id 142286.262590; Tue, 15 Jun 2021 16:25:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBs7-0003If-LF; Tue, 15 Jun 2021 16:25:03 +0000 Received: by outflank-mailman (input) for mailman id 142286; Tue, 15 Jun 2021 16:25:02 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBs6-0003IV-6U for xen-devel@lists.xenproject.org; Tue, 15 Jun 2021 16:25:02 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a890bea2-b883-4064-a3c5-4f17961b9e3e; Tue, 15 Jun 2021 16:25:01 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a890bea2-b883-4064-a3c5-4f17961b9e3e DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1623774301; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SDBx1Aretrpn/nNAfujB3dI0OwxDJgEZecrfpSikAR8=; b=CwSzTEF89YJ2lApoWmXyOpa8SRjvyFmL++rMa+PC+hwUsRqQlRUQHpde RR4y+gc2f5sKsw4kKPBGLu1R4aZ7/3oeiaXhxj3IV6iXYc1wOSAxC/O8M nVv0GwhXmwsyFPZcrRuwnaHwkUSWSvPWtqxEAodx3fiQgzY/byuOAUdAe c=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: cOMLRAZrh4TGYSiccUyZQmJRNeWGCWYTmomE3MYu4tnO/LwNnPFF2qUij/6iSskp0Njvqjrpxr tVLih9Ta5IB/lzBw5jIcBGvdTIj+CjDbzJ0HtlihjFvQlISDn1oPhzA1yzX3A+9M0cu7OGShL+ Vw02kCSflV/jqU731ySCU+bSt05jJUZp7lodESMtC6jGVHe1OxAeQeocl5UZhBpv0RWqwnE2bD 8bvEOSmYeSkUBVk5SJ0R3aL9+QqDAzf3OU/Y4dagUmseijWHxQib8JfFuqtjhPr7fqT84EgbVh Bss= X-SBRS: 5.1 X-MesageID: 46186252 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:3GXDyaoys+EsuLjbOmgImPgaV5rdeYIsimQD101hICG9Evb0qy lhppQmPH7P+VAssRQb8+xoV5PufZqxz/BICMwqTNWftWrdyQyVxeNZnOjfKlTbckWTygce79 YET0EXMrbN5DNB/KLHCWeDcurJwLO8gd+VbeW19QYScem9AZsQnjuQCWygYz1LrBEtP+tBKH IFjPA32gZJfx4sH7yGL0hAZcfvjfvRmqnrZBYXbiRXlDVn3VuTmcXH+wHz5GZlbw9y X-IronPort-AV: E=Sophos;i="5.83,275,1616472000"; d="scan'208";a="46186252" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Juergen Gross Subject: [PATCH 3/5] tests/resource: Rework Makefile Date: Tue, 15 Jun 2021 17:19:03 +0100 Message-ID: <20210615161905.9831-4-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210615161905.9831-1-andrew.cooper3@citrix.com> References: <20210615161905.9831-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) In particular, fill in the install/uninstall rules so this test can be packaged to be automated sensibly. Make all object files depend on the Makefile, and us $(TARGET) when appropriate. Signed-off-by: Andrew Cooper --- CC: Ian Jackson CC: Wei Liu CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Juergen Gross --- tools/tests/resource/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/tests/resource/Makefile b/tools/tests/resource/Makefile index da5e2a4f9b..b22eb6fc21 100644 --- a/tools/tests/resource/Makefile +++ b/tools/tests/resource/Makefile @@ -16,9 +16,12 @@ distclean: clean =20 .PHONY: install install: all + $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) + $(INSTALL_PROG) $(TARGET) $(DESTDIR)$(LIBEXEC_BIN) =20 .PHONY: uninstall uninstall: + $(RM) -f -- $(DESTDIR)$(LIBEXEC_BIN)/$(TARGET) =20 CFLAGS +=3D -Werror CFLAGS +=3D $(CFLAGS_xeninclude) @@ -30,7 +33,9 @@ LDFLAGS +=3D $(LDLIBS_libxenctrl) LDFLAGS +=3D $(LDLIBS_libxenforeignmemory) LDFLAGS +=3D $(APPEND_LDFLAGS) =20 -test-resource: test-resource.o +*.o: Makefile + +$(TARGET): test-resource.o $(CC) -o $@ $< $(LDFLAGS) =20 -include $(DEPS_INCLUDE) --=20 2.11.0 From nobody Mon Apr 29 14:16:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1623774254; cv=none; d=zohomail.com; s=zohoarc; b=ZOA1dSL2oBt4PPczlsRRbXKWNiHDeArW5jvzicvXx0/tm+AZp3tmWrt4xNG54FFJfGvxi+9oZPE5D8WeA856a6ERSwyKXnt1cZXl8mzWfnh0sVMmc5paPp79JSm54UqLeEVsV1Xksf4DGuY4iBaaGRXmmde5nAWbfiYS19sbb8k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623774254; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=49JDDe9gVi+5YtcYYkUlwYrgJbKHhS/CCYUfiGhs6Q8=; b=BXWBUXflw9uC1ogrNUbICPB7ZAf78TLmJuueAv/lbcAHQj6AbpnE6UX0q5Ci565w51eNYuDvESvQU/aYq+REdukt9eUAeR3PsQLaOMoJyuRd5S750P5DCWFhKiRuDU7c42EsbDj36AL2If4aDRC5vmk5z6/9OZdoCy5/HGWHR1E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1623774254597295.4345107389976; Tue, 15 Jun 2021 09:24:14 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.142282.262579 (Exim 4.92) (envelope-from ) id 1ltBr7-0002j4-F5; Tue, 15 Jun 2021 16:24:01 +0000 Received: by outflank-mailman (output) from mailman id 142282.262579; Tue, 15 Jun 2021 16:24:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBr7-0002ix-BN; Tue, 15 Jun 2021 16:24:01 +0000 Received: by outflank-mailman (input) for mailman id 142282; Tue, 15 Jun 2021 16:23:59 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBr5-0002ir-Nd for xen-devel@lists.xenproject.org; Tue, 15 Jun 2021 16:23:59 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 7f270937-ec10-4169-a767-df2b5c9094d9; Tue, 15 Jun 2021 16:23:58 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7f270937-ec10-4169-a767-df2b5c9094d9 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1623774238; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6YdOaL5KylmZkNkd/LcAJqbWCEoLcUzkQwf5yIAr7AQ=; b=JklyLH2WiZDBboUO3a2gOOBLg261dxVE/IV8anYccAqfE8d3RJyVvfV4 ymrsSHBsCJVRNSXUlL22/cT/ktjjhVmQL+d1qereFXktZoaYhctYFtZUE pzhXw74Bh/5hUpXXObdqBdB3oQrubnY3dGLq/VA4+tY5peV8VMv+zcvyR w=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: gs87eUqGl0M/9UU75WbIMd38VSiTKcLnG/iMD30RY2ShXsd7o3Dl2ddIIudeT3xO9Yd8P3ak5c 0f9eWO9D2KSl7C21WfQPpAmaODsJvSa8FAcPC91FuVvJObpoCf0KxA3uo8R90/fdz+PsuqgC9J YiQMN2Jjc8Rn4ugcoafVL3ovBSX1c9ZRrJsTAAGBUZQAprbV4W6JWYgnfw0yzUulD4zR+htd+M kucDi99EPNGOKApW3Ou0naDCaoEjBe9b8R2qNP68fQhLzol+Uss73ZyP0VBsCh3wg5u6vhNE1f qYs= X-SBRS: 5.1 X-MesageID: 46186151 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:w6P3k6yQrTL3u2mWTtreKrPwFL1zdoMgy1knxilNoRw8SKKlfq eV7Y0mPH7P+VAssR4b+exoVJPtfZqYz+8R3WBzB8bEYOCFghrKEGgK1+KLqFeMJ8S9zJ846U 4JSdkHNDSaNzlHZKjBjzVQa+xQouW6zA== X-IronPort-AV: E=Sophos;i="5.83,275,1616472000"; d="scan'208";a="46186151" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Juergen Gross Subject: [PATCH 4/5] tests/cpu-policy: Rework Makefile Date: Tue, 15 Jun 2021 17:19:04 +0100 Message-ID: <20210615161905.9831-5-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210615161905.9831-1-andrew.cooper3@citrix.com> References: <20210615161905.9831-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) In particular, fill in the install/uninstall rules so this test can be packaged to be automated sensibly. Rework TARGET-y to be TARGETS, drop the unconditional -O3 and use the defau= lt instead, and drop CFLAGS from the link line but honour APPEND_LDFLAGS. Signed-off-by: Andrew Cooper --- CC: Ian Jackson CC: Wei Liu CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Juergen Gross --- tools/tests/cpu-policy/Makefile | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/tools/tests/cpu-policy/Makefile b/tools/tests/cpu-policy/Makef= ile index 53b4f28b2a..ab3e0ffde3 100644 --- a/tools/tests/cpu-policy/Makefile +++ b/tools/tests/cpu-policy/Makefile @@ -1,25 +1,23 @@ XEN_ROOT =3D $(CURDIR)/../../.. include $(XEN_ROOT)/tools/Rules.mk =20 -TARGET-y :=3D test-cpu-policy +TARGETS :=3D =20 # For brevity, these tests make extensive use of designated initialisers in # anonymous unions, but GCCs older than 4.6 can't cope. Ignore the test in # this case. -ifneq ($(clang),y) -TARGET-$(call cc-ver,$(CC),lt,0x040600) :=3D -endif - -ifeq ($(TARGET-y),) +ifneq ($(gcc)$(call cc-ver,$(CC),lt,0x040600),yy) +TARGETS +=3D test-cpu-policy +else $(warning Test harness not built, use newer compiler than "$(CC)" (version= $(shell $(CC) -dumpversion))) endif =20 .PHONY: all -all: $(TARGET-y) +all: $(TARGETS) =20 .PHONY: clean clean: - $(RM) -f -- *.o .*.d .*.d2 test-cpu-policy + $(RM) -f -- *.o $(TARGETS) $(DEPS_RM) =20 .PHONY: distclean distclean: clean @@ -27,15 +25,24 @@ distclean: clean =20 .PHONY: install install: all + $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) + $(if $(TARGETS),$(INSTALL_PROG) $(TARGETS) $(DESTDIR)$(LIBEXEC_BIN)) =20 .PHONY: uninstall +uninstall: + $(RM) -f -- $(addprefix $(DESTDIR)$(LIBEXEC_BIN)/,$(TARGETS)) =20 -CFLAGS +=3D -Werror $(CFLAGS_xeninclude) -D__XEN_TOOLS__ -O3 +CFLAGS +=3D -Werror -D__XEN_TOOLS__ +CFLAGS +=3D $(CFLAGS_xeninclude) CFLAGS +=3D $(APPEND_CFLAGS) =20 -vpath %.c ../../../xen/lib/x86 +LDFLAGS +=3D $(APPEND_LDFLAGS) + +vpath %.c $(XEN_ROOT)/xen/lib/x86 + +*.o: Makefile =20 test-cpu-policy: test-cpu-policy.o msr.o cpuid.o policy.o - $(CC) $(CFLAGS) $^ -o $@ + $(CC) $^ -o $@ $(LDFLAGS) =20 -include $(DEPS_INCLUDE) --=20 2.11.0 From nobody Mon Apr 29 14:16:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1623774028; cv=none; d=zohomail.com; s=zohoarc; b=Ac6p/xHJn426G7us6xQWoG8JcpgdxBBvYnwhUZgs+Dd+N0E8vKX9gL0zy+VRdFuGrBv7RUwDVL6cfSAa0R4ZNvqK23tPvy//iHBz0J4vYZNbAV1KZzENNGlWEILONfysTC5NIYSfLBctux23mkF7Ll2VIineGzLuOcNSnFArJXg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623774028; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oSudJej6VwR9bkbyzfu46vuJn+xSTHUoU1MIVAOqbB0=; b=Iy00/AptJviK7DbdCPrBy0Wnlh80HZjJ829CPlRvIYirW7Z/1Hw357Ra3zhILWP3he7uUkl9U34BxgFYmwHR7HegUXW54Im+TG7p8/+EQ+aFPCbpSsVdSaKqnttQG3Vl9B3FGAvZTwTsv1/KyRDPFt2i5xpyDOrfCdbuMasSRjY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16237740282981003.3413970120793; Tue, 15 Jun 2021 09:20:28 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.142264.262561 (Exim 4.92) (envelope-from ) id 1ltBnU-0001Nk-TS; Tue, 15 Jun 2021 16:20:16 +0000 Received: by outflank-mailman (output) from mailman id 142264.262561; Tue, 15 Jun 2021 16:20:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBnU-0001Mt-P4; Tue, 15 Jun 2021 16:20:16 +0000 Received: by outflank-mailman (input) for mailman id 142264; Tue, 15 Jun 2021 16:20:16 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ltBnU-0001I3-1Q for xen-devel@lists.xenproject.org; Tue, 15 Jun 2021 16:20:16 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 97388bdc-2743-4f93-8aaa-34c51520979e; Tue, 15 Jun 2021 16:20:15 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 97388bdc-2743-4f93-8aaa-34c51520979e DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1623774014; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AvUFbf3FSMcV+rluVuwGLyq8UftlOj+vpVc2Zx0Ih3c=; b=fG/JNQxiBlnVHxBaYAr10OFENtr0/fogTkbQuzalC5rVQJPHpVa7Til5 7DmA/ZIHaP4GqSsDqtLNyillujqrxkiLEMBluGJSo4fcMWk0WmXzPxgAy T2eW66uZfRRLdFPJYdVtRhumPqNblyDwpDUmYWXrNInnnWzY4aISAZi5j k=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: q5xrZZJri4rT2UW6TqANu9YkT7bgIzgR/i3TaOP9zZjx4NWlRnzChVlUfTvKm18qpmxKXuooe9 +COybCnVGTXoJL/QcxIOY7AN6QPxVjw5iFOAXei2Cqg7M6h0HRQ79oaHDGmrAv9jPLcDsEGYSS w/X3PjGkvaSWGCZQLhg84drRu7NWNfsQ+NHy/xP5gcpORzEFS1t4+yMq12azvg8kaB5DIiwIqd zLguIR0wfOUZuxoxLPdE36gHfAgJ0z5IJ64BJ8+633Kr3OzGoW6J561QIeU6DpuTx3bpK5FE75 K0Y= X-SBRS: 5.1 X-MesageID: 46185793 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:0lTbQq31AEh6IFNLlqwSTAqjBIokLtp133Aq2lEZdPRUGvb3qy nIpoVj6faUskd2ZJhOo7C90cW7LU80sKQFhLX5Xo3SOzUO2lHYT72KhLGKq1aLdhEWtNQtsZ uIG5IOcOEYZmIasS+V2maF+q4bsbu6zJw= X-IronPort-AV: E=Sophos;i="5.83,275,1616472000"; d="scan'208";a="46185793" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Juergen Gross Subject: [PATCH 5/5] tests/xenstore: Rework Makefile Date: Tue, 15 Jun 2021 17:19:05 +0100 Message-ID: <20210615161905.9831-6-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210615161905.9831-1-andrew.cooper3@citrix.com> References: <20210615161905.9831-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) In particular, fill in the install/uninstall rules so this test can be packaged to be automated sensibly. Rename xs-test to test-xenstore to be consistent with other tests. Honour APPEND_FLAGS too. Signed-off-by: Andrew Cooper --- CC: Ian Jackson CC: Wei Liu CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Juergen Gross --- .gitignore | 1 - tools/tests/xenstore/.gitignore | 1 + tools/tests/xenstore/Makefile | 31 +++++++++++++++---= ---- .../tests/xenstore/{xs-test.c =3D> test-xenstore.c} | 0 4 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 tools/tests/xenstore/.gitignore rename tools/tests/xenstore/{xs-test.c =3D> test-xenstore.c} (100%) diff --git a/.gitignore b/.gitignore index d4b90303b2..8ebb51b6c5 100644 --- a/.gitignore +++ b/.gitignore @@ -275,7 +275,6 @@ tools/tests/x86_emulator/*sse*.[ch] tools/tests/x86_emulator/test_x86_emulator tools/tests/x86_emulator/x86_emulate tools/tests/x86_emulator/xop*.[ch] -tools/tests/xenstore/xs-test tools/tests/vpci/list.h tools/tests/vpci/vpci.[hc] tools/tests/vpci/test_vpci diff --git a/tools/tests/xenstore/.gitignore b/tools/tests/xenstore/.gitign= ore new file mode 100644 index 0000000000..4b44f5dd60 --- /dev/null +++ b/tools/tests/xenstore/.gitignore @@ -0,0 +1 @@ +test-xenstore diff --git a/tools/tests/xenstore/Makefile b/tools/tests/xenstore/Makefile index a367d88803..3c7b7073fd 100644 --- a/tools/tests/xenstore/Makefile +++ b/tools/tests/xenstore/Makefile @@ -1,11 +1,7 @@ XEN_ROOT=3D$(CURDIR)/../../.. include $(XEN_ROOT)/tools/Rules.mk =20 -CFLAGS +=3D -Werror - -CFLAGS +=3D $(CFLAGS_libxenstore) - -TARGETS-y :=3D xs-test +TARGETS-y :=3D test-xenstore TARGETS :=3D $(TARGETS-y) =20 .PHONY: all @@ -16,14 +12,31 @@ build: $(TARGETS) =20 .PHONY: clean clean: - $(RM) *.o $(TARGETS) *~ $(DEPS_RM) + $(RM) -f -- *.o $(TARGETS) $(DEPS_RM) =20 .PHONY: distclean distclean: clean + $(RM) -f -- *~ + +.PHONY: install +install: all + $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) + $(if $(TARGETS),$(INSTALL_PROG) $(TARGETS) $(DESTDIR)$(LIBEXEC_BIN)) + +.PHONY: uninstall +uninstall: + $(RM) -f -- $(addprefix $(DESTDIR)$(LIBEXEC_BIN)/,$(TARGETS)) + +CFLAGS +=3D -Werror +CFLAGS +=3D $(CFLAGS_libxenstore) +CFLAGS +=3D $(APPEND_CFLAGS) + +LDFLAGS +=3D $(LDLIBS_libxenstore) +LDFLAGS +=3D $(APPEND_LDFLAGS) =20 -xs-test: xs-test.o Makefile - $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenstore) +%.o: Makefile =20 -install uninstall: +test-xenstore: test-xenstore.o + $(CC) -o $@ $< $(LDFLAGS) =20 -include $(DEPS_INCLUDE) diff --git a/tools/tests/xenstore/xs-test.c b/tools/tests/xenstore/test-xen= store.c similarity index 100% rename from tools/tests/xenstore/xs-test.c rename to tools/tests/xenstore/test-xenstore.c --=20 2.11.0