Skip to content

Conversation

bssrikanth
Copy link

Introduces a test case to verify the Idle HLT Intercept feature in QEMU, using cpuid to check support and ftrace to monitor idle-halt exits. Supports secure guest types (SEV, SEV-ES, SNP) with configurable parameters.

@bssrikanth
Copy link
Author

this pr depends on avocado-framework/avocado-vt#4232

@bssrikanth
Copy link
Author

Run results from AMD EPYC Turin machine:

JOB ID     : 06ec2506024cb4dde3fe098398f8444cc8f06a10
JOB LOG    : /results/job-2025-09-19T12.26-06ec250/job.log
 (1/4) type_specific.io-github-autotest-qemu.idlehlt.svm: STARTED
 (1/4) type_specific.io-github-autotest-qemu.idlehlt.svm: PASS (32.74 s)
 (2/4) type_specific.io-github-autotest-qemu.idlehlt.sev: STARTED
 (2/4) type_specific.io-github-autotest-qemu.idlehlt.sev: PASS (32.54 s)
 (3/4) type_specific.io-github-autotest-qemu.idlehlt.seves: STARTED
 (3/4) type_specific.io-github-autotest-qemu.idlehlt.seves: PASS (34.30 s)
 (4/4) type_specific.io-github-autotest-qemu.idlehlt.snp: STARTED
 (4/4) type_specific.io-github-autotest-qemu.idlehlt.snp: PASS (39.03 s)
RESULTS    : PASS 4 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

Run results on unsupported platform:

JOB LOG    : /results/job-2025-09-19T17.50-88a152f/job.log
 (1/4) type_specific.io-github-autotest-qemu.idlehlt.svm: STARTED
 (1/4) type_specific.io-github-autotest-qemu.idlehlt.svm: CANCEL: Idle HLT Intercept feature is not supported on this platform. (3.98 s)
 (2/4) type_specific.io-github-autotest-qemu.idlehlt.sev: STARTED
 (2/4) type_specific.io-github-autotest-qemu.idlehlt.sev: CANCEL: Idle HLT Intercept feature is not supported on this platform. (4.15 s)
 (3/4) type_specific.io-github-autotest-qemu.idlehlt.seves: STARTED
 (3/4) type_specific.io-github-autotest-qemu.idlehlt.seves: CANCEL: Idle HLT Intercept feature is not supported on this platform. (4.43 s)
 (4/4) type_specific.io-github-autotest-qemu.idlehlt.snp: STARTED
 (4/4) type_specific.io-github-autotest-qemu.idlehlt.snp: CANCEL: Idle HLT Intercept feature is not supported on this platform. (4.05 s)
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 4

Introduces a test case to verify the Idle HLT Intercept feature in QEMU,
using cpuid to check support and ftrace to monitor idle-halt exits.
Supports secure guest types (SEV, SEV-ES, SNP) with configurable parameters.

Signed-off-by: Srikanth Aithal <[email protected]>
@bssrikanth
Copy link
Author

Hello, if anyone has any review comments on this test please feel free to comment. Happy to address any review comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant