linux-yocto/tools/testing/selftests/kvm/include/s390x
Christoph Schlameuss 100932fc37 selftests: kvm: s390: Add debug print functions
Add functions to simply print some basic state information in selftests.

The output can be enabled by setting:

    #define TH_LOG_ENABLED 1
    #define DEBUG 1

* print_psw: current SIE state description and VM run state
* print_hex_bytes: print memory with some counting markers
* print_hex: PRINT_HEX with 512 bytes
* print_run: use print_psw and print_hex to print contents of VM run
  state and SIE state description
* print_regs: print content of general and control registers

All prints use pr_debug for the output and can be configured using
DEBUG.

Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20240807154512.316936-6-schlameuss@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20240807154512.316936-6-schlameuss@linux.ibm.com>
2024-08-19 07:51:15 +00:00
..
debug_print.h selftests: kvm: s390: Add debug print functions 2024-08-19 07:51:15 +00:00
diag318_test_handler.h
kvm_util_arch.h KVM: selftests: Allow tagging protected memory in guest page tables 2024-02-28 16:39:49 -08:00
processor.h selftests: kvm: s390: Define page sizes in shared header 2024-08-19 07:51:15 +00:00
sie.h selftests: kvm: s390: Add kvm_s390_sie_block definition for userspace tests 2024-08-19 07:51:15 +00:00
ucall.h Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00