From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA88B2D1303 for ; Fri, 25 Jul 2025 09:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753437278; cv=none; b=a3RxKRysnE7H6HTrpPhgGijUBbXCMZAx0G8xvzA77CJEb2yZEv7UrxBzueLkKPF3qhbx3hZgkIDlBK2qyZHWwzdPOhFyqJksoGV7bi1k0T6+MEjQnllknFkR+7S6nsCkuid3xVWCUkogqigpj+yqW9gWZ98y8y7bLEt1pjGpTGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753437278; c=relaxed/simple; bh=KChveHbOCYF7zMBUVHiIUe8XxZ3iE2wJqfvmxLkArS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TOp7ICR9UT/F7mx5TyDZ3vxggdZbbgl8NYmcG9Md3FSE/2LJEQgzQJMZoLyS8L1kBI/q9pguXIZ/uviyly+fWjw4cNpzgOsT3Qd6nFOJqBiwzZ/Zmo1FHjbKm4uBXMm6kcNKw6PZG4ted1NnpX/y+Ifm+zLK6VEf/Xc9s+jdmAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=HHK8dxmH; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HHK8dxmH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1753437275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QHNEaOmHqTBXQr3ZK1DnQMrfdnixNSdgYBO+ynJLrTo=; b=HHK8dxmHuXULsHQBwJIxOnjLaTqLwRj2+Di/t+KI/1jYSGNWwcTXiWK12Q/0MeyBYyXFH1 V6YpC+6hPWATrOq49vR8uz7JEvO2VLUBptAB0FRti+wEJTt8cQ/w3+EZSctfGyyeAMDcCz pPj4UBaoycFPIFBolweJ33qr46bB6ag= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-311-ng3InHZoOx2BUYiAOhDaJQ-1; Fri, 25 Jul 2025 05:54:33 -0400 X-MC-Unique: ng3InHZoOx2BUYiAOhDaJQ-1 X-Mimecast-MFC-AGG-ID: ng3InHZoOx2BUYiAOhDaJQ_1753437272 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C46DC19560A2 for ; Fri, 25 Jul 2025 09:54:32 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq2.redhat.com (dell-r430-03.lab.eng.brq2.redhat.com [10.37.153.18]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9592919560AA; Fri, 25 Jul 2025 09:54:31 +0000 (UTC) From: Igor Mammedov To: kvm@vger.kernel.org Cc: pbonzini@redhat.com, peterx@redhat.com Subject: [kvm-unit-tests PATCH v4 0/5] x86: add HPET counter tests Date: Fri, 25 Jul 2025 11:54:24 +0200 Message-ID: <20250725095429.1691734-1-imammedo@redhat.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Changelog: v4: * fix smap/pku/pks tests that were failing CI * on_cpus() wasn't running task on CPUs above 255, fix x86/smp code to correctly account for APIC IDs above 255 * bump max cpus limit to 1024 * hpet: count 0 latency as failure to avoid missing APs that doesn't run reader task * hpet: replace on_cpus() with on_cpus_async() to to run reader task only on explicitly selected APs. v3: * fix test running long time due to control thread also running read test and stalling starting other threads * improve latency accuracy * increase max number of vcpus to 448 (that's what I had in hands for testing) previous rev: "[kvm-unit-tests PATCH v3 0/2] x86: add HPET counter tests" https://yhbt.net/lore/all/20250718155738.1540072-1-imammedo@redhat.com/T/#t Igor Mammedov (5): x86: resize id_map[] elements to u32 x86: fix APs with APIC ID more that 255 not showing in id_map x86: move USERBASE to 32Mb in smap/pku/pks tests x86: bump number of max cpus to 1024 x86: add HPET counter read micro benchmark and enable/disable torture tests lib/x86/apic.h | 2 +- lib/x86/smp.h | 2 +- lib/x86/apic.c | 2 +- lib/x86/setup.c | 2 +- x86/Makefile.common | 2 + x86/cstart.S | 2 +- x86/hpet_read_test.c | 93 ++++++++++++++++++++++++++++++++++++++++++++ x86/pks.c | 2 +- x86/pku.c | 2 +- x86/smap.c | 2 +- 10 files changed, 103 insertions(+), 8 deletions(-) create mode 100644 x86/hpet_read_test.c -- 2.47.1