From patchwork Sat Oct 31 14:40:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 11871451 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE59DC388F7 for ; Sat, 31 Oct 2020 14:41:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6BE5C206A5 for ; Sat, 31 Oct 2020 14:41:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TZL3hv9z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbgJaOlD (ORCPT ); Sat, 31 Oct 2020 10:41:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:42795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727842AbgJaOlB (ORCPT ); Sat, 31 Oct 2020 10:41:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604155260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/b9J+vxOttrgBJE1uXeDHgYSPta6eEMpYMEoomCmbKc=; b=TZL3hv9zUjxTbVsi72GXapPQP1GQ9YJPaT7aMcKJfwaY2dCkwgle6Wc4lbMuUCSUTm4vkc ZXyNganIShiIDYqcOdWUdNv7hEHJw/nQXBsbrChx+F3TB5FFoBKVotPoBwTQu8uf5mpY6+ pouo7lsNeRsldYQuQ9tLJXCzXlzrJdE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-502-sNyNJntKNrmgi-OeUaNofw-1; Sat, 31 Oct 2020 10:40:54 -0400 X-MC-Unique: sNyNJntKNrmgi-OeUaNofw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BFFF9425F0; Sat, 31 Oct 2020 14:40:53 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7207B19C66; Sat, 31 Oct 2020 14:40:53 +0000 (UTC) From: Paolo Bonzini To: kvm@vger.kernel.org Cc: Po-Hsu Lin Subject: [PATCH kvm-unit-tests] reduce number of iterations for apic test Date: Sat, 31 Oct 2020 10:40:52 -0400 Message-Id: <20201031144052.3982250-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The test generally fails quite quickly, 1 million iterations is a lot and, on Azure cloud hyperv instance Standard_D48_v3, it will take about 45 seconds to run this apic test. It takes even longer (about 150 seconds) to run inside a KVM instance VM.Standard2.1 on Oracle cloud. Reported-by: Po-Hsu Lin Signed-off-by: Paolo Bonzini Reviewed-by: Jim Mattson --- x86/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/apic.c b/x86/apic.c index 82c6ab2..23508ad 100644 --- a/x86/apic.c +++ b/x86/apic.c @@ -437,7 +437,7 @@ static void test_multiple_nmi(void) handle_irq(2, multiple_nmi_handler); handle_irq(0x44, flush_nmi); on_cpu_async(1, kick_me_nmi, 0); - for (i = 0; i < 1000000; ++i) { + for (i = 0; i < 100000; ++i) { nmi_flushed = false; nmi_received = 0; ++cpu0_nmi_ctr1;