tools/testing/selftests/kvm/x86/platform_info_test.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/kvm/x86/platform_info_test.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/kvm/x86/platform_info_test.c
Extension
.c
Size
1675 bytes
Lines
79
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.

Dependency Surface

Detected Declarations

Annotated Snippet

switch (get_ucall(vcpu, &uc)) {
		case UCALL_SYNC:
			vm_enable_cap(vm, KVM_CAP_MSR_PLATFORM_INFO, uc.args[1]);
			break;
		case UCALL_DONE:
			goto done;
		case UCALL_ABORT:
			REPORT_GUEST_ASSERT(uc);
		default:
			TEST_FAIL("Unexpected ucall %lu", uc.cmd);
			break;
		}
	}

done:
	kvm_vm_free(vm);

	return 0;
}

Annotation

Implementation Notes