You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/05/21 04:46:50 UTC
[GitHub] [cloudstack] anuragaw commented on a change in pull request #3335:
kvm: disable cpu features if feature starts with '-'
anuragaw commented on a change in pull request #3335: kvm: disable cpu features if feature starts with '-'
URL: https://github.com/apache/cloudstack/pull/3335#discussion_r285849457
##########
File path: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
##########
@@ -1360,7 +1360,11 @@ public String toString() {
if (_features != null) {
for (String feature : _features) {
- modeBuilder.append("<feature policy='require' name='" + feature + "'/>");
+ if (feature.startsWith("-")) {
Review comment:
minor suggestion - trim to remove accidental spaces if we are checking prefix.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services