Rebased on top of upstream head commit:
0ed2cdf3c8 arm64: Fix sve_vl() for build errors
Update Note:
* The following issues have been fixed:
- LP: #2056127 ubuntu_kvm_unit_tests failed to build on s390x
- LP: #1943841 svm - FAIL: MSR_IA32_LASTBRANCHFROMIP on N/O
- LP: #1991924 vmx_controls_test on N/O
- LP: #1991918 test_vmxon on J
* Bugs opened after this update:
- LP: #2092558 vmx_controls_test from ubuntu_kvm_unit_tests failed
with "KVM_GET_PIT2 failed: Input/output error"
* Typo fixed in MSR test: SMR > MSR, bug and hints updated.
* sru-xenial branch untouched.
* sru-bionic branch created, with head set to previous sru branch:
- UBUNTU: SAUCE: Upstream head SHA1 02d8befe99
It won't be updated in the future.
vmx test contain a bunch of different tests.
Split failed test cases in vmx out as standalone tests to improve our
test granularity. Make it easier to do result hinting and allow this
test to finish properly without being terminated prematurely.
This SAUCE patch will split the following tests out of vmx:
* rdtsc_vmexit_diff_test
* test_vmread_flags_touch
* test_vmwrite_flags_touch
* test_vmwrite_vmread
* test_vmxon
* vmx_apic_passthrough_test
* vmx_controls_test
* vmx_cr_load_test
* vmx_cr4_osxsave_test
* vmx_db_test
* vmx_guest_state_area_test
* vmx_hlt_with_rvi_test
* vmx_host_state_area_test
* vmx_intr_window_test
* vmx_mtf_test
* vmx_mtf_pdpte_test
* vmx_nmi_window_test
* vmx_pending_event_test
* vmx_preemption_timer_tf_test
* vmx_preemption_timer_zero_test
* vmx_store_tsc_test
Signed-off-by: Po-Hsu Lin <email address hidden>
0ed2cdf...
by
Suzuki K Poulose <email address hidden>
arm64: Fix sve_vl() for build errors
commit 5b9895f8a5d9 ("arm: Fix clang error in sve_vl()") breaks the build
with the following compiler version, as the "rdvl" expects a 64bit register.
/tmp/ccGJYtuC.s: Assembler messages:
/tmp/ccGJYtuC.s:2165: Error: operand mismatch -- `rdvl w3,#8'
/tmp/ccGJYtuC.s:2165: Info: did you mean this?
/tmp/ccGJYtuC.s:2165: Info: rdvl x3, #8
make: *** [<builtin>: arm/selftest.o] Error 1
make: *** Waiting for unfinished jobs....
$ aarch64-none-elf-gcc --version
aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 20201103
Fix this by switching to use "unsigned long" variable and restoring the 64bit
register for the instruction
Fixes: 5b9895f8a5d9 ("arm: Fix clang error in sve_vl()")
Cc: Raghavendra Rao Ananta <email address hidden>
Cc: Andrew Jones <email address hidden>
Signed-off-by: Suzuki K Poulose <email address hidden>
Signed-off-by: Andrew Jones <email address hidden>
Add some tests for all of the HSM extension functions. These tests
ensure that the HSM extension functions follow the behavior as described
in the SBI specification.
Signed-off-by: James Raphael Tiovalen <email address hidden>
[Made the changes requested in the last review.]
Signed-off-by: Andrew Jones <email address hidden>
Introduce tests for SBI system suspend. The basic test makes
sure it works and other tests make sure it fails as expected
with invalid entry criteria.
To test on QEMU or hardware the firmware needs to support system
suspend. For QEMU, OpenSBI can be told to enable its system
suspend test mode by creating a new DTB which has
Ensure IPIs directed at single harts are received and also that all
harts receive IPIs on broadcast. Also check for invalid param errors
when the params result in hartids greater than the max.
Signed-off-by: Cade Richard <email address hidden>
Co-developed-by: Andrew Jones <email address hidden>
Signed-off-by: Andrew Jones <email address hidden>