Skip to content

Conversation

@kraxel
Copy link
Member

@kraxel kraxel commented Dec 4, 2025

Description

  • OvmfPkg/VirtioSerialDxe: drop Get/SetControl logging

  • OvmfPkg/VirtioSerialDxe: explitly clear return value in GetControl

  • OvmfPkg/VirtioSerialDxe: factor out VirtioSerialIoWriteFlush

  • OvmfPkg/VirtioSerialDxe: set EFI_SERIAL_INPUT_BUFFER_EMPTY

  • Breaking change?

    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?

    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?

    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

manual testing in qemu

Integration Instructions

N/A

@kraxel kraxel marked this pull request as ready for review December 4, 2025 17:08
@ardbiesheuvel
Copy link
Member

Please describe these changes in terms of the 'why' - describing /what/ a 2 line patch does is kind of pointless, anybody can see that for themselves.

Left over from development.  The messages do not serve much value
and spam the logs.  Drop them.

Signed-off-by: Gerd Hoffmann <[email protected]>
The function does not return any flags.  Make that explicit instead of
leaving the return value unmodified, so we do not depend on the caller
initializing it.

Signed-off-by: Gerd Hoffmann <[email protected]>
Next patch needs this function.
No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
@kraxel kraxel force-pushed the devel/logs-virtio-serial branch from 680646e to 18ef1af Compare December 5, 2025 09:46
@tianocore-pr-automation
Copy link

Pull Request Formatting Issues

⚠️ Provide a more detailed pull request description using the PR template (current: 132 characters).

Address these issues and the validation will automatically re-run when you update your pull request.

@ardbiesheuvel ardbiesheuvel added the push Auto push patch series in PR if all checks pass label Dec 5, 2025
Check if there is data available for read, set the
EFI_SERIAL_INPUT_BUFFER_EMPTY flag accordingly.

With proper status returned VirtioSerialIoRead() will only
be called if there is actual data to read, so we must call
VirtioSerialIoWriteFlush() to make sure pending writes get
flushed to the host properly.

Signed-off-by: Gerd Hoffmann <[email protected]>
@kraxel kraxel force-pushed the devel/logs-virtio-serial branch from 18ef1af to 0d8d6b0 Compare December 5, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

push Auto push patch series in PR if all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants