You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed by reset the phys-virt-offset to "0xffff_8000_0000_0000"
platforms/x86_64-qemu-q35.toml:
# Architecture identifier.arch = "x86_64"# Platform identifier.platform = "x86_64-qemu-q35"# Platform family.family = "x86-pc"# Base address of the whole physical memory.phys-memory-base = "0"# Size of the whole physical memory.phys-memory-size = "0x800_0000"# 128M# Base physical address of the kernel image.kernel-base-paddr = "0x20_0000"# Base virtual address of the kernel image.kernel-base-vaddr = "0xffff_8000_0020_0000"# Linear mapping offset, for quick conversions between physical and virtual# addresses.phys-virt-offset = "0xffff_8000_0000_0000"# Offset of bus address and phys address. some boards, the bus address is# different from the physical address.phys-bus-offset = "0"# Kernel address space base.kernel-aspace-base = "0xffff_8000_0000_0000"# Kernel address space size.kernel-aspace-size = "0x0000_7fff_ffff_f000"# MMIO regions with format (`base_paddr`, `size`).mmio-regions = [
["0xb000_0000", "0x1000_0000"], # PCI config space
["0xfe00_0000", "0xc0_0000"], # PCI devices
["0xfec0_0000", "0x1000"], # IO APIC
["0xfed0_0000", "0x1000"], # HPET
["0xfee0_0000", "0x1000"], # Local APIC
["0x2_8000_0000", "0x8_0000_0000"], # PCI devices
["0x3800_0000_0000", "0x4000"] # PCI devices
]
# VirtIO MMIO regions with format (`base_paddr`, `size`).virtio-mmio-regions = []
# Base physical address of the PCIe ECAM space (should read from ACPI 'MCFG' table).pci-ecam-base = "0xb000_0000"# End PCI bus number.pci-bus-end = "0xff"# PCI device memory ranges (not used on x86).pci-ranges = []
# Timer interrupt frequencyin Hz.timer-frequency = "4_000_000_000"# 4.0GHz
in
scripts/make/qemu.mk
, when you try to set memory provided by QEMU as4G
or biggerqemu_args-y := -m 4G -smp $(SMP) $(qemu_args-$(ARCH))
page fault will occur at
VA:0x378000000014
command:
make ARCH=x86_64 A=examples/shell/ LOG=debug BLK=y run
output:
The text was updated successfully, but these errors were encountered: