-
Notifications
You must be signed in to change notification settings - Fork 935
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
Handle long device names when creating QEMU device tags #13516
Handle long device names when creating QEMU device tags #13516
Conversation
31795e6
to
1513425
Compare
Please can this be rebased too |
d0a325e
to
17826c4
Compare
17826c4
to
441572b
Compare
@tomponline This is ready again. Sorry @ru-fu this was my mistake, I believe your help is not needed for this one. |
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.
@hamistao please can you confirm that no device name that previously worked has been changed when passed to qemu, and only longer device names that didn't work previously are now hashed?
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
…tdevs Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
441572b
to
342bef9
Compare
@tomponline Yes, I can. I ran some tests to confirm and any name up to 27 chars is not being hashed. |
@tomponline To be more specific, some tags have a limit of 31 chars and others have a limit of 36. The shorter tags are only used during cold-plugging, so a hot-plugged device could work with the limit of 36 (until VM restart) but not a cold-plugged one. So I chose 31 as the limit to maintain a standard and keep the code simpler. If you think it is best, I could use different limits for each case as to not alter the behavior in the hot-plugging scenario. |
Fixes #13495.
Helps to avoid problems with these tests.
The old
blockNodeName
function was modified, renamed and repurposed to also help generating device tags for QEMU.