crosvm/x86_64
Changyuan Lyu 9c8f539695 x86_64: add a null GDT entry for 64-bit protocol
Based on https://docs.kernel.org/arch/x86/boot.html#id1, this patch
adds a null GDT entry to match the Linux 64-bit Boot Protocol. With
this patch, CS is 0x10, DS, ES, and SS are 0x18.

Booted a bzImage and an ELF kernel, no issues observed.

TEST=cargo test -p x86_64
BUG=None

Change-Id: I234e9c43598fd5edb9d4e1b0fed1ba67f06a1845
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4680287
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Changyuan Lyu <changyuanl@google.com>
2023-07-12 21:35:27 +00:00
..
src x86_64: add a null GDT entry for 64-bit protocol 2023-07-12 21:35:27 +00:00
tests swap: garbage collect uffds for detached hot plug devices 2023-05-26 01:39:50 +00:00
Cargo.toml swap: expose Status interface to all variants 2023-05-04 12:30:09 +00:00