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

platform: move I/O port driver into platform abstraction #463

Merged
merged 2 commits into from
Oct 15, 2024

Commits on Oct 2, 2024

  1. platform: move I/O port driver into platform abstraction

    The `SVSMIOPort` and `NativeIOPort` objects are platform-specific, and
    thus they should be implemented in the platform abstraction instead of
    in common code.  Furthermore, the console serial port object is common
    and need not be duplicated in every platform abstraction.
    
    Signed-off-by: Jon Lange <[email protected]>
    msft-jlange committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    cf2cbce View commit details
    Browse the repository at this point in the history
  2. kernel: fix test-in-svsm use of the test serial port

    The test serial port must use the same platform abstraction as the rest
    of the I/O port abstraction.  Since serial port construction is now
    platform-specific, the construction is moved to the first use of the
    test serial port.  The serial port cell is changed to an `Option` to
    simplify the synchronization of the dynamic initialization across
    consumers.
    
    Also, for better abstraction, the operation to obtain the test serial
    port doesn't emit a byte; it simply returns the port so the caller can
    write whatever it wants.
    
    Signed-off-by: Jon Lange <[email protected]>
    msft-jlange committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    b722a58 View commit details
    Browse the repository at this point in the history