Home
last modified time | relevance | path

Searched refs:system_event (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/kvm/arm64/
H A Dpsci_test.c193 TEST_ASSERT(run->system_event.type == KVM_SYSTEM_EVENT_SUSPEND, in host_test_system_suspend()
195 run->system_event.type, KVM_SYSTEM_EVENT_SUSPEND); in host_test_system_suspend()
259 TEST_ASSERT(run->system_event.type == KVM_SYSTEM_EVENT_SHUTDOWN, in host_test_system_off2()
261 run->system_event.type, KVM_SYSTEM_EVENT_SHUTDOWN); in host_test_system_off2()
262 TEST_ASSERT(run->system_event.ndata >= 1, in host_test_system_off2()
264 run->system_event.ndata); in host_test_system_off2()
265 TEST_ASSERT(run->system_event.data[0] & KVM_SYSTEM_EVENT_SHUTDOWN_FLAG_PSCI_OFF2, in host_test_system_off2()
267 run->system_event.data[0], KVM_SYSTEM_EVENT_SHUTDOWN_FLAG_PSCI_OFF2); in host_test_system_off2()
/linux/tools/testing/selftests/kvm/x86/
H A Dsev_smoke_test.c114 TEST_ASSERT_EQ(vcpu->run->system_event.type, KVM_SYSTEM_EVENT_SEV_TERM); in test_sync_vmsa()
115 TEST_ASSERT_EQ(vcpu->run->system_event.ndata, 1); in test_sync_vmsa()
116 TEST_ASSERT_EQ(vcpu->run->system_event.data[0], GHCB_MSR_TERM_REQ); in test_sync_vmsa()
141 TEST_ASSERT_EQ(vcpu->run->system_event.type, KVM_SYSTEM_EVENT_SEV_TERM); in test_sev()
142 TEST_ASSERT_EQ(vcpu->run->system_event.ndata, 1); in test_sev()
143 TEST_ASSERT_EQ(vcpu->run->system_event.data[0], GHCB_MSR_TERM_REQ); in test_sev()
/linux/arch/arm64/kvm/
H A Dpsci.c185 memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event)); in kvm_prepare_system_event()
186 vcpu->run->system_event.type = type; in kvm_prepare_system_event()
187 vcpu->run->system_event.ndata = 1; in kvm_prepare_system_event()
188 vcpu->run->system_event.data[0] = flags; in kvm_prepare_system_event()
218 memset(&run->system_event, 0, sizeof(vcpu->run->system_event)); in kvm_psci_system_suspend()
219 run->system_event.type = KVM_SYSTEM_EVENT_SUSPEND; in kvm_psci_system_suspend()
H A Darm.c998 memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event)); in kvm_vcpu_suspend()
999 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_WAKEUP; in kvm_vcpu_suspend()
/linux/arch/x86/kvm/svm/
H A Dsev.c4270 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_SEV_TERM; in sev_handle_vmgexit_msr_protocol()
4271 vcpu->run->system_event.ndata = 1; in sev_handle_vmgexit_msr_protocol()
4272 vcpu->run->system_event.data[0] = control->ghcb_gpa; in sev_handle_vmgexit_msr_protocol()
4384 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_SEV_TERM; in sev_handle_vmgexit()
4385 vcpu->run->system_event.ndata = 1; in sev_handle_vmgexit()
4386 vcpu->run->system_event.data[0] = control->ghcb_gpa; in sev_handle_vmgexit()
/linux/arch/x86/kvm/vmx/
H A Dtdx.c1256 u64 *regs = vcpu->run->system_event.data; in tdx_report_fatal_error()
1261 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_TDX_FATAL; in tdx_report_fatal_error()
1262 vcpu->run->system_event.ndata = 16; in tdx_report_fatal_error()
/linux/include/uapi/linux/
H A Dkvm.h388 } system_event; member
/linux/tools/include/uapi/linux/
H A Dkvm.h387 } system_event; member
/linux/arch/x86/kvm/
H A Dx86.c10762 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_CRASH; in vcpu_enter_guest()
10763 vcpu->run->system_event.ndata = 0; in vcpu_enter_guest()
10769 vcpu->run->system_event.type = KVM_SYSTEM_EVENT_RESET; in vcpu_enter_guest()
10770 vcpu->run->system_event.ndata = 0; in vcpu_enter_guest()
/linux/Documentation/virt/kvm/
H A Dapi.rst6859 } system_event;