Skip to content

VM introspection

Adalbert Lazăr kvm virtualization 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest77 patches 1 replyIn review
  2. v1181 patches 0 repliesSuperseded
  3. v1081 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v984 patches1 replySuperseded
v881 patches0 repliesSuperseded
v7 RFC78 patches0 repliesSuperseded
v6 RFC92 patches91 repliesSuperseded

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/77KVM: UAPI: add error codes used by the VM introspection codeinclude/uapi/linux/kvm_para.h+4 -00 replies
2/77KVM: add kvm_vcpu_kick_and_wait()include/linux/kvm_host.h virt/kvm/kvm_main.c+11 -00 replies
3/77KVM: x86: add kvm_arch_vcpu_get_regs() and kvm_arch_vcpu_get_sregs()arch/x86/kvm/x86.c include/linux/kvm_host.h+13 -00 replies
4/77KVM: x86: add kvm_arch_vcpu_set_regs()arch/x86/kvm/x86.c include/linux/kvm_host.h+12 -30 replies
5/77KVM: x86: avoid injecting #PF when emulate the VMCALL instructionarch/x86/kvm/x86.c+5 -10 replies
6/77KVM: x86: add kvm_x86_ops.bp_intercepted()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+24 -00 replies
7/77KVM: x86: add kvm_x86_ops.control_cr3_intercept()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+39 -00 replies
8/77KVM: x86: add kvm_x86_ops.cr3_write_intercepted()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+18 -00 replies
9/77KVM: x86: add kvm_x86_ops.desc_ctrl_supported()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+15 -10 replies
10/77KVM: svm: add support for descriptor-table VM-exitsarch/x86/kvm/svm/svm.c+13 -00 replies
11/77KVM: x86: add kvm_x86_ops.control_desc_intercept()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+41 -20 replies
12/77KVM: x86: add kvm_x86_ops.desc_intercepted()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+25 -00 replies
13/77KVM: x86: add kvm_x86_ops.msr_write_intercepted()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+4 -00 replies
14/77KVM: x86: svm: use the vmx convention to control the MSR interceptionarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c +2 more+83 -480 replies
15/77KVM: x86: add kvm_x86_ops.control_msr_intercept()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+21 -00 replies
16/77KVM: x86: save the error code during EPT/NPF exits handlingarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c+6 -00 replies
17/77KVM: x86: add kvm_x86_ops.fault_gla()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/include/asm/vmx.h +2 more+23 -00 replies
18/77KVM: x86: add kvm_x86_ops.control_singlestep()arch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx/vmx.c+13 -00 replies
19/77KVM: x86: export kvm_arch_vcpu_set_guest_debug()arch/x86/kvm/x86.c include/linux/kvm_host.h+18 -80 replies
20/77KVM: x86: extend kvm_mmu_gva_to_gpa_system() with the 'access' parameterarch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+4 -40 replies
21/77KVM: x86: export kvm_inject_pending_exception()arch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+31 -220 replies
22/77KVM: x86: export kvm_vcpu_ioctl_x86_get_xsave()arch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+5 -20 replies
23/77KVM: x86: export kvm_vcpu_ioctl_x86_set_xsave()arch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+4 -20 replies
24/77KVM: x86: page track: provide all callbacks with the guest virtual addressarch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu/mmu.c +3 more+20 -180 replies
25/77KVM: x86: page track: add track_create_slot() callbackarch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu/page_track.c+26 -00 replies
26/77KVM: x86: page_track: add support for preread, prewrite and preexecarch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/mmu_internal.h +3 more+374 -100 replies
27/77KVM: x86: wire in the preread/prewrite/preexec page trackersarch/x86/kvm/emulate.c arch/x86/kvm/kvm_emulate.h arch/x86/kvm/mmu/mmu.c +2 more+94 -210 replies
28/77KVM: x86: disable gpa_available optimization for fetch and page-walk SPT violationsarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/x86.c+13 -10 replies
29/77KVM: introduce VM introspectionDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvm_host.h arch/x86/kvm/Kconfig +5 more+221 -00 replies
30/77KVM: introspection: add hook/unhook ioctlsDocumentation/virt/kvm/api.rst arch/x86/include/asm/kvmi_host.h arch/x86/kvm/Makefile +11 more+449 -10 replies
31/77KVM: introspection: add permission access ioctlsDocumentation/virt/kvm/api.rst include/linux/kvmi_host.h include/uapi/linux/kvm.h +4 more+294 -00 replies
32/77KVM: introspection: add the read/dispatch message functionDocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +3 more+398 -20 replies
33/77KVM: introspection: add KVMI_GET_VERSIONDocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +2 more+119 -40 replies
34/77KVM: introspection: add KVMI_VM_CHECK_COMMAND and KVMI_VM_CHECK_EVENTDocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +3 more+182 -20 replies
35/77KVM: introspection: add KVMI_VM_GET_INFODocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +1 more+69 -30 replies
36/77KVM: introspection: add KVM_INTROSPECTION_PREUNHOOKDocumentation/virt/kvm/api.rst Documentation/virt/kvm/kvmi.rst include/linux/kvmi_host.h +5 more+76 -30 replies
37/77KVM: introspection: add KVMI_VM_EVENT_UNHOOKDocumentation/virt/kvm/kvmi.rst arch/x86/kvm/Makefile arch/x86/kvm/kvmi.c +6 more+173 -70 replies
38/77KVM: introspection: add KVMI_VM_CONTROL_EVENTSDocumentation/virt/kvm/kvmi.rst include/linux/kvmi_host.h include/uapi/linux/kvmi.h +4 more+158 -120 replies
39/77KVM: introspection: add KVMI_VM_READ_PHYSICAL/KVMI_VM_WRITE_PHYSICALDocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +3 more+358 -00 replies
40/77KVM: introspection: add vCPU related dataarch/x86/include/asm/kvmi_host.h include/linux/kvm_host.h include/linux/kvmi_host.h +2 more+64 -00 replies
41/77KVM: introspection: add a jobs list to every introspected vCPUinclude/linux/kvmi_host.h virt/kvm/introspection/kvmi.c virt/kvm/introspection/kvmi_int.h+81 -20 replies
42/77KVM: introspection: handle vCPU introspection requestsarch/x86/kvm/x86.c include/linux/kvm_host.h include/linux/kvmi_host.h +2 more+83 -00 replies
43/77KVM: introspection: handle vCPU commandsDocumentation/virt/kvm/kvmi.rst arch/x86/kvm/Makefile arch/x86/kvm/kvmi_msg.c +3 more+196 -30 replies
44/77KVM: introspection: add KVMI_VCPU_GET_INFODocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +5 more+223 -20 replies
45/77KVM: introspection: add KVMI_VM_PAUSE_VCPUDocumentation/virt/kvm/kvmi.rst include/linux/kvmi_host.h include/uapi/linux/kvmi.h +4 more+147 -40 replies
46/77KVM: introspection: add support for vCPU eventsDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi.c +5 more+359 -40 replies
47/77KVM: introspection: add KVMI_VCPU_EVENT_PAUSEDocumentation/virt/kvm/kvmi.rst include/uapi/linux/kvmi.h tools/testing/selftests/kvm/x86_64/kvmi_test.c +3 more+136 -20 replies
48/77KVM: introspection: add the crash action handling on the event replyvirt/kvm/introspection/kvmi.c+4 -00 replies
49/77KVM: introspection: add KVMI_VCPU_CONTROL_EVENTSDocumentation/virt/kvm/kvmi.rst include/linux/kvmi_host.h include/uapi/linux/kvmi.h +4 more+157 -20 replies
50/77KVM: introspection: add KVMI_VCPU_GET_REGISTERSDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi.c +4 more+224 -10 replies
51/77KVM: introspection: add KVMI_VCPU_SET_REGISTERSDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c +6 more+165 -20 replies
52/77KVM: introspection: add KVMI_VCPU_GET_CPUIDDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi_msg.c +2 more+105 -00 replies
53/77KVM: introspection: add KVMI_VCPU_EVENT_HYPERCALLDocumentation/virt/kvm/hypercalls.rst Documentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h +9 more+218 -60 replies
54/77KVM: introspection: add KVMI_VCPU_EVENT_BREAKPOINTDocumentation/virt/kvm/kvmi.rst arch/x86/kvm/kvmi.c arch/x86/kvm/svm/svm.c +7 more+248 -40 replies
55/77KVM: introspection: add cleanup support for vCPUsarch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c +2 more+90 -30 replies
56/77KVM: introspection: restore the state of #BP interception on unhookarch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c arch/x86/kvm/x86.c+83 -00 replies
57/77KVM: introspection: add KVMI_VM_CONTROL_CLEANUPDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c +6 more+129 -290 replies
58/77KVM: introspection: add KVMI_VCPU_CONTROL_CR and KVMI_VCPU_EVENT_CRDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +9 more+351 -50 replies
59/77KVM: introspection: restore the state of CR3 interception on unhookarch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c arch/x86/kvm/kvmi.h +3 more+81 -90 replies
60/77KVM: introspection: add KVMI_VCPU_INJECT_EXCEPTION + KVMI_VCPU_EVENT_TRAPDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +9 more+416 -140 replies
61/77KVM: introspection: add KVMI_VCPU_EVENT_XSETBVDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +6 more+188 -00 replies
62/77KVM: introspection: add KVMI_VCPU_GET_XCRDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi_msg.c +2 more+97 -00 replies
63/77KVM: introspection: add KVMI_VCPU_GET_XSAVEDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi_msg.c +2 more+80 -00 replies
64/77KVM: introspection: add KVMI_VCPU_SET_XSAVEDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi_msg.c +2 more+74 -60 replies
65/77KVM: introspection: add KVMI_VCPU_GET_MTRR_TYPEDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi_msg.c +2 more+77 -00 replies
66/77KVM: introspection: add KVMI_VCPU_EVENT_DESCRIPTORDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +7 more+269 -00 replies
67/77KVM: introspection: restore the state of descriptor-table register interception on unhookarch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c arch/x86/kvm/svm/svm.c +1 more+55 -00 replies
68/77KVM: introspection: add KVMI_VCPU_CONTROL_MSR and KVMI_VCPU_EVENT_MSRDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/include/uapi/asm/kvmi.h +6 more+406 -00 replies
69/77KVM: introspection: restore the state of MSR interception on unhookarch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c arch/x86/kvm/svm/svm.c +1 more+142 -150 replies
70/77KVM: introspection: add KVMI_VM_SET_PAGE_ACCESSDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvmi_host.h +7 more+372 -10 replies
71/77KVM: introspection: add KVMI_VCPU_EVENT_PFDocumentation/virt/kvm/kvmi.rst arch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c +5 more+417 -00 replies
72/77KVM: introspection: extend KVMI_GET_VERSION with struct kvmi_featuresDocumentation/virt/kvm/kvmi.rst arch/x86/include/uapi/asm/kvmi.h arch/x86/kvm/kvmi.c +4 more+33 -20 replies
73/77KVM: introspection: add KVMI_VCPU_CONTROL_SINGLESTEPDocumentation/virt/kvm/kvmi.rst arch/x86/kvm/kvmi.c arch/x86/kvm/kvmi_msg.c +6 more+190 -310 replies
74/77KVM: introspection: add KVMI_VCPU_EVENT_SINGLESTEPDocumentation/virt/kvm/kvmi.rst arch/x86/kvm/kvmi.c arch/x86/kvm/kvmi_msg.c +7 more+166 -30 replies
75/77KVM: introspection: add KVMI_VCPU_TRANSLATE_GVADocumentation/virt/kvm/kvmi.rst arch/x86/kvm/kvmi_msg.c include/uapi/linux/kvmi.h +1 more+86 -00 replies
76/77KVM: introspection: emulate a guest page table walk on SPT violations due to A/D bit updatesarch/x86/include/asm/kvmi_host.h arch/x86/kvm/kvmi.c arch/x86/kvm/mmu/mmu.c +2 more+71 -20 replies
77/77KVM: x86: call the page tracking code on emulation failurearch/x86/kvm/x86.c+49 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v12 yet.

