search for: disable_vm_event

Displaying 4 results from an estimated 4 matches for "disable_vm_event".

2020 Feb 07
0
[RFC PATCH v7 44/78] KVM: introspection: add KVMI_VM_CONTROL_EVENTS
...zeof(req), + NULL, 0); +} + +static void enable_vm_event(__u16 event_id) +{ + int r; + + r = cmd_vm_control_events(event_id, true); + TEST_ASSERT(r == 0, + "KVMI_VM_CONTROL_EVENTS failed to enable VM event %d, error %d (%s)\n", + event_id, -r, kvm_strerror(-r)); +} + +static void disable_vm_event(__u16 event_id) +{ + int r; + + r = cmd_vm_control_events(event_id, false); + TEST_ASSERT(r == 0, + "KVMI_VM_CONTROL_EVENTS failed to disable VM event %d, error %d (%s)\n", + event_id, -r, kvm_strerror(-r)); +} + static void test_event_unhook(struct kvm_vm *vm) { __u16 id = KVMI_EVE...
2020 Jul 21
0
[PATCH v9 45/84] KVM: introspection: add KVMI_VM_CONTROL_EVENTS
...TEST_ASSERT(r == expected_err, + "KVMI_VM_CONTROL_EVENTS failed to enable VM event %d, error %d (%s), expected error %d\n", + event_id, -r, kvm_strerror(-r), expected_err); +} + +static void enable_vm_event(__u16 event_id) +{ + cmd_vm_control_events(event_id, 1, 0, 0); +} + +static void disable_vm_event(__u16 event_id) +{ + cmd_vm_control_events(event_id, 0, 0, 0); +} + static void test_event_unhook(struct kvm_vm *vm) { __u16 id = KVMI_EVENT_UNHOOK; struct kvmi_msg_hdr hdr; struct kvmi_event ev; + enable_vm_event(id); + trigger_event_unhook_notification(vm); receive_event(&hdr,...
2020 Feb 07
78
[RFC PATCH v7 00/78] VM introspection
The KVM introspection subsystem provides a facility for applications running on the host or in a separate VM, to control the execution of other VMs (pause, resume, shutdown), query the state of the vCPUs (GPRs, MSRs etc.), alter the page access bits in the shadow page tables (only for the hardware backed ones, eg. Intel's EPT) and receive notifications when events of interest have taken place
2020 Jul 21
87
[PATCH v9 00/84] VM introspection
The KVM introspection subsystem provides a facility for applications running on the host or in a separate VM, to control the execution of other VMs (pause, resume, shutdown), query the state of the vCPUs (GPRs, MSRs etc.), alter the page access bits in the shadow page tables (only for the hardware backed ones, eg. Intel's EPT) and receive notifications when events of interest have taken place