tools/testing/selftests/kvm/arm64/host_sve.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/kvm/arm64/host_sve.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/kvm/arm64/host_sve.c- Extension
.c- Size
- 2229 bytes
- Lines
- 128
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
errno.hsignal.hsys/auxv.hasm/kvm.hkvm_util.hucall_common.h
Detected Declarations
function guest_codefunction handle_sigillfunction register_sigill_handlerfunction do_sve_roundtripfunction test_runfunction main
Annotated Snippet
switch (get_ucall(vcpu, &uc)) {
case UCALL_NONE:
do_sve_roundtrip();
do_sve_roundtrip();
break;
case UCALL_DONE:
guest_done = true;
break;
case UCALL_ABORT:
REPORT_GUEST_ASSERT(uc);
break;
default:
TEST_FAIL("Unexpected guest exit");
}
}
kvm_vm_free(vm);
}
int main(void)
{
/*
* This is testing the host environment, we don't care about
* guest SVE support.
*/
if (!(getauxval(AT_HWCAP) & HWCAP_SVE)) {
printf("SVE not supported\n");
return KSFT_SKIP;
}
test_run();
return 0;
}
Annotation
- Immediate include surface: `errno.h`, `signal.h`, `sys/auxv.h`, `asm/kvm.h`, `kvm_util.h`, `ucall_common.h`.
- Detected declarations: `function guest_code`, `function handle_sigill`, `function register_sigill_handler`, `function do_sve_roundtrip`, `function test_run`, `function main`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.