Read the v12 thread

Cover letter [PATCH v12 00/77] 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 (shadow page table level faults, key MSR writes, hypercalls etc.). Some notifications can be responded to with an action (like preventing an MSR from being written), others are mere informative (like breakpoint events which can be used for execution tracing). With few exceptions, all events are optional. An application using this subsystem will explicitly register for them.

The use case that gave way for the creation of this subsystem is to monitor the guest OS and as such the ABI/API is highly influenced by how the guest software (kernel, applications) sees the world. For example, some events provide information specific for the host CPU architecture (eg. MSR_IA32_SYSENTER_EIP) merely because its leveraged by guest software to implement a critical feature (fast system calls).

At the moment, the target audience for KVMI are security software authors that wish to perform forensics on newly discovered threats (exploits) or to implement another layer of security like preventing a large set of kernel rootkits simply by "locking" the kernel image in the shadow page tables (ie. enforce .text r-x, .rodata rw- etc.). It's the latter case that made KVMI a separate subsystem, even though many of these features are available in the device manager. The ability to build a security application that does not interfere (in terms of performance) with the guest software asks for a specialized interface that is designed for minimum overhead.

Patches 1-28: make preparatory changes

Patches 29-75: add basic introspection capabilities

Patch 76: support introspection tools that write-protect guest page tables

