<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_to_qemu(self):
 """ Add additional parameters to a QemuVM Device that were present in its global conf section """

        device = self.device_info['ext_conf']
        node_prop = self.node['properties']
        hv_device = self.hypervisor[device]
        # QEMU HDD Images
        if 'hda_disk_image' not in node_prop:
            if 'image' in hv_device:
                node_prop['hda_disk_image'] = hv_device['image']
            elif 'image1' in hv_device:
                node_prop['hda_disk_image'] = hv_device['image1']
        if 'hdb_disk_image' not in node_prop and 'image2' in hv_device:
            node_prop['hdb_disk_image'] = hv_device['image2']
        # RAM
        if 'ram' not in node_prop and 'ram' in hv_device:
            node_prop['ram'] = hv_device['ram']
        else:
            node_prop['ram'] = 256
        # QEMU Options
        if 'options' not in node_prop and 'options' in hv_device:
            node_prop['options'] = hv_device['options']
        # Kernel Image
        if 'kernel_image' not in node_prop and 'kernel' in hv_device:
            node_prop['kernel_image'] = hv_device['kernel']
        # Kernel Command Line
        if 'kernel_command_line' not in node_prop and \
                'kernel_cmdline' in hv_device:
            node_prop['kernel_command_line'] = hv_device['kernel_cmdline']
        # initrd
        if 'initrd' not in node_prop and 'initrd' in hv_device:
            node_prop['initrd'] = hv_device['initrd']
        # Number of adapters
        if 'adapters' not in node_prop and 'nics' in hv_device:
            node_prop['adapters'] = hv_device['nics']
        elif 'adapters' not in node_prop and 'nics' not in hv_device:
            node_prop['adapters'] = 6
        # Adapter type
        if 'adapter_type' not in node_prop and 'netcard' in hv_device:
            node_prop['adapter_type'] = hv_device['netcard']
        # Console Port
        if 'console' not in node_prop:
            node_prop['console'] = self.base_ports['qemu_console'] + \
                self.node['qemu_id'] - 1
        # Qemu Path
        if 'qemu_path' not in node_prop:
            qemu_path = self.hypervisor['qemu_path']
            # Modify QEMU Path if flavor is specified
            if 'flavor' in hv_device:
                qemu_path = re.sub(r'qemu-system-.*',
                                   'qemu-system' + hv_device['flavor'],
                                   qemu_path)
            node_prop['qemu_path'] = qemu_path