!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

633 Members
NixOS ❤️ systemd180 Servers

Load older messages


SenderMessageTime
10 Mar 2025
@raitobezarius:matrix.orgraitobezarius https://www.qemu.org/docs/master/devel/memory.html 18:14:42
@elvishjerricco:matrix.orgElvishJerriccoI thought we just tested everything on bare metal asahi machines18:15:33
@raitobezarius:matrix.orgraitobezarius
In reply to @elvishjerricco:matrix.org
I thought we just tested everything on bare metal asahi machines
the day where the sd-boot read() was relying on the firmware not being broken
18:15:51
@elvishjerricco:matrix.orgElvishJerriccooh I fixed that by fucking with the OVMF implementation in a cursed way18:16:09
@elvishjerricco:matrix.orgElvishJerriccowhich I guess would be another way to do this, huh?18:16:16
@raitobezarius:matrix.orgraitobezarius
    memory_region_init_alias(ram_below_4g, NULL, "ram-below-4g", machine->ram,
                             0, x86ms->below_4g_mem_size);
18:16:36
@raitobezarius:matrix.orgraitobezariuseither you patch OVMF18:16:40
@elvishjerricco:matrix.orgElvishJerricco* oh I tested that by fucking with the OVMF implementation in a cursed way18:16:42
@raitobezarius:matrix.orgraitobezariuseither you patch QEMU18:16:43
@raitobezarius:matrix.orgraitobezariusjust kill these lines18:16:57
@raitobezarius:matrix.orgraitobezarius
    ram_below_4g = g_malloc(sizeof(*ram_below_4g));
    memory_region_init_alias(ram_below_4g, NULL, "ram-below-4g", machine->ram,
                             0, x86ms->below_4g_mem_size);
    memory_region_add_subregion(system_memory, 0, ram_below_4g);
18:17:00
@raitobezarius:matrix.orgraitobezariusi think that's enough to make RAM below 4GB disappear18:17:05
@raitobezarius:matrix.orgraitobezarius (pc.c file) 18:17:13
@raitobezarius:matrix.orgraitobezariusbut you need a QEMU rebuild18:17:19
@raitobezarius:matrix.orgraitobezariusa OVMF rebuild may be easier18:17:23
@elvishjerricco:matrix.orgElvishJerriccoright18:17:24
@raitobezarius:matrix.orgraitobezariusif you want to do it in OVMF18:18:11
@raitobezarius:matrix.orgraitobezarius
  for (Link = gMemoryMap.ForwardLink; Link != &gMemoryMap; Link = Link->ForwardLink) {
    Entry = CR (Link, MEMORY_MAP, Link, MEMORY_MAP_SIGNATURE);
    ASSERT (Entry->VirtualStart == 0);

``
18:18:13
@raitobezarius:matrix.orgraitobezariusthis is the start of the code you want to hook18:18:17
@raitobezarius:matrix.orgraitobezariusin Page.c18:18:18
@raitobezarius:matrix.orgraitobezarius you want to check the ranges and just continue; it 18:18:24
@elvishjerricco:matrix.orgElvishJerriccothis is probably better to do with qemu18:18:28
@raitobezarius:matrix.orgraitobezariusa QEMU patch is definitely going to be a stronger indicator18:18:38
@raitobezarius:matrix.orgraitobezariusdon't forget to boot the VM with RAM above 4GB though :D18:18:59
@elvishjerricco:matrix.orgElvishJerriccofun fun18:19:09
@elvishjerricco:matrix.orgElvishJerriccoI think I'm going to wait for like... anyone else to say anything, like the user with the issue or the systemd folks on the systemd issue18:19:42
@elvishjerricco:matrix.orgElvishJerriccobefore I spend the time fucking with qemu like that18:20:00
@elvishjerricco:matrix.orgElvishJerricco raitobezarius: So the guy has an Intel i7-13700K on an Asus Z690 board. That 100% shouldn't have the 4GB boundary issue, right? 21:11:15
@raitobezarius:matrix.orgraitobezariusthat's 2022 grade CPU21:11:38
@raitobezarius:matrix.orgraitobezariusthat surprise me a lot21:11:42

Show newer messages


Back to Room ListRoom Version: 6