def generate_host_passthrough(self, vcpu_num):
        """
        Generate host-passthrough XML cpu node

        Args:
            vcpu_num(str): number of virtual CPUs

        Returns:
            lxml.etree.Element: CPU XML node
        """

        cpu = ET.Element('cpu', mode='host-passthrough')
        cpu.append(self.generate_topology(vcpu_num))
        if vcpu_num > 1:
            cpu.append(self.generate_numa(vcpu_num))
        return cpu
def generate_host_passthrough ( self , vcpu_num ) : cpu = ET . Element ( 'cpu' , mode = 'host-passthrough' ) cpu . append ( self . generate_topology ( vcpu_num ) ) if vcpu_num > 1 : cpu . append ( self . generate_numa ( vcpu_num ) ) return cpu
Generate host-passthrough XML cpu node

        Args:
            vcpu_num(str): number of virtual CPUs

        Returns:
            lxml.etree.Element: CPU XML node