guest: Add clarifying comment

This commit is contained in:
Cole Robinson 2014-09-23 16:19:54 -04:00
parent 42ac7a3036
commit 318ac3df55
1 changed files with 3 additions and 0 deletions

View File

@ -766,6 +766,9 @@ class Guest(XMLBuilder):
elif self.os.is_x86() and self.type == "kvm":
if self.os.arch != self.conn.caps.host.cpu.arch:
return
# We need this check to handle the user setting --cpu none on
# the CLI to override our defaults
if self.cpu.special_mode_was_set:
return
self.cpu.set_special_mode(self.x86_cpu_default)