Patch 77: notify the introspection tool even on emulation failures
(when the read/write callbacks used by the emulator,
kvm_page_preread/kvm_page_prewrite, are not called)

Changes since [v11](https://lore.kernel.org/kvm/[email protected]/):
- rebase to 5.15 (from 5.10)
- remove patches no longer needed
- remove kvm_get_max_gfn()/KVMI_VM_GET_MAX_GFN (a couple of tests are needed to see if it is better to send the memory size from QEMU, during handshake)

Adalbert Lazăr (23):
KVM: UAPI: add error codes used by the VM introspection code
KVM: add kvm_vcpu_kick_and_wait()
KVM: x86: add kvm_x86_ops.control_cr3_intercept()
KVM: x86: add kvm_x86_ops.desc_ctrl_supported()
KVM: x86: add kvm_x86_ops.control_desc_intercept()
KVM: x86: export kvm_vcpu_ioctl_x86_set_xsave()
KVM: introspection: add hook/unhook ioctls
KVM: introspection: add permission access ioctls
KVM: introspection: add the read/dispatch message function
KVM: introspection: add KVMI_GET_VERSION
KVM: introspection: add KVMI_VM_CHECK_COMMAND and KVMI_VM_CHECK_EVENT
KVM: introspection: add KVM_INTROSPECTION_PREUNHOOK
KVM: introspection: add KVMI_VM_EVENT_UNHOOK
KVM: introspection: add KVMI_VM_CONTROL_EVENTS
KVM: introspection: add a jobs list to every introspected vCPU
KVM: introspection: add KVMI_VM_PAUSE_VCPU
KVM: introspection: add support for vCPU events
KVM: introspection: add KVMI_VCPU_EVENT_PAUSE
KVM: introspection: add KVMI_VM_CONTROL_CLEANUP
KVM: introspection: add KVMI_VCPU_GET_XCR
KVM: introspection: add KVMI_VCPU_SET_XSAVE
KVM: introspection: extend KVMI_GET_VERSION with struct kvmi_features
KVM: introspection: add KVMI_VCPU_TRANSLATE_GVA

Marian Rotariu (1):
KVM: introspection: add KVMI_VCPU_GET_CPUID

Mihai Donțu (32):
KVM: x86: add kvm_arch_vcpu_get_regs() and kvm_arch_vcpu_get_sregs()
KVM: x86: avoid injecting #PF when emulate the VMCALL instruction
KVM: x86: add kvm_x86_ops.control_msr_intercept()
KVM: x86: save the error code during EPT/NPF exits handling
KVM: x86: add kvm_x86_ops.fault_gla()
KVM: x86: extend kvm_mmu_gva_to_gpa_system() with the 'access'
parameter
KVM: x86: page track: provide all callbacks with the guest virtual
address
KVM: x86: page track: add track_create_slot() callback
KVM: x86: page_track: add support for preread, prewrite and preexec
KVM: x86: wire in the preread/prewrite/preexec page trackers
KVM: introduce VM introspection
KVM: introspection: add KVMI_VM_GET_INFO
KVM: introspection: add KVMI_VM_READ_PHYSICAL/KVMI_VM_WRITE_PHYSICAL
KVM: introspection: handle vCPU introspection requests
KVM: introspection: handle vCPU commands
KVM: introspection: add KVMI_VCPU_GET_INFO
KVM: introspection: add the crash action handling on the event reply
KVM: introspection: add KVMI_VCPU_CONTROL_EVENTS
KVM: introspection: add KVMI_VCPU_GET_REGISTERS
KVM: introspection: add KVMI_VCPU_SET_REGISTERS
KVM: introspection: add KVMI_VCPU_EVENT_HYPERCALL
KVM: introspection: add KVMI_VCPU_EVENT_BREAKPOINT
KVM: introspection: add KVMI_VCPU_CONTROL_CR and KVMI_VCPU_EVENT_CR
KVM: introspection: add KVMI_VCPU_INJECT_EXCEPTION +
KVMI_VCPU_EVENT_TRAP
KVM: introspection: add KVMI_VCPU_EVENT_XSETBV
KVM: introspection: add KVMI_VCPU_GET_XSAVE
KVM: introspection: add KVMI_VCPU_GET_MTRR_TYPE
KVM: introspection: add KVMI_VCPU_CONTROL_MSR and KVMI_VCPU_EVENT_MSR
KVM: introspection: add KVMI_VM_SET_PAGE_ACCESS
KVM: introspection: add KVMI_VCPU_EVENT_PF
KVM: introspection: emulate a guest page table walk on SPT violations
due to A/D bit updates
KVM: x86: call the page tracking code on emulation failure

Mircea Cîrjaliu (2):
KVM: x86: disable gpa_available optimization for fetch and page-walk
SPT violations
KVM: introspection: add vCPU related data

Nicușor Cîțu (19):
KVM: x86: add kvm_arch_vcpu_set_regs()
KVM: x86: add kvm_x86_ops.bp_intercepted()
KVM: x86: add kvm_x86_ops.cr3_write_intercepted()
KVM: svm: add support for descriptor-table VM-exits
KVM: x86: add kvm_x86_ops.desc_intercepted()
KVM: x86: add kvm_x86_ops.msr_write_intercepted()
KVM: x86: svm: use the vmx convention to control the MSR interception
KVM: x86: add kvm_x86_ops.control_singlestep()
KVM: x86: export kvm_arch_vcpu_set_guest_debug()
KVM: x86: export kvm_inject_pending_exception()
KVM: x86: export kvm_vcpu_ioctl_x86_get_xsave()
KVM: introspection: add cleanup support for vCPUs
KVM: introspection: restore the state of #BP interception on unhook
KVM: introspection: restore the state of CR3 interception on unhook
KVM: introspection: add KVMI_VCPU_EVENT_DESCRIPTOR
KVM: introspection: restore the state of descriptor-table register
interception on unhook
KVM: introspection: restore the state of MSR interception on unhook
KVM: introspection: add KVMI_VCPU_CONTROL_SINGLESTEP
KVM: introspection: add KVMI_VCPU_EVENT_SINGLESTEP

 Documentation/virt/kvm/api.rst                |  160 ++
 Documentation/virt/kvm/hypercalls.rst         |   35 +
 Documentation/virt/kvm/kvmi.rst               | 1554 +++++++++++++
 arch/x86/include/asm/kvm-x86-ops.h            |   10 +
 arch/x86/include/asm/kvm_host.h               |   46 +-
 arch/x86/include/asm/kvm_page_track.h         |   69 +-
 arch/x86/include/asm/kvmi_host.h              |  111 +
 arch/x86/include/asm/vmx.h                    |    2 +
 arch/x86/include/uapi/asm/kvmi.h              |  167 ++
 arch/x86/kvm/Kconfig                          |   10 +
 arch/x86/kvm/Makefile                         |    2 +
 arch/x86/kvm/emulate.c                        |    4 +
 arch/x86/kvm/kvm_emulate.h                    |    1 +
 arch/x86/kvm/kvmi.c                           | 1134 ++++++++++
 arch/x86/kvm/kvmi.h                           |   24 +
 arch/x86/kvm/kvmi_msg.c                       |  456 ++++
 arch/x86/kvm/mmu/mmu.c                        |  158 +-
 arch/x86/kvm/mmu/mmu_internal.h               |    6 +
 arch/x86/kvm/mmu/page_track.c                 |  144 +-
 arch/x86/kvm/mmu/spte.c                       |   23 +
 arch/x86/kvm/mmu/tdp_mmu.c                    |  106 +
 arch/x86/kvm/mmu/tdp_mmu.h                    |    6 +
 arch/x86/kvm/svm/sev.c                        |   18 +-
 arch/x86/kvm/svm/svm.c                        |  303 ++-
 arch/x86/kvm/svm/svm.h                        |   10 +-
 arch/x86/kvm/vmx/capabilities.h               |    7 +-
 arch/x86/kvm/vmx/vmx.c                        |  150 +-
 arch/x86/kvm/vmx/vmx.h                        |    4 -
 arch/x86/kvm/x86.c                            |  301 ++-
 drivers/gpu/drm/i915/gvt/kvmgt.c              |    2 +-
 include/linux/kvm_host.h                      |   16 +
 include/linux/kvmi_host.h                     |  110 +
 include/uapi/linux/kvm.h                      |   20 +
 include/uapi/linux/kvm_para.h                 |    5 +
 include/uapi/linux/kvmi.h                     |  240 ++
 tools/testing/selftests/kvm/Makefile          |    1 +
 .../testing/selftests/kvm/x86_64/kvmi_test.c  | 1993 +++++++++++++++++
 virt/kvm/introspection/kvmi.c                 | 1265 +++++++++++
 virt/kvm/introspection/kvmi_int.h             |  129 ++
 virt/kvm/introspection/kvmi_msg.c             |  902 ++++++++
 virt/kvm/kvm_main.c                           |   73 +
 41 files changed, 9618 insertions(+), 159 deletions(-)
 create mode 100644 Documentation/virt/kvm/kvmi.rst
 create mode 100644 arch/x86/include/asm/kvmi_host.h
 create mode 100644 arch/x86/include/uapi/asm/kvmi.h
 create mode 100644 arch/x86/kvm/kvmi.c
 create mode 100644 arch/x86/kvm/kvmi.h
 create mode 100644 arch/x86/kvm/kvmi_msg.c
 create mode 100644 include/linux/kvmi_host.h
 create mode 100644 include/uapi/linux/kvmi.h
 create mode 100644 tools/testing/selftests/kvm/x86_64/kvmi_test.c
 create mode 100644 virt/kvm/introspection/kvmi.c
 create mode 100644 virt/kvm/introspection/kvmi_int.h
 create mode 100644 virt/kvm/introspection/kvmi_msg.c

base-commit: 542a2640a2f491902fd366b5bb54a2b20ac5a2c5