Skip to content

Commit 9822bbe

Browse files
github/qemu: dump host kernel messages on QEMU or test failure
This can help to debug better a KVM failure like coconut-svsm#1081, since KVM can print some more information in kernel logs. Also enable `dump_invalid_vm*` on both AMD and Intel to get more information. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
1 parent b904508 commit 9822bbe

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/qemu.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ jobs:
137137

138138
########################
139139

140+
- name: Enable KVM diagnostic logging
141+
run: |
142+
echo Y | sudo tee /sys/module/kvm_amd/parameters/dump_invalid_vmcb || true
143+
echo Y | sudo tee /sys/module/kvm_intel/parameters/dump_invalid_vmcs || true
144+
140145
- name: Run test-in-svsm in QEMU
141146
run: |
142147
# Use the pull request number for the port and the cid to avoid conflicts if two (or more)
@@ -151,3 +156,7 @@ jobs:
151156
--nocc --timeout 180 \
152157
</dev/null 2>&1
153158
159+
- name: Dump host kernel messages on QEMU or test failure
160+
if: failure()
161+
run: sudo dmesg
162+

0 commit comments

Comments
 (0)