-
Notifications
You must be signed in to change notification settings - Fork 11
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
add virt-host-validate-ch for cloud-hypervisor #13
Conversation
aed1b69
to
060d7bd
Compare
060d7bd
to
0b58073
Compare
tools/virt-host-validate-ch.c
Outdated
} | ||
|
||
char verResult[256]; | ||
virHostMsgCheck("CH", "Cloud-Hypvervisor >= 0.9.0"); |
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.
0.10.0 will be released on 09/17, so you may want to check for 0.10.0 already.
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.
Changed to check for 0.10.0
tools/virt-host-validate-ch.c
Outdated
while(ptr != NULL) | ||
{ | ||
last_tok = ptr; | ||
ptr = strtok(NULL, " "); |
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.
There seems to be a few coding style issues with that PR. Have you run ninja -C build test
against it?
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.
Addressed all test defects in ninja -C build test
66b4307
to
e4e7bbf
Compare
tools/virt-host-validate-ch.c
Outdated
return -1; | ||
|
||
switch ((int)arch) { | ||
case VIR_ARCH_I686: |
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'm not sure about this arch check given the supported arch list. It probably should just be checks on VIR_ARCH_X86_64 and VIR_ARCH_AARCH64.
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.
Ah I see the style issues also fixed up most of the arch checks sorry. Still I think the I686 test should be removed.
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.
Removed I686.
tools/virt-host-validate-ch.c
Outdated
{ | ||
return -1; | ||
} | ||
} |
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.
Is there a reason this is being done differently than chExtractVersionInto? I did get a little feedback for simplifying that even in the RFC review here.
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.
After reviewing it again, I'd decide to remove this check as it is already covered by driver already. Instead, this place should only do prerequisite environment check.
caecc49
to
7290a63
Compare
LGTM |
Fixes #12
Add initial support of
virt-host-validate
for cloud-hypervisorOutput example: