diff options
| author | Mukesh Rathor <mrathor@linux.microsoft.com> | 2025-10-06 15:42:06 -0700 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2025-11-15 06:18:16 +0000 |
| commit | b0574ba75525c6b7e7448dd755d5cc09391478b1 (patch) | |
| tree | e9184a690f97d5e78a74e32b8ed44a4f0320defa /tools/lib/python/kdoc/kdoc_output.py | |
| parent | e0a975ecd2e671664d208723476eeabb3baf08be (diff) | |
x86/hyperv: Add trampoline asm code to transition from hypervisor
Introduce a small asm stub to transition from the hypervisor to Linux
after devirtualization. Devirtualization means disabling hypervisor on
the fly, so after it is done, the code is running on physical processor
instead of virtual, and hypervisor is gone. This can be done by a
root vm only.
At a high level, during panic of either the hypervisor or the root,
the NMI handler asks hypervisor to devirtualize. As part of that,
the arguments include an entry point to return back to Linux. This asm
stub implements that entry point.
The stub is entered in protected mode, uses temporary gdt and page table
to enable long mode and get to kernel entry point which then restores full
kernel context to resume execution to kexec.
Signed-off-by: Mukesh Rathor <mrathor@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions
