Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-82759

[EDK2] Out of aligned pages when boot a vm with 5 level paging enabled [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.6, rhel-9.7
    • edk2
    • No
    • Moderate
    • rhel-virt-confidential-firmware
    • ssg_virtualization
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      .VMs with 5-level page merging and a lot of memory sometimes fail to start

      VMs with the following configuration fail to boot if you set the `host-phys-bits-limit` parameter to `49` or more:

      * The VM has more than 1 TB of assigned memory
      * The VM uses the 5-level page merging feature
      * The host uses System Management Mode (SMM) in its firmware

      Instead, attempting to boot the VM fails with `ERROR: Out of aligned pages`.

      Workaround: Set the `host-phys-bits-limit` parameter to 48 or less.
      Show
      .VMs with 5-level page merging and a lot of memory sometimes fail to start VMs with the following configuration fail to boot if you set the `host-phys-bits-limit` parameter to `49` or more: * The VM has more than 1 TB of assigned memory * The VM uses the 5-level page merging feature * The host uses System Management Mode (SMM) in its firmware Instead, attempting to boot the VM fails with `ERROR: Out of aligned pages`. Workaround: Set the `host-phys-bits-limit` parameter to 48 or less.
    • Done
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      When setting host-phys-bits-limit to 52 and booting the vm with 5 level paging enabled, the vm can not boot up.

      What is the impact of this issue to you?

      Normal: it works well if setting host-phys-bits-limit to 48.

      Please provide the package NVR for which the bug is seen:

      Versions:
      kernel-5.14.0-570.el9.x86_64
      qemu-kvm-9.1.0-15.el9
      edk2-ovmf-20241117-2.el9

      How reproducible is this bug?:

      5/5

      Steps to reproduce

      1. boot a vm with host-phys-bits-limit=52 and 5 level paging enabled. The full qemu command lines, boot_la57.sh

      Expected results

      The vm boots up successfully.

      Actual results

      The vm can not boot up, hit the following error.

      ERROR: Out of aligned pages
      ASSERT SmmCpuMemoryManagement.c(1210): PageTableBuffer != ((void *) 0)

      The full edk2 log: boot_la57_edk2_log

       

      Additional information:

      In the following situations, the vm will start successfully.

      1. change OVMF_CODE.secboot.fd to OVMF_CODE.fd in qemu command lines
      2. set host-phys-bits-limit=48 in qemu command lines

              virt-maint virt-maint
              jetwei Xueqiang Wei
              virt-maint virt-maint
              Xueqiang Wei Xueqiang Wei
              Jiří Herrmann Jiří Herrmann
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: