[virt-tools-list] [PATCH virt-manager] create: verify HYPER-V support after customization
Giuseppe Scrivano
gscrivan at redhat.com
Wed May 20 20:51:24 UTC 2015
Cole Robinson <crobinso at redhat.com> writes:
>> + def check_defaults(self):
>> + if not self._hv_supported():
>> + self.features.hyperv_relaxed = None
>> + self.features.hyperv_vapic = None
>> + self.features.hyperv_spinlocks = None
>> + self.features.hyperv_spinlocks_retries = None
>> + for i in self.clock.timers:
>> + if i.name == "hypervclock":
>> + self.clock.remove_timer(i)
>> +
>> def _set_feature_defaults(self):
>> if self.os.is_container():
>> self.features.acpi = None
>>
>
> ACK, but can you add a comment to check_defaults explaining how it's used:
> virt-manager only, to reset any defaults that may have changed through manual
> intervention via the customize wizard. I know I'll eventually forget...
Thanks for the quick review. I have pushed the patch with the comment.
Giuseppe
More information about the virt-tools-list
mailing list