lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251104113700.1561752-1-maobibo@loongson.cn>
Date: Tue,  4 Nov 2025 19:36:52 +0800
From: Bibo Mao <maobibo@...ngson.cn>
To: Paolo Bonzini <pbonzini@...hat.com>,
	Sean Christopherson <seanjc@...gle.com>,
	Huacai Chen <chenhuacai@...nel.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/7] KVM: LoongArch: selftests: Add timer test case

This patchset adds timer test case for LoongArch system, it is based
on common arch_timer test case. And it includes one-shot and period mode
timer interrupt test, software emulated timer function and time counter
test.
---
v1 ... v2:
  1. Restore PC and PRMD after exception handler.
  2. Split patch 4 into two small patches with period timer test and
     time counter test.
  3. With time counter test, set time count with 0 when create VM. And
     verify time count starts from 0 in guest code. 
---
Bibo Mao (7):
  KVM: LoongArch: selftests: Add system registers save and restore on
    exception
  KVM: LoongArch: selftests: Add exception handler register interface
  KVM: LoongArch: selftests: Add basic interfaces
  KVM: LoongArch: selftests: Add timer test case with one-shot mode
  KVM: LoongArch: selftests: Add period mode timer test
  KVM: LoongArch: selftests: Add SW emulated timer test
  KVM: LoongArch: selftests: Add time counter test

 tools/testing/selftests/kvm/Makefile.kvm      |  10 +-
 .../kvm/include/loongarch/arch_timer.h        |  84 ++++++++
 .../kvm/include/loongarch/processor.h         |  81 +++++++-
 .../selftests/kvm/lib/loongarch/exception.S   |   6 +
 .../selftests/kvm/lib/loongarch/processor.c   |  47 ++++-
 .../selftests/kvm/loongarch/arch_timer.c      | 195 ++++++++++++++++++
 6 files changed, 417 insertions(+), 6 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/include/loongarch/arch_timer.h
 create mode 100644 tools/testing/selftests/kvm/loongarch/arch_timer.c


base-commit: ec0b62ccc986c06552c57f54116171cfd186ef92
-- 
2.39.3


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