def isSvmHardware(self):
"""Return True if host is HVM compatible and has SVM enabled"""
- if isinstance(self, xenrt.lib.xenserver.BostonHost):
- return self.isHvmEnabled() and "AuthenticAMD" in self.getHostParam("cpu_info")
- else:
- cpuinfo = self.execdom0("cat /proc/cpuinfo")
- return self.isHvmEnabled() and re.search(r"AuthenticAMD", cpuinfo)
+ return self.isHvmEnabled() and re.search(r"AuthenticAMD", self.execdom0("cat /proc/cpuinfo"))
def isVmxHardware(self):
"""Return True if host is HVM compatible and has VMX enabled"""
- if isinstance(self, xenrt.lib.xenserver.BostonHost):
- return self.isHvmEnabled() and "GenuineIntel" in self.getHostParam("cpu_info")
- else:
- cpuinfo = self.execdom0("cat /proc/cpuinfo")
- return self.isHvmEnabled() and re.search(r"GenuineIntel", cpuinfo)
+ return self.isHvmEnabled() and re.search(r"GenuineIntel", self.execdom0("cat /proc/cpuinfo"))
def getBridgeWithMapping(self, index):
"""Returns the name of a bridge corresponding to the interface