crosvm/x86_64/src
Junichi Uekawa 8764deb8dd crosvm: Minimal change for manatee memory mapping.
Do not map RAM to where the coreboot regions are.

Shift boot time GDT and IDT a bit to make way for coreboot region at
0..fff.

BUG=b:188011323
TEST=boot volteer-manatee
TEST=tast run rammus-arc-r arc.Boot.vm  # ARCVM still boots.
TEST=tast run rammus-arc-r crostini.Basic.bullseye_stable

volteer-manatee memory map:

after:

localhost ~ # dmesg | grep e820
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x00000000cfffffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000f4000000-0x00000000f7ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000003f05fffff] usable

before:

localhost ~ # dmesg | grep e820
[    0.000000] BIOS-e820: [mem 0x0000000000001000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x000000005fffffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000f4000000-0x00000000f7ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000460600fff] usable

Change-Id: Ifa19988c444d79dc81eb77c59e5b5434abf883fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3405402
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
2022-01-27 02:29:32 +00:00
..
acpi.rs acpi: fix offset of the reset value in FADT. 2021-12-14 00:25:53 +00:00
bootparam.rs bindgen: switch to allowlist/blocklist options 2021-10-26 18:32:51 +00:00
bzimage.rs x86_64: convert to ThisError and sort 2021-10-06 21:38:34 +00:00
cpuid.rs x86: pass host's processor brand string to guests 2022-01-25 01:56:29 +00:00
fdt.rs arch: rewrite FDT writer in native rust 2021-03-03 01:29:15 +00:00
gdt.rs
interrupts.rs x86_64: convert to ThisError and sort 2021-10-06 21:38:34 +00:00
lib.rs crosvm: Minimal change for manatee memory mapping. 2022-01-27 02:29:32 +00:00
mpspec.rs
mptable.rs x86_64: mptable: make pci_irqs a slice instead of Vec 2021-12-03 21:25:32 +00:00
msr_index.rs
regs.rs crosvm: Minimal change for manatee memory mapping. 2022-01-27 02:29:32 +00:00
smbios.rs x86_64: convert to ThisError and sort 2021-10-06 21:38:34 +00:00
test_integration.rs hypervisor: add API to query VM physaddr size 2022-01-11 22:41:38 +00:00