-
Notifications
You must be signed in to change notification settings - Fork 100
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.
Thanks @Jakob-Naucke. ooi, did you spot this problem in testing or by code inspection alone?
Looking over this file, there are a lot of functions (88, 18 of which are QemuConfig()
ones ;) and each seems to handle building up these params differently (either appending with a comma, then joining with a null string; or appending without a separator, then joining with a comma).
It's not required for this PR, but I do think we need to make the handling more consistent generally.
Maybe you could add a unit test for the functions you've changed to ensure we don't end up with either a missing comma-separator or a double-comma though?
@jodh-intel this was in testing, by enabling
I noticed :) I might get into it when I find the time.
Sure, let me get back to you. |
Hmmm. There is one test that tests Line 84 in 263136e
but that's 25 lines for that tiny flag, and that times all the devices... the ideal thing would be to refactor testing to allow for these flags... that's a lot though. Hmmm. |
@Jakob-Naucke - ack. Let's just raise an issue to track this as you can't be expected to rewrite most of the tests for a relatively small change like this. |
See #180, #181 |
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.
Thanks @Jakob-Naucke.
Enable iommu_platform for vhost user devices Fixes: #178 Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
commas
Fixes: #178
Signed-off-by: Jakob Naucke jakob.naucke@ibm.com