~canonical-kernel-team/+git/kvm-unit-tests:sru-xenial

Last commit made on 2022-10-07
Get this branch:
git clone -b sru-xenial https://git.launchpad.net/~canonical-kernel-team/+git/kvm-unit-tests
Members of Canonical Kernel Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
sru-xenial
Repository:
lp:~canonical-kernel-team/+git/kvm-unit-tests

Recent commits

6a7ccca... by Po-Hsu Lin

UBUNTU: SAUCE: Revert "s390x: add test for SIGP STORE_ADTL_STATUS order"

The ADTL test will fail to build on Xenial with:
    s390x/adtl-status.c:204:1: error: unrecognizable insn:

Since this is already an EOL series, let just revert these adtl tests.

This reverts commit db1f35d9375bb7a3854dd8a7a18536b0ec372b16.

Signed-off-by: Po-Hsu Lin <email address hidden>

3d88fcf... by Po-Hsu Lin

UBUNTU: SAUCE: Revert "s390x: add basic migration test"

The s390x migration test will fail to build on Xenial with:
  s390x/migration.c:12:24: fatal error: asm/vector.h: No such file or directory

Since this is already an EOL series, let just revert migration related
tests.

This reverts commit 914ba23657d5c43f81e2f0f944b7cf17ff40f4c0.

Signed-off-by: Po-Hsu Lin <email address hidden>

136c7fa... by Po-Hsu Lin

UBUNTU: SAUCE: Revert "s390x: add cmm migration test"

The s390x migration test will fail to build on Xenial with:
  s390x/migration.c:12:24: fatal error: asm/vector.h: No such file or directory

Since this is already an EOL series, let just revert migration related
tests.

This reverts commit 2610bc4c1bb3802dc7242d53448659cde256ed11.

Signed-off-by: Po-Hsu Lin <email address hidden>

fc7294b... by Po-Hsu Lin

UBUNTU: SAUCE: Revert "s390x: add migration test for storage keys"

The s390x migration test will fail to build on Xenial with:
  s390x/migration.c:12:24: fatal error: asm/vector.h: No such file or directory

Since this is already an EOL series, let just revert migration related
tests.

This reverts commit 1a7b0521a2cdfed74775b416f7866a9baff967c7.

Signed-off-by: Po-Hsu Lin <email address hidden>

ac836ea... by Po-Hsu Lin

UBUNTU: SAUCE: Upstream head SHA1 d8a4f9e5e8

Rebased on top of upstream head commit:
d8a4f9e5e8 ci: Update the list of tests that we run in the Fedora Cirrus-CI

Update Note:
  * We will start using the "sru" branch for SRU in the future
  * All the other SAUCE patches were dropped, except the one to revert tests for X-s390x,
    which will be hosted in "sru-xenial" branch:
    - UBUNTU: SAUCE: Revert "s390x: add test for SIGP STORE_ADTL_STATUS order"
    - UBUNTU: SAUCE: Revert "s390x: add basic migration test"
    - UBUNTU: SAUCE: Revert "s390x: add cmm migration test"
    - UBUNTU: SAUCE: Revert "s390x: add migration test for storage keys"
  * Tested on T~K generic with all available hardware in bare-metal pool, Please take result
    of K in d2022.09.27, B/F/J in 2022.09.19 , X in 2022.08.29, T in 2022.07.11 as a reference
  * Bugs closed after this update:
    - LP: #1748105 port80 test in ubuntu_kvm_unit_tests failed with timeout
    - LP: #1828026 gicv2-mmio-up in ubuntu_kvm_unit_tests failed on X-hwe ARM64
    - LP: #1828027 gicv2-mmio-3p in ubuntu_kvm_unit_tests failed on X-hwe ARM64
    - LP: #1931384 ubuntu_kvm_unit_tests: vmx_preemption_timer_expiry_test failed (FAIL: Last stored
      guest TSC (22838115790) < TSC deadline (22838103136))
    - LP: #1936405 ubuntu_kvm_unit_test:gicv2-ipi: test failed with timeout on mcdivitt.*
    - LP: #1939124 virt_x2apic_mode_test in vmx from ubuntu_kvm_unit_tests failed on B-4.15 amd64
    - LP: #1943012 gicv2-mmio in ubuntu_kvm_unit_tests failed with on X ARM64 Moonshots
    - LP: #1943014 pmu-cycle-counter in ubuntu_kvm_unit_tests failed with on X ARM64 Moonshots
    - LP: #1943845 ubuntu_kvm_unit_tests:sprs: SPR 9: 000000000000000000 <==> 0xc0000000001222bc
    - LP: #1945037 test_vmwrite_vmread in vmx of ubuntu_kvm_unit_tests failed on 5.14/5.15
    - LP: #1956322 sprs in ubunut_kvm_unit_tests timeout on PowerPC
    - LP: #1956428 firq-linear-cpu-ids in ubuntu_kvm_unit_tests failed on s390x
    - LP: #1956429 firq-nonlinear-cpu-ids in ubuntu_kvm_unit_tests failed on s390x
  * With more tests added in this update, it is known to have the following issues:
    - LP: #1992144 test_vmwrite_flags_touch in ubuntu_kvm_unit_tests failed with K-5.19
    - LP: #1992143 test_vmread_flags_touch in ubuntu_kvm_unit_tests failed with K-5.19
    - LP: #1991935 firq-nonlinear-cpu-ids-tcg in ubuntu_kvm_unit_tests failed with Bionic 4.15 s390x
    - LP: #1991933 firq-nonlinear-cpu-ids-kvm in ubuntu_kvm_unit_tests failed with Bionic 4.15 s390x
    - LP: #1991928 debug-bp-migration in ubuntu_kvm_unit_tests failed with B-4.15 ARM64 (QEMU Aborted)
    - LP: #1991924 vmx_controls_test in ubuntu_kvm_unit_test failed (FAIL: x86/vmx_tests.c:3607:
      Assertion failed: vmcs_write(CR3_TARGET_0 + i*2, 0))
    - LP: #1991922 svm_npt from ubuntu_kvm_unit_tests failed on node gonzo (FAIL: npt_rw_pfwalk)
    - LP: #1991918 test_vmxon in kvm-unit-test failed (FAIL: VMXON with CR0 bit 5 cleared should #UD,
      got '0') (hw-dependent issue)
    - LP: #1991913 apic / apic-split test in kvm-unit-test failed (FAIL: PV IPIs testing)
    - LP: #1991908 ubuntu_kvm_unit_tests complains about find_word: command not found on s390x
    - LP: #1991900 debug in ubuntu_kvm_unit_test failed: KVM: entry failed, hardware error since 4.15
      (hw-dependent issue)
    - LP: #1991851 ubuntu_kvm_unit_tests skey fails with multiple failures on B/F s390x LPAR
    - LP: #1991850 ubuntu_kvm_unit_tests panic-loop-pgm fails on bionic s390x
    - LP: #1991849 ubuntu_kvm_unit_tests panic-loop-extint fails on bionic s390x
    - LP: #1991847 ubuntu_kvm_unit_tests firq-linear-cpu-ids-tcg fails on bionic s390x with timeout
    - LP: #1991762 msr in ubuntu_kvm_unit_tests failed with timeout on J (error: kvm run failed
      Operation not permitted)
    - LP: #1991740 skey from ubuntu_kvm_unit_tests failed on s390x zVM (Unexpected program interrupt :
      0x1 on cpu 0 at 0x4, ilen 2)
    - LP: #1991735 css from ubuntu_kvm_unit_tests failed on J-5.15 s390x (Invalid SCHIB: PMCW flag bit
      [01] set: Program interrupt: expected(21) == received(0))

Signed-off-by: Po-Hsu Lin <email address hidden>

63cdb04... by Po-Hsu Lin

UBUNTU: SAUCE: split failed tests out

BugLink: https://bugs.launchpad.net/bugs/1938875

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_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

Signed-off-by: Po-Hsu Lin <email address hidden>

d8a4f9e... by Thomas Huth <email address hidden>

ci: Update the list of tests that we run in the Fedora Cirrus-CI

The "msr" test recently started failing since it got extended, but
the kernel of the CI machine is not new enough to handle the new
tests. Thus we have to disable it in the CI for now.
On the other hand, there are a couple of other tests which seem
to work now, so we can include those in the list instead.

Message-Id: <email address hidden>
Signed-off-by: Thomas Huth <email address hidden>

8a078df... by Thomas Huth <email address hidden>

Merge branch 's390x-pull-2022-20-09' into 'master'

s390x: LPAR boot fix and additional tests

See merge request kvm-unit-tests/kvm-unit-tests!35

3043685... by Nico Boehr <email address hidden>

s390x: create persistent comm-key

To decrypt the dump of a PV guest, the comm-key (CCK) is required. Until
now, no comm-key was provided to genprotimg, therefore decrypting the
dump of a kvm-unit-test under PV was not possible.

This patch makes sure that we create a random CCK if there's no
$(TEST_DIR)/comm.key file.

Also allow dumping of PV tests by passing the appropriate PCF to
genprotimg (bit 34). --x-pcf is used to be compatible with older
genprotimg versions, which don't support --enable-dump. 0xe0 is the
default PCF value and only bit 34 is added.

Unfortunately, recent versions of genprotimg removed the --x-comm-key
argument which was used by older versions to specify the CCK. To support
these versions, we need to parse the genprotimg help output and decide
which argument to use.

Signed-off-by: Nico Boehr <email address hidden>
Reviewed-by: Janosch Frank <email address hidden>
Link: https://<email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Janosch Frank <email address hidden>

884aa72... by Nico Boehr <email address hidden>

s390x: factor out common args for genprotimg

Upcoming changes will add more arguments to genprotimg. To avoid
duplicating this logic, move the arguments to genprotimg to a variable.

Signed-off-by: Nico Boehr <email address hidden>
Reviewed-by: Claudio Imbrenda <email address hidden>
Link: https://<email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Janosch Frank <email address hidden>