Skip to content

Conversation

@slp
Copy link
Collaborator

@slp slp commented Feb 2, 2026

For many years, the Linux kernel implemented the order of cols and rows swapped with respect of the specifications. In commit 5326ab737a47 it was changed to match the specs.

There's no good way to address this. You either get a working virtio-console on newer kernels or on older kernels, but never on both. Making this configurable via the API would just mean dumping the burden onto the users.

Fedora 43 and libkrunfw 5.2.0 already ship with a kernel with a "fixed" virtio-console, so let's follow suit and use the spec's order here too.

For many years, the Linux kernel implemented the order of cols and rows
swapped with respect of the specifications. In commit 5326ab737a47 it
was changed to match the specs.

There's no good way to address this. You either get a working
virtio-console on newer kernels or on older kernels, but never on both.
Making this configurable via the API would just mean dumping the burden
onto the users.

Fedora 43 and libkrunfw 5.2.0 already ship with a kernel with a "fixed"
virtio-console, so let's follow suit and use the spec's order here too.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Copy link
Collaborator

@mtjhrc mtjhrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Since it looks like this is also being changed in all kernel releases (not just a change in a new kernel version), that is strongly in favor of just changing this on the libkrun side too, without user having to configure this.

Making this configurable via the API would just mean dumping the burden onto the users.

I agree in the sense that, If we wanted a configurable API, we should default to the "fixed" order at this point. (we could have an API to enable the non-spec-compliant order, but let's not bother since we don't need it currently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants