From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:adf:ef42:0:0:0:0:0 with SMTP id c2csp889626wrp; Wed, 11 Sep 2019 06:49:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmBCR5hDutMHZbMDome6Ld7ycSxLHzkK++Rm2SXRvcAIb9XaML34FSMDTUoBf0eyw//wpj X-Received: by 2002:a05:620a:15d4:: with SMTP id o20mr35823614qkm.471.1568209792661; Wed, 11 Sep 2019 06:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568209792; cv=none; d=google.com; s=arc-20160816; b=DVgsd+fEuKOzfxzSjtDJ50gCgFSIH/d9tyIxiCJUI5NI5kM91CHUnYC4VkaMUUeSIs VOcB/yl6+WJpav/YvJsRx7d3ogpcb+o/JsiXG+FE5DKtnn5E6SdG2i2Xoh6ringeq/qs YjUJLkHSFs9sxvHqp8caeJcM2svGtnyKLS5YeSxhMLgLN61qo1B35+IF+f/M6+ofr/mt dJCaRF/suMmC52/wv2C4v+enBcknSV/itLwmG2ltzhgoBjw3NwoZkDuJHb2d4eN2X0JN y3OeQpd+MmGm+3Z6jPSAxM5osvL0krgLW/DLJs5Kh2CEfJL9PGEgwjOoMvehvSHjOvYb V1SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:to:from:date; bh=hAL/nGbfwrhaAkCv5ycID8MfCwyLw9zVJXJ7UIWnPrY=; b=0nvYFBbefee0fqaRsYMqIdZt4c/cJFBjod7wcExuuqZeBRX+zEg2LpLDg2gqjzlOhS na/2Jui1PEJ5VdlfdF3owo5NOdnW/134BpQk9r3kEUGxtrj3PiNVdg3NngkAyxfTu0Gr nqbD4i0BnzbZsf0374D4bcm06mhXCHarSv+o5u1WnZiS5/8tkwPUVMTB7o5chonSYNCW ooGR0tPXTF/+MEURs3sRq6KOmFKUXUrahFHrvmbaa1GU5XmDMpJaQrO42TKYSgn+SUF7 k1DA68E0GMzn1tygtwBHAarod2YADMgnuN63laixiJuLlyKwMMOELSlCu7+7cIAABh97 orlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 128si17142077qkd.55.2019.09.11.06.49.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 06:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:51278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i830K-0006iV-4y for alex.bennee@linaro.org; Wed, 11 Sep 2019 09:49:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35090) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i82xY-0004mO-6s for qemu-devel@nongnu.org; Wed, 11 Sep 2019 09:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i82xX-0000hn-0u for qemu-devel@nongnu.org; Wed, 11 Sep 2019 09:47:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59188) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i82xS-0000aG-Tz; Wed, 11 Sep 2019 09:46:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8379118CB908; Wed, 11 Sep 2019 13:46:53 +0000 (UTC) Received: from localhost (unknown [10.43.2.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A6F410016EB; Wed, 11 Sep 2019 13:46:48 +0000 (UTC) Date: Wed, 11 Sep 2019 15:46:46 +0200 From: Igor Mammedov To: Shameer Kolothum Message-ID: <20190911154646.624469f4@redhat.com> In-Reply-To: <20190904085629.13872-12-shameerali.kolothum.thodi@huawei.com> References: <20190904085629.13872-1-shameerali.kolothum.thodi@huawei.com> <20190904085629.13872-12-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.63]); Wed, 11 Sep 2019 13:46:53 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: Re: [Qemu-devel] [PATCH-for-4.2 v10 11/11] tests: Add bios tests to arm/virt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, sameo@linux.intel.com, shannon.zhaosl@gmail.com, ard.biesheuvel@linaro.org, qemu-devel@nongnu.org, xuwei5@hisilicon.com, linuxarm@huawei.com, eric.auger@redhat.com, qemu-arm@nongnu.org, sebastien.boeuf@intel.com, lersek@redhat.com Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: DfSmt1O/nTqz On Wed, 4 Sep 2019 09:56:29 +0100 Shameer Kolothum wrote: > This adds numamem and memhp tests for arm/virt platform > > Signed-off-by: Shameer Kolothum Reviewed-by: Igor Mammedov > --- > tests/bios-tables-test-allowed-diff.h | 1 + > tests/bios-tables-test.c | 49 +++++++++++++++++++++++++++ > 2 files changed, 50 insertions(+) > > diff --git a/tests/bios-tables-test-allowed-diff.h b/tests/bios-tables-test-allowed-diff.h > index 7b4adbc822..d181a4da4a 100644 > --- a/tests/bios-tables-test-allowed-diff.h > +++ b/tests/bios-tables-test-allowed-diff.h > @@ -1,2 +1,3 @@ > /* List of comma-separated changed AML files to ignore */ > "tests/data/acpi/virt/DSDT", > +"tests/data/acpi/virt/SRAT", > diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c > index a356ac3489..1d6f330d53 100644 > --- a/tests/bios-tables-test.c > +++ b/tests/bios-tables-test.c > @@ -871,6 +871,53 @@ static void test_acpi_piix4_tcg_dimm_pxm(void) > test_acpi_tcg_dimm_pxm(MACHINE_PC); > } > > +static void test_acpi_virt_tcg_memhp(void) > +{ > + test_data data = { > + .machine = "virt", > + .accel = "tcg", > + .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", > + .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", > + .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", > + .ram_start = 0x40000000ULL, > + .scan_len = 256ULL * 1024 * 1024, > + }; > + > + data.variant = ".memhp"; > + test_acpi_one(" -cpu cortex-a57" > + " -object memory-backend-ram,id=ram0,size=128M" > + " -object memory-backend-ram,id=ram1,size=128M" > + " -numa node,memdev=ram0 -numa node,memdev=ram1" > + " -numa dist,src=0,dst=1,val=21", > + &data); > + > + free_test_data(&data); > + > +} > + > +static void test_acpi_virt_tcg_numamem(void) > +{ > + test_data data = { > + .machine = "virt", > + .accel = "tcg", > + .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", > + .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", > + .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", > + .ram_start = 0x40000000ULL, > + .scan_len = 128ULL * 1024 * 1024, > + }; > + > + data.variant = ".numamem"; > + test_acpi_one(" -cpu cortex-a57" > + " -object memory-backend-ram,id=ram0,size=128M" > + " -numa node,memdev=ram0", > + &data); > + > + free_test_data(&data); > + > +} > + > static void test_acpi_virt_tcg(void) > { > test_data data = { > @@ -917,6 +964,8 @@ int main(int argc, char *argv[]) > qtest_add_func("acpi/q35/dimmpxm", test_acpi_q35_tcg_dimm_pxm); > } else if (strcmp(arch, "aarch64") == 0) { > qtest_add_func("acpi/virt", test_acpi_virt_tcg); > + qtest_add_func("acpi/virt/numamem", test_acpi_virt_tcg_numamem); > + qtest_add_func("acpi/virt/memhp", test_acpi_virt_tcg_memhp); > } > ret = g_test_run(); > boot_sector_cleanup(disk);