Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASL compiler support (ACPI) #199

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Sep 25, 2020

  1. Args: add '-a' option: asl compiler path

    ASL compiler will be used to build ACPI tables at runtime
    shchuko committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    ca6b853 View commit details
    Browse the repository at this point in the history
  2. ACPI-AML: change definitions' names to prevent overlap

    We'll switch between precompiled AMLs (used now) and runtime-compiling
    ACPI when starting xhyve. 'acpi.c' and 'acpitbl.c' have same acpi
    tables offsets definitions. To prevent problems in future and partly
    save compatibility with bhyve sources, rename definitios in 'acpitbl.c'
    shchuko committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    585a881 View commit details
    Browse the repository at this point in the history
  3. ACPI: remove 'ACPITBL_AML' definition

    Since this moment we're assuming that ACPI tables build method will be
    chosen at runtime.
    
    If ASL compiler path specified - building ACPI tables using it, if not
    - building them from existing AMLs
    shchuko committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    8421bff View commit details
    Browse the repository at this point in the history
  4. ACPI: wrap ACPI build functions with callbacks

    Wrapping functions with callbacks let us choose at runtime how the
    tables should be built: using precompiled AMLs or using ASL compiler.
    
    ASL-compiling method is gonna be updated, it doesn't work properly now
    shchuko committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    10c540a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    18657bf View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Configuration menu
    Copy the full SHA
    c954472 View commit details
    Browse the repository at this point in the history
  2. ACPI MADT table correction for VM_MAXCPU > 21

    The bhyve acpi MADT table was given a static space of 256 (0x100) bytes,
    this is enough space to allow VM_MAXCPU to be 21, this patch changes
    that so VM_MAXCPU can be of arbitrary value and not overflow the space
    by actually calculating the space needed for the table.
    
    Based on freebsd/freebsd-src@5822161
    shchuko committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    f45ec51 View commit details
    Browse the repository at this point in the history