-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fix virtIO on some ppc64le and <12-SP2 machines #6404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add_serial_console
from where is used ? missing use serial_terminal 'add_serial_console';
I'll test it later today. |
elsif (get_var('OFW')) { | ||
add_serial_console('hvc1'); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
add_serial_console('hvc' . is_sle('<12-SP2') ? 0 : 1) if (get_var('VIRTIO_CONSOLE') && check_var('ARCH', 'ppc64le'));
or what should happen in the "else"-branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before SLE12-SP2 we need to run agetty on /dev/hvc0 ourselves. After SP2 it is done automatically by systemd AFAIK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@okurz a week ago my if() { … } else { … }
was 'too complex' and now you write this?
# poo#44699 Enable console on hvc1 to fix login issues on ppc64le | ||
if (!check_var('VIRTIO_CONSOLE', 0)) { | ||
if (is_sle('<12-SP2')) { | ||
add_serial_console('hvc0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work, do we have that device available on all backends and architectures or only ppc64le?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC the virtio serial driver always uses the "HVC" serial terminal driver. So it will always get a device called hvcN
regardless of the platform.
If not then we need to introduce another variable, but I don't think it is necessary for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@okurz only sligty misleading PR name
87f2da4
to
c296882
Compare
@pdostal FYI now we have very similar cleanup code in these modules:
(well, unlike the others wicked is using |
This PR fixing issues with virtIO serial terminal on the PPC64le architecture.
This is a follow up of #6360, #6351 and #6295.