def generate_cpu_xml(self):
if self.cpu_custom:<EOL><INDENT>return self.generate_custom(<EOL>cpu=self.cpu,<EOL>vcpu_num=self.vcpu_num,<EOL>fill_topology=self.vcpu_set<EOL>)<EOL><DEDENT>elif self.cpu_model:<EOL><INDENT>return self.generate_exact(<EOL>self.cpu_model, vcpu_num=self.vcpu_num, host_cpu=self.host_cpu<EOL>)<EOL><DEDENT>else:<EOL><INDENT>return self.generate_host_passthrough(self.vcpu_num)<EOL><DEDENT>
Get CPU XML

Returns:
    lxml.etree.Element: cpu node