Scalable multi-lane direct access memory controller, method, medium, and apparatus

By using a modular, scalable, multi-channel direct access memory controller, the multi-tenant isolation problem of traditional DMA architecture in virtualization scenarios is solved, enabling hardware-level dynamic expansion and isolation between virtual machines, thereby improving system scalability, security, and performance.

CN123178309APending Publication Date: 2026-11-27JINGLUE SEMICONDUCTOR (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611285676.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing traditional DMA architectures cannot meet multi-tenant isolation standards in virtualization scenarios, leading to cross-virtual machine data leakage, resource contention, and business disruption.

Method used

A scalable multi-channel direct access memory controller is provided, which supports hardware-level dynamic expansion through modular pluggable DMA channel arrays, independent queue management, independent descriptor linked list management and independent interrupt management, and realizes virtual machine hardware isolation and multi-tenant non-interference.

Benefits of technology

It significantly improves the system's scalability, security, and performance, making it suitable for highly reliable and multi-tenant isolated virtualization environments, preventing cross-virtual machine interference, and optimizing hardware utilization and interrupt response efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178309A_ABST
    Figure CN123178309A_ABST
Patent Text Reader

Abstract

The application provides an extensible multi-channel direct access memory controller, method, medium and device, comprising: a data access module for performing read input and write output of to-be-accessed data; an extensible channel array module for determining static configuration and dynamic expansion of a plurality of extensible channel array modules; a virtualization channel mapping management module for establishing a one-to-one mapping relationship between a virtual machine number and a physical channel number, supporting binding and unbinding of a virtual machine and a corresponding physical channel in the extensible channel array module, and configuring access permission of the virtual machine; a hierarchical multi-channel interrupt management module for reporting a global interrupt signal and / or a local interrupt signal to a processor according to a mask result corresponding to an independent set interrupt flag of a current physical channel when to-be-accessed data transmission is completed or an exception occurs; and the application proposes a modular pluggable DMA channel array, improves system expansibility, and independently configures each DMA channel to realize resource isolation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data transmission technology and relates to a scalable multi-channel direct access memory controller, method, medium, and device. Background Technology

[0002] In modern intelligent system-on-a-chip (SoC), network switching chip, data processor, and virtualized embedded system, Direct Memory Access (DMA) controllers serve as core components, undertaking large-scale data transfer tasks and significantly improving system throughput. With the widespread application of virtualization technology, a single chip needs to run multiple virtual machines and independent service domains simultaneously. Transmission isolation, resource isolation, interrupt isolation, and queue isolation must be implemented between virtual machines to avoid cross-virtual machine data leakage, resource preemption, and service interference. However, existing traditional DMA architectures have significant shortcomings and do not meet virtualization multi-tenant isolation specifications.

[0003] Therefore, overcoming the limitations of traditional DMA in virtualization scenarios has become an urgent technical problem to be solved. Summary of the Invention

[0004] This application provides a scalable multi-channel direct access memory controller, method, medium, and device, which provides a DMA architecture that can dynamically expand the number of channels in hardware, supports independent queue management, independent descriptor list management, and independent interrupt management for each channel, and has virtual machine hardware isolation and multi-tenant non-interference capabilities.

[0005] In a first aspect, this application provides a scalable multi-channel direct access memory controller, comprising: a data access module for interacting with an external bus and performing read input and write output of data to be accessed; and a scalable channel array module connected to the data access module, comprising multiple modular channel units, for determining the static configuration and dynamic expansion of the multiple scalable channel array modules; the scalable channel array module is configured to acquire and parse a transfer descriptor, schedule the data access module to read the data to be accessed based on the parsing result, complete the transfer of the data to be accessed within the scalable channel array module, and transmit the transferred data to be accessed via a... The data access module outputs to the destination address; the virtualization channel mapping management module, connected to the expandable channel array module, is used to establish a one-to-one mapping relationship between virtual machine numbers and physical channel numbers, support the binding and unbinding of the virtual machine and the corresponding physical channel in the expandable channel array module, and configure the access permissions of the virtual machine; the hierarchical multi-channel interrupt management module, connected to the expandable channel array module and the virtualization channel mapping management module respectively, is used to report global interrupt signals and / or local interrupt signals to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel when the data to be accessed is transmitted and an abnormality occurs.

[0006] In this application, a modular pluggable DMA channel array is used to dynamically schedule resources and optimize interrupt management, supporting hardware-level dynamic expansion without reconstructing the overall hardware. The number of channels can be flexibly increased according to actual needs, which significantly improves the scalability, security, performance and flexibility of the system. It is particularly suitable for virtualization environments that require high reliability and multi-tenant isolation.

[0007] In one implementation of the first aspect, the plurality of scalable channel array modules include: a channel independent queue management unit, which has an independent transmission FIFO, a data buffer queue and a transmission status queue built into each channel, and the channel queues are physically isolated; and a channel independent descriptor management unit, which is connected to the channel independent queue management unit and configures an independent descriptor linked list base address, descriptor depth and descriptor state machine for each physically isolated channel.

[0008] In one implementation of the first aspect, the virtualization channel mapping management module includes a virtualization channel mapping table, comprising: each entry in the virtualization channel mapping table corresponds to a direct memory access physical channel, including the following fields: a validity bit field, used to identify the validity of the entry; a virtual machine number field, used to identify the tenant or virtual machine; a physical channel number field, used to identify the direct memory access hardware physical channel number; an interrupt vector number field, used to identify the interrupt vector corresponding to the channel bound to the virtual machine; and an access permission field, used to identify the access permission of the virtual machine to the physical channel.

[0009] In one implementation of the first aspect, the hierarchical multi-channel interrupt management module includes: a global interrupt unit connected to the expandable channel array module, used to aggregate interrupt signals from all channels and report global interrupt signals for direct access to memory to the processor; and a channel-independent interrupt unit, each of which is connected to the channel-independent queue management unit or the channel-independent descriptor management unit, used to implement independent reporting of local interrupt signals from the channel-independent queue management unit and the channel-independent descriptor management unit.

[0010] In one implementation of the first aspect, the controller further includes a multi-channel dynamic scheduling module connected to the expandable channel array module, configured with bandwidth weights for the corresponding channels according to the level of the virtual machine, and scheduled the transmission tasks using a priority scheduling and weighted round-robin scheduling mechanism to achieve service quality isolation for multi-virtual machine transmission.

[0011] In one implementation of the first aspect, the controller further includes a channel dynamic expansion and resource reclamation module, which is connected to the expandable channel array module and the virtualized channel mapping management module, respectively, for supporting the initial power-on configuration of the number of channels, dynamic addition or reduction of channels during runtime, and dynamic reclamation of idle channel resources.

[0012] Secondly, this application provides a direct memory access data transfer method, applied to the controller described in any one of the first aspects. The method includes: performing read input and write output of memory data to be accessed; configuring a scalable total number of direct memory access physical channels, reading the memory data to be accessed according to the parsing result, completing the transfer of the memory data to be accessed, and outputting the transferred memory data to the destination address; establishing a one-to-one mapping relationship between virtual machine numbers and physical channel numbers, supporting the binding and unbinding of the virtual machine and the corresponding physical channel in the scalable channel array module, and configuring access permissions for the virtual machine; and when the memory data transfer is completed or an abnormality occurs, reporting a global interrupt signal and / or a local interrupt signal to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel.

[0013] In one implementation of the second aspect, the method further includes: when the virtual machine is destroyed, automatically reclaiming the physical channel resources corresponding to the virtual machine, and redistributing the reclaimed physical channels to other virtual machines to achieve resource reuse and elastic scaling.

[0014] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the scalable multi-channel direct access memory data transmission method described in any one of the second aspects of embodiments of this application.

[0015] Fourthly, embodiments of this application provide an electronic device, the electronic device comprising: a memory storing a computer program; and a processor communicatively connected to the memory, which, when the computer program is invoked, executes the scalable multi-channel direct access memory data transmission method described in any one of the second aspects of embodiments of this application.

[0016] As described above, the scalable multichannel direct access memory controller, method, medium, and device described in this application have the following beneficial effects:

[0017] 1) Through modular pluggable DMA channel array, it supports dynamic hardware-level expansion without the need to reconstruct the overall hardware. The number of channels can be flexibly increased according to actual needs, which significantly improves the system scalability. The number of channels can be flexibly configured to adapt to different application scenarios, avoid resource waste or shortage, and optimize hardware utilization.

[0018] 2) Each DMA channel is independently configured (FIFO queue, descriptor list, interrupt state machine, interrupt mask) to achieve hardware-level isolation between virtual machines and prevent cross-virtual machine interference; the virtualization channel mapping table enables hardware binding between virtual machine IDs and DMA channels to ensure complete resource isolation between tenants and improve the security of multi-tenant environments.

[0019] 3) The combination of global interrupt and channel-specific sub-interrupts supports independent reporting, interrupt clearing and masking of a single channel, improving interrupt response efficiency and reducing interrupt handling overhead; the independent interrupt state machine and masking mechanism avoid interrupt conflicts and improve system stability. Attached Figure Description

[0020] Figure 1A The diagram shown is a structural diagram of a scalable multichannel direct access memory controller provided in an embodiment of this application.

[0021] Figure 1B The diagram shown is a mapping relationship between the virtual machine and the DMA channel provided in an embodiment of this application.

[0022] Figure 2A The diagram shown is a structural diagram of the scalable channel array module provided in an embodiment of this application.

[0023] Figure 2B The diagram shown is a single-channel three-level isolation resource structure diagram provided in an embodiment of this application.

[0024] Figure 3AThe diagram shown is a structural diagram of an scalable multi-channel direct access memory controller based on a hierarchical multi-channel interrupt management module provided in an embodiment of this application.

[0025] Figure 3B The diagram shown is a hierarchical two-level interrupt architecture provided in an embodiment of this application.

[0026] Figure 4 The diagram shown is a structural diagram of an scalable multi-channel direct access memory controller based on a multi-channel dynamic scheduling module provided in an embodiment of this application.

[0027] Figure 5A The diagram shown is a structural diagram of a scalable multichannel direct access memory controller based on a recycling module, as provided in an embodiment of this application.

[0028] Figure 5B The diagram shown is a flowchart of multi-channel dynamic expansion and resource recycling provided in an embodiment of this application.

[0029] Figure 6 The flowchart shown is a scalable multi-channel direct access memory data transfer method provided in an embodiment of this application.

[0030] Figure 7 The diagram shows a comparison of the isolation capabilities of conventional DMA and that of this application, as provided in an embodiment of this application.

[0031] Figure 8 The diagram shown is a structural diagram of an electronic device provided in an embodiment of this application.

[0032] Component designation explanation

[0033] 100 Scalable multichannel direct access memory controller 1220a Independent queue management unit for channels 110 Data access module 1220b Independent queue management unit for channels 120 Scalable Channel Array Module 150 Multi-channel dynamic scheduling module 130 Virtualization Channel Mapping Management Module 160 Channel dynamic expansion and resource recycling module 140 Layered multi-channel interrupt management module S61~S64 step 1210 Independent queue management unit for channels 80 electronic devices 1220 Channel Independent Descriptor Management Unit 81 processor 141 Global Interrupt Unit 82 Non-volatile storage media 142 Independent interrupt unit for channels 83 System bus 142a Independent interrupt unit for channels 84 Internal memory 142b Independent interrupt unit for channels 85 Network interface 142c Independent interrupt unit for channels Detailed Implementation

[0034] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0035] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0036] The technical solutions in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0037] like Figure 1A As shown in the figure, this application embodiment provides a structural diagram of a scalable multi-channel direct access memory controller, as follows: Figure 1A As shown, the scalable multi-channel direct access memory controller 100 provided in this application embodiment includes a data memory access module 110, a scalable channel array module 120, a virtualized channel mapping management module 130, and a hierarchical multi-channel interrupt management module 140.

[0038] The data access module is used to interact with the external bus and perform read input and write output of the data to be accessed.

[0039] An expandable channel array module, connected to the data access module, is composed of multiple modular channel units and is used to determine the static configuration and dynamic expansion of the multiple expandable channel array modules. The expandable channel array module is configured to acquire and parse the transfer descriptor, schedule the data access module to read the data to be accessed based on the parsing result, complete the transfer of the data to be accessed within the expandable channel array module, and output the transferred data to the destination address via the data access module.

[0040] Among them, multiple modular channel units are channel-independent queue management units and channel-independent descriptor management units.

[0041] For example, the descriptor data structure (64-byte chained DMA descriptor, hardware standard format) maintains a circular linked list of descriptors in memory for each channel, and the table corresponding to each descriptor field is as follows:

[0042] Fields Bit width illustrate next_ptr 64bit Next descriptor physical address, linked list pointer src_addr 64bit DMA source physical address dst_addr 64bit DMA destination physical address xfer_len 32bit Length of bytes transmitted ctrl_flag 32bit Control flags: interrupt enable, chain end, write-back status, error mask, etc. status 32bit Hardware write-back completion status and error codes rsv 128bit Reserve extension bits

[0043] Each physical Direct Memory Access (DMA) channel has an independent channel descriptor base address register (configured by the Host through the configuration register set), which points to the first address of the circular descriptor queue in memory for that virtual machine (VM); the descriptor memory regions of different VM channels are isolated from each other.

[0044] For example, the corresponding complete parsing process is as follows:

[0045] I. Triggering prefetching

[0046] When a physical DMA channel is idle and there are empty slots in the local task FIFO: the channel's internal state machine reads the channel's desc_base_ptr (channel-private register), initiates a burst read to system memory via the Advanced Dextensible Interface (AXI) system bus interface, retrieves the complete 64-byte descriptor, and stores it in the channel's internal descriptor register cache. Specifically, each physical channel initiates an AXI read request independently, and multiple channels read their respective VM's memory descriptors in parallel without blocking each other.

[0047] II. Hardware Field Analysis (Pure combinational logic, no CPU involvement)

[0048] The hardware directly performs bit-field truncation and parsing on the 64-byte descriptor within the cache group:

[0049] 1. Extract next_ptr: Update the address of the next descriptor read within the channel;

[0050] 2.2. Extract src_addr and dst_addr: the DMA source and destination memory addresses;

[0051] 3. Extract xfer_len: the number of bytes to be moved this time;

[0052] 4. Extract the ctrl_flag control field: parse whether completion interruption is enabled, whether it is the last descriptor in the linked list, and whether the status needs to be written back;

[0053] 5. Extract status: software preset status, hardware will be modified later.

[0054] III. Hardware Validity Verification (Internal Hardware Judgment within the Channel)

[0055] The hardware performs multiple checks; if a check fails, it is immediately marked as an error, and the transfer task is no longer issued.

[0056] 1. Determine if xfer_len is a valid transfer length (it cannot exceed the maximum single transfer limit supported by DMA);

[0057] 2. Check if the source / destination addresses are aligned (alignment checking can be enabled by configuration);

[0058] 3. Combine the access permissions for this channel passed from the Virtual Machine Mapping Table (VMT):

[0059] If the VMT permissions are read-only, the parsed task cannot be written to memory;

[0060] If the VMT permission is write-only, the parsing task cannot perform a memory read;

[0061] Permission verification involves comparing the Access_Permission output by the VMT with the read / write commands parsed from the descriptor using hardware.

[0062] IV. Assemble the transmission task and independently enter the private task FIFO of this channel.

[0063] After all parsing and verification are successful, {src_addr, dst_addr, xfer_len, ctrl_flag} are assembled into a DMA transfer task message and written into the task FIFO exclusively for this channel.

[0064] Among these features: each physical channel has an independent FIFO; tasks parsed from channel A will never end up in channel B's FIFO; and independent queuing is achieved.

[0065] V. Independent transmission is performed in the backend.

[0066] The physical DMA transfer path reads the task FIFO of this channel and performs AXI read / write transfer; each channel performs data transfer in parallel, and the transfer progress between channels does not affect each other.

[0067] VI. Descriptor Chain Advancement

[0068] If the ctrl_flag flag is not the end of the linked list, the state machine uses the parsed next_ptr to initiate an AXI read again, prefetch the next descriptor, and execute the parsing process in a loop.

[0069] If it is the end marker of the linked list, prefetching stops and the program waits for the software to refill the descriptor.

[0070] VII. Status write-back after transmission is completed

[0071] Once DMA transfer is complete, the hardware writes the completion status / error code back to the status field of the memory descriptor; if ctrl_flag interrupt enable is set, the interrupt aggregation module is triggered to report the interrupt vector of the corresponding VM.

[0072] The virtualization channel mapping management module, connected to the expandable channel array module, is used to establish a one-to-one mapping relationship between virtual machine numbers and physical channel numbers, support the binding and unbinding of the virtual machine and the corresponding physical channel in the expandable channel array module, and configure the access permissions of the virtual machine.

[0073] In some embodiments, the virtualization channel mapping management module includes a virtualization channel mapping table, comprising: each entry in the virtualization channel mapping table corresponds to a direct memory access physical channel, including the following fields: a validity bit field, used to identify the validity of the entry; a virtual machine number field, used to identify the tenant or virtual machine; a physical channel number field, used to identify the direct memory access hardware physical channel number; an interrupt vector number field, used to identify the interrupt vector corresponding to the channel bound to the virtual machine; and an access permission field, used to identify the access permission of the virtual machine to the physical channel.

[0074] Specifically, the virtualization channel mapping table can bind virtual machine IDs to DMA channel hardware one-to-one, achieving tenant hardware isolation; it is used for hard binding of virtual machine IDs to DMA hardware channels, achieving tenant hardware-level isolation; the table is stored in the on-chip SRAM of the DMA controller, which can be directly accessed by the hardware without CPU forwarding; each table entry corresponds to one hardware DMA physical channel, and one physical channel can only be assigned to one VMID, prohibiting multiple VMs from reusing the same hardware channel, achieving hardware-level isolation, and avoiding mutual interference between descriptors, interrupts, and data paths between tenants.

[0075] For example, the virtualization channel mapping table is as follows:

[0076] Bit field Field Name Bit width illustrate Bit[63:48] Valid (Valid Part) 16bit The high 16 bits serve as a multi-enable mask; Bit63=1 indicates that the entry is valid; the rest are reserved for multi-field enabling. Bit[47:32] VM_ID (Virtual Machine Number) 16bit Tenant / Virtual Machine ID, 0~65535; supports up to 65535 virtual machines. Bit[31:16] Physical_DMA_CH_ID (Physical Channel Number) 16bit DMA hardware physical channel number, 0~N-1; N is the maximum number of physical channels in the hardware (e.g., 32 / 64 / 128 channels). Bit[15:8] Interrupt_Vector_ID (Interrupt vector number) 8bit The interrupt vector corresponding to the channel bound to the VM is isolated by the VM, and interrupt vectors from different VMs do not overlap. Bit[7:4] Access Permission 4bit 0001: Read; 0010: Write; 0011: Read / Write; the rest are reserved; hardware performs permission verification, and the VM cannot access channels that do not belong to it. Bit[3:0] Reserved space 4bit Reserve for expansion, set to 0

[0077] It should be noted that the same physical direct access memory channel (Physical_DMA_CH_ID) is not allowed to appear in multiple VMT entries; during writing, the DMA hardware performs anti-collision checks. If the software configures duplicate physical channels, the hardware will directly discard the entry and return an error status register.

[0078] For example, another virtualized channel mapping representation is shown below (where, the actual storage SRAM snapshot example has 8 entries and the maximum physical channels in the hardware is 8).

[0079]

[0080] InterruptVectorID is the interrupt vector identifier, and AccessPermission is the access permission.

[0081] Specifically, the hardware lookup logic (internal pipeline operation of the DMA controller) is as follows:

[0082] 1. The DMA receives a request from the VM, which carries the VM_ID;

[0083] 2. Hardware parallel search of VMTSRAM, matching VM_ID; if a match is found, obtain the unique corresponding Physical_DMA_CH_ID, interrupt vector, and access permissions;

[0084] 3. If a miss occurs / VMT valid bit = 0: The hardware directly discards this DMA request, generates an isolation error interrupt, and does not trigger data transfer;

[0085] 4. The hardware routes requests to the bound physical DMA channel; redirection to other physical channels is prohibited.

[0086] 5. After DMA is completed, an interrupt is only initiated to the Interrupt_Vector_ID in the VMT table entry, and the interrupt will not be leaked to other VMs;

[0087] 6. Channel Release: When the software sets the VMT table entry Valid=0, the hardware immediately stops all operations on the channel, clears the channel descriptor queue, and realizes the reclamation of tenant resources.

[0088] Please see Figure 1B , Figure 1B The diagram shown illustrates the mapping relationship between the virtual machine and the DMA channel provided in this embodiment of the application. Figure 1B The diagram illustrates the mapping process between virtual machines and DMA channels: Multiple virtual machines (VM0 - VM3) map their respective VMIDs to the corresponding DMA channels (CH0 - CH3) through the Virtualization Channel Mapping Table (VMT); the mapping process includes binding, permission verification, and resource isolation, while prohibiting cross-virtual machine access to ensure that each virtual machine can only access its mapped DMA channel.

[0089] The hierarchical multi-channel interrupt management module is connected to the expandable channel array module and the virtualized channel mapping management module respectively. When the data transmission to be accessed is completed or an abnormality occurs, it reports a global interrupt signal and / or a local interrupt signal to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel.

[0090] The independent set interrupt flag is also known as the secondary interrupt flag.

[0091] It should be noted that the CPU accurately identifies which virtual machine and which channel completed the transmission based on the level 2 interrupt flag.

[0092] Hardware register set: Level 2 interrupt flags [12.1] (on-chip SRAM / register array)

[0093] Among them, [12.1] is a globally readable register group, which can only be written to by hardware and read by the CPU; ordinary virtual machines cannot access this register, only the host CPU can read it.

[0094] For each channel that generates an interrupt, the hardware will write a set of information into the interrupt status entry table of the secondary interrupt identifier [12.1] at the same time the interrupt is triggered, as follows:

[0095] Fields Bit width illustrate Valid 1 bit This entry is valid. VM_ID 16bit Virtual machine number, from the VMT [2.1] mapping table. Physical_DMA_CH_ID 16bit Physical DMA channel number Event_Code 8bit Event codes: 0 = Normal transmission completed; 1 = Descriptor error; 2 = Permission verification error; 3 = AXI bus error; 4 = Channel timeout. Desc_Index 16bit The channel descriptor number corresponding to the event helps the software locate which descriptor in memory. Reserved 31bit Reserved bits

[0096] When step 4 determines that an interrupt needs to be reported, the hardware automatically fills in an entry in [12.1]. Multi-entry caching is supported. When multiple channels generate interrupts at the same time, multiple records are written to the [12.1] cache array in parallel to avoid loss of interrupt information.

[0097] When the CPU accurately identifies which virtual machine and which channel completed the transmission based on the level 2 interrupt flag, it corresponds to two working modes:

[0098] Mode A (Shared Interrupt Vector): All DMA channels share the same CPU interrupt vector; VMs and channels are distinguished by reading the secondary identifier [12.1];

[0099] Mode B (Vector Isolation Mode): Uses VMT's Interrupt_Vector_ID to output different interrupt vectors; the CPU receives different vectors and then reads [12.1] to obtain detailed events.

[0100] For example, the complete hardware and software collaborative processing flow for the CPU to accurately identify which virtual machine and which channel completed the transmission based on the level 2 interrupt flag is as follows:

[0101] 1: The CPU receives a DMA interrupt.

[0102] When the CPU receives an interrupt signal from the DMA controller, it enters the DMA interrupt service routine (ISR).

[0103] 2: The CPU reads the secondary interrupt flag array, traverses the valid entries, and the HostCPU reads [12.1] to scan all valid entries with Valid=1.

[0104] For each valid entry, read directly: VM_ID, Physical_DMA_CH_ID, Event_Code, and Desc_Index.

[0105] It does not require traversing all DMA channel registers; it directly reads the event snapshots already prepared by the hardware.

[0106] 3. Perform precise branching based on the secondary identifier field.

[0107] 1) Event_Code=0: Transmission completed normally.

[0108] Obtain VM_ID: Determine which virtual machine completed the task;

[0109] Obtain Physical_DMA_CH_ID: Determine the physical DMA channel corresponding to this VM;

[0110] Get Desc_Index: Locate the corresponding descriptor in the circular descriptor queue for this channel in memory;

[0111] The host forwards the completion event notification to the corresponding virtual machine; the virtual machine driver reads the status field in the memory descriptor, confirms that the DMA transfer is complete, releases the service buffer, and submits the upper-layer service.

[0112] 2) Event_Code ≠ 0, an error event has occurred (descriptor error, permission error, AXI error, timeout).

[0113] Read VM_ID: Locate the tenant experiencing the error;

[0114] Read Physical_DMA_CH_ID: Locate the faulty physical channel;

[0115] Read Desc_Index: Locate the memory descriptor that caused the error;

[0116] If the error is VMT_PERM_ERR, it means that the VM has been accessed illegally without authorization. The host can take isolation measures, such as suspending the DMA channel corresponding to the VM, reporting the virtualization error log, and restricting the virtual machine resources if necessary.

[0117] If it is an AXI bus error or a descriptor resolution error: the host can reset the physical DMA channel, clear the channel descriptor queue, and report the error log.

[0118] 4. Clear the secondary interrupt flag entries

[0119] After the CPU processes the event, it writes to the register and clears the Valid bit of the corresponding entry [12.1]; the hardware then reclaims the cached entry for recording subsequent new interrupt events.

[0120] It should be noted that the entry clearing in [12.1] is done by the CPU software, and the hardware will not automatically clear it; if the software does not clear it, the hardware will preferentially use the free entry with Valid=0 when a new interrupt arrives.

[0121] 5. Exit the Interrupt Service Routine (ISR)

[0122] If there are still unprocessed entries with Valid=1 in [12.1], the CPU will trigger an interrupt again after exiting the ISR to continue processing the remaining events; the interrupt will be released after all events are processed.

[0123] This application provides a scalable multi-channel direct access memory controller. Through a modular, pluggable DMA channel array, it supports dynamic hardware-level expansion without requiring overall hardware reconstruction. The number of channels can be flexibly increased according to actual needs, significantly improving system scalability. The number of channels is flexibly configurable to adapt to different application scenarios, avoiding resource waste or insufficiency and optimizing hardware utilization. Each DMA channel is independently configured (FIFO queue, descriptor list, interrupt state machine, interrupt mask) to achieve hardware-level isolation between virtual machines and prevent cross-virtual machine interference. A virtualized channel mapping table enables hardware binding between virtual machine IDs and DMA channels, ensuring complete resource isolation between tenants and improving the security of multi-tenant environments. The combination of a global interrupt and independent channel sub-interrupts supports independent reporting, interrupt clearing, and masking of single channels, improving interrupt response efficiency and reducing interrupt handling overhead. An independent interrupt state machine and mask mechanism avoid interrupt conflicts and improve system stability.

[0124] It should be noted that the embodiments of this application significantly improve the scalability, security, performance and flexibility of the system through modular design, hardware-level isolation, dynamic resource scheduling and optimized interrupt management, and are particularly suitable for virtualization environments that require high reliability and multi-tenant isolation (such as cloud computing, edge computing and other scenarios).

[0125] like Figure 2A As shown in the figure, this application provides a structural diagram of a scalable channel array module. Figure 2A As shown, the scalable channel array module 120 provided in this application embodiment includes a channel independent queue management unit 1210 and a channel independent descriptor management unit 1220.

[0126] The channel-independent queue management unit has an independent transmission FIFO, data buffer queue, and transmission status queue built into each channel, and the queues of each channel are physically isolated.

[0127] The channel-independent descriptor management unit is connected to the channel-independent queue management unit and configures an independent descriptor linked list base address, descriptor depth, and descriptor state machine for each physically isolated channel.

[0128] In this application, the channel-independent queue management unit and the channel-independent descriptor management unit in the scalable channel array module are each connected to a single virtual machine. The scalable channel array module may include multiple channel-independent descriptor management units according to actual application requirements. This application will not elaborate further on this.

[0129] Please see Figure 2B , Figure 2B The diagram shown is a single-channel three-level isolation resource structure diagram provided in an embodiment of this application.

[0130] After the VM is bound to a channel, the memory data to be accessed is processed through the three-level management (independent queue management, independent descriptor management, and independent interrupt management) of a single DMA channel unit. Combined with the channel resource physical isolation mechanism, data transmission and interrupt reporting are completed, and resource isolation is achieved.

[0131] This application provides a structural diagram of a scalable channel array module. Each channel's queues (transmission FIFO, data buffer queue, state queue) and descriptor management unit (linked list base address, depth, state machine) are physically isolated, ensuring that different virtual machines cannot interfere with each other and preventing cross-virtual machine data leakage or resource preemption. Each channel's independent descriptor management unit configures a dedicated descriptor linked list and state machine for each virtual machine, avoiding descriptor conflicts and achieving a "one channel, one virtual machine" binding mode, meeting the strong isolation requirements of a multi-tenant environment. Each channel's independent queue and descriptor management unit can process tasks from different virtual machines in parallel, reducing waiting latency. Multiple channels can operate independently, supporting concurrent data transmission and improving overall throughput.

[0132] like Figure 3A As shown in the figure, this application embodiment provides a structural diagram of a scalable multi-channel direct access memory controller based on a hierarchical multi-channel interrupt management module, as follows. Figure 3A As shown, the scalable multi-channel direct access memory controller based on a hierarchical multi-channel interrupt management module provided in this application embodiment also includes a global interrupt unit 141 and a channel-independent interrupt unit 142.

[0133] The global interrupt unit, connected to the expandable channel array module, is used to aggregate interrupt signals from all channels and report global interrupt signals for direct access to memory to the processor.

[0134] Each channel-independent interrupt unit is connected to either the channel-independent queue management unit or the channel-independent descriptor management unit, and is used to enable independent reporting of local interrupt signals by the channel-independent queue management unit and the channel-independent descriptor management unit.

[0135] It should be noted that the expandable channel array module in this application embodiment takes three independent channel interrupt units and two independent channel queue management units as an example. The three independent channel interrupt units are channel independent interrupt unit 142a, channel independent interrupt unit 142b, and channel independent interrupt unit 142c; and the two independent channel queue management units are channel independent queue management unit 1220a and channel independent queue management unit 1220b.

[0136] Please see Figure 3B , Figure 3BThe diagram shown is a hierarchical two-level interrupt architecture provided in an embodiment of this application. Figure 3B The system demonstrates a hierarchical two-level interrupt architecture. The first level consists of independent interrupts for each channel (CH0-CH3 each have their own interrupt flags, masks, and clearing mechanisms), while the second level is a global interrupt. When an interrupt occurs in a channel, it is filtered by the interrupt mask, and the second-level interrupt encoder aggregates the data to generate an interrupt status vector. This vector is then reported to the CPU interrupt controller via the global DMA interrupt. After the CPU responds, it completes the interrupt handling and flag clearing by providing a clear interrupt signal, thus achieving hierarchical management of the two levels of interrupts.

[0137] This application provides an scalable multi-channel direct access memory controller in a hierarchical multi-channel interrupt management module. The hierarchical multi-channel interrupt management module effectively solves the interrupt storm problem in multi-channel DMA systems by combining global interrupt aggregation and channel-independent interrupts, while improving the efficiency, flexibility and security of interrupt handling. It is particularly suitable for high-performance, high-concurrency virtualization environments.

[0138] like Figure 4 As shown in the figure, this application provides a structural diagram of a scalable multi-channel direct access memory controller based on a multi-channel dynamic scheduling module. Figure 4 As shown, the scalable multi-channel direct access memory controller based on a multi-channel dynamic scheduling module provided in this application embodiment also includes a multi-channel dynamic scheduling module 150.

[0139] A multi-channel dynamic scheduling module, connected to the expandable channel array module, is used to configure bandwidth weights for the corresponding channels according to the level of the virtual machine, and to schedule transmission tasks using a priority scheduling and weighted round-robin scheduling mechanism to achieve service quality isolation for multi-virtual machine transmission.

[0140] It should be noted that the multi-channel dynamic scheduling module is also connected to the global interrupt unit and sends dynamic scheduling information to the global interrupt unit, so that the global interrupt unit aggregates the interrupt signals of all channels and dynamic scheduling information, and reports the global interrupt signal for direct access to memory to the processor.

[0141] For example, the specific process of performing dynamic scheduling in the multi-channel dynamic scheduling module is as follows:

[0142] 1. Bandwidth weighting configuration mechanism

[0143] Virtual machine level mapping: The multi-channel dynamic scheduling module allocates bandwidth weights to each channel based on the service level of the virtual machine. For example, a high-priority virtual machine may be configured with 80% weight, while a normal virtual machine may be configured with 20%, ensuring that critical services receive more bandwidth resources.

[0144] Dynamic weight adjustment: The weight is not fixed and can be adjusted in real time according to the virtual machine load or system status. For example, the weight of critical virtual machines can be automatically increased during peak periods to ensure service quality.

[0145] 2. Scheduling Algorithm Implementation

[0146] Priority scheduling: High-priority channels (such as real-time audio and video transmissions) have priority access to the bus to ensure low latency requirements. For example, in DMA transfers, high-priority channels can preempt the bus to prevent low-priority tasks from blocking critical data streams.

[0147] Weighted Round Robin Scheduling: Transmission opportunities are allocated according to weight ratio. For example, for two channels with a weight ratio of 4:1, the high-weight channel transmits 4 data packets per round, while the low-weight channel transmits 1 packet, thus achieving proportional bandwidth isolation.

[0148] Byte-level precise control: Further optimization through WDRR (Weighted Differential Round Robin), scheduling is based on the number of bytes rather than the number of packets, avoiding bandwidth deviations caused by differences in packet size.

[0149] 3. Service quality isolation

[0150] Multi-tenant isolation: Virtual machine IDs are bound to physical channels through the Virtualization Channel Mapping Table (VMT), ensuring that each virtual machine uses only the allocated channel resources and preventing cross-tenant interference.

[0151] Fair bandwidth allocation: The scheduling algorithm ensures that even if a high-priority virtual machine occupies bandwidth, a low-priority virtual machine can still obtain minimum bandwidth guarantee.

[0152] In this embodiment, bandwidth weights are assigned to each channel based on the virtual machine level, ensuring that high-priority virtual machines obtain the required bandwidth while preventing low-priority virtual machines from being completely blocked, thus achieving dynamic weight configuration. Combining priority scheduling and weighted round-robin scheduling, fair allocation of transmission tasks is achieved, preventing a single virtual machine from occupying channel resources for an extended period. Through the dynamic weighted scheduling mechanism, an independent bandwidth share is allocated to each virtual machine, avoiding resource contention and ensuring stable performance for each virtual machine. The weighted round-robin mechanism ensures that low-priority virtual machines also have transmission opportunities, preventing performance degradation caused by high-priority virtual machines continuously occupying channels. Dynamic application and release of channel resources are supported, adapting to dynamic start and stop of virtual machines (such as creation, destruction, and migration), meeting the needs of elastic resource scheduling in virtualization environments.

[0153] It should be noted that this design significantly improves service quality, resource utilization, and system stability in a virtualized environment through dynamic weight scheduling, elastic resource management, and hardware-level isolation. It is particularly suitable for high-performance scenarios that require multi-tenant isolation, such as cloud computing and edge computing.

[0154] like Figure 5A As shown in the figure, this application embodiment provides a structural diagram of a scalable multi-channel direct access memory controller based on a recycling module, as follows: Figure 5A As shown in the figure, the scalable multi-channel direct access memory controller based on the recycling module provided in this application embodiment also includes a channel dynamic expansion and resource recycling module 160.

[0155] The channel dynamic expansion and resource reclamation module is connected to the expandable channel array module and the virtualized channel mapping management module, respectively, and is used to support the initial power-on configuration of the number of channels, dynamic addition or reduction of channels during runtime, and dynamic reclamation of idle channel resources.

[0156] For example, in the channel dynamic expansion and resource reclamation module, the dynamic expansion and resource reclamation process is as follows:

[0157] 1. Initial power-on configuration channel count

[0158] Hardware initialization: When the system is powered on, the channel dynamic expansion and resource reclamation module sets the initial number of channels (e.g., 8 / 16 / 32 channels) through the configuration register, and initializes the descriptor linked list, FIFO queue and interrupt state machine of each channel.

[0159] Resource pre-allocation: Initially configured channel resources (such as physical address and interrupt mask) are allocated at startup to ensure stable system operation.

[0160] 2. Dynamically add or remove channels during runtime

[0161] Dynamic expansion mechanism: Hardware-level plug-in: Supports dynamically increasing the number of channels (e.g., from 8 channels to 16 channels) through registers or software instructions, without restarting the system.

[0162] Resource isolation: New channels are automatically allocated independent FIFO queues, descriptor lists, and interrupt state machines to avoid conflicts with existing channels.

[0163] Dynamic capacity reduction mechanism: Idle channel reclamation: When a channel has no transmission task, the module can automatically reclaim its resources (such as releasing FIFO and descriptor list) for use by other channels.

[0164] Virtual machine adaptation: Supports automatic addition or removal of channels when starting and stopping virtual machines dynamically, such as allocating channels when creating a virtual machine and releasing resources when destroying it.

[0165] 3. Dynamically reclaim idle channel resources

[0166] Idle detection: The module determines whether a channel is idle by monitoring the channel status (e.g., whether the transmission queue is empty or the descriptor state machine is idle).

[0167] Resource release: Physical resource reclamation: Release hardware resources such as FIFO cache and descriptor linked list of idle channels to reduce power consumption and resource occupation.

[0168] Virtualization support: Combined with the virtualization channel mapping table, it ensures that reclaimed channel resources can be redistributed to other virtual machines.

[0169] 4. Collaboration with upper-level modules

[0170] Multi-channel dynamic scheduling module: The expansion / reclaim module works in conjunction with the scheduling module to dynamically adjust the number of channels and bandwidth weights based on the virtual machine load, thereby optimizing resources.

[0171] Layered multi-channel interrupt management module: Automatically configures independent interrupt units when adding a new channel, and releases interrupt resources when reclaiming a channel to avoid interrupt conflicts.

[0172] Please see Figure 5B , Figure 5B The diagram shown is a flowchart of multi-channel dynamic capacity expansion and resource recycling provided in an embodiment of this application. Figure 5B The process demonstrates a multi-channel dynamic expansion and resource reclamation workflow: First, initialize the DMA channel array, establish VM channel mapping, and allocate independent channels for VMs; then configure channel descriptors and queues, and execute DMA transfer; if the connection is broken during transfer, determine whether the VM has been destroyed. If destroyed, reclaim the channel resources (reset the channel state for reallocation); if not destroyed, continue the transfer. The process supports dynamic expansion and elastic reuse, enabling flexible resource management.

[0173] In this embodiment, the number of channels can be increased during runtime without restarting the system, and the DMA transmission capacity can be flexibly expanded according to load changes; idle channel resources are automatically reclaimed to avoid resource waste and improve hardware utilization.

[0174] like Figure 6 As shown in the flowchart, this application embodiment provides a scalable multi-channel direct access memory data transfer method, as follows: Figure 6 As shown, the scalable multi-channel direct access memory data transfer method provided in this application includes the following steps S61 to S64.

[0175] S61 executes the read input and write output of the memory to be accessed.

[0176] S62, configure the total number of expandable direct memory access physical channels, read the memory data to be accessed according to the parsing result, complete the transfer of the memory data to be accessed, and output the transferred memory data to the destination address.

[0177] S63, establish a one-to-one mapping relationship between virtual machine number and physical channel number, support the binding and unbinding of the virtual machine and the corresponding physical channel in the expandable channel array module, and configure the access permissions of the virtual machine.

[0178] S64, when the data transmission to be accessed is completed or an abnormality occurs, a global interrupt signal and / or a local interrupt signal are reported to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel.

[0179] In some embodiments, the method further includes: when the virtual machine is destroyed, automatically reclaiming the physical channel resources corresponding to the virtual machine, and redistributing the reclaimed physical channels to other virtual machines to achieve resource reuse and elastic scaling.

[0180] Please see Figure 7 , Figure 7 This diagram illustrates a comparison of the isolation capabilities of traditional DMA and that of this application, as provided in an embodiment of this invention. Figure 7 It is known that traditional DMA globally shares resources, channels are fixed, and queues / descriptors / interrupts are shared, without isolation and are easily preempted; the embodiments of this application realize VM mapping and dynamic expansion through virtualization, and each channel (CH0 - CH3) is independently isolated (independent queues, descriptors, interrupts), and hardware isolation completes the upgrade from shared resources to tenant isolation.

[0181] The scope of protection of the scalable multi-channel direct access memory data transfer method described in this application is not limited to the execution order of the steps listed in this embodiment. Any solution implemented by adding, deleting, or replacing steps in the prior art based on the principles of this application is included within the scope of protection of this application.

[0182] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, or methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules / units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of apparatuses or modules or units may be electrical, mechanical, or other forms.

[0183] The modules / units described as separate components may or may not be physically separate. The components shown as modules / units may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules / units can be selected to achieve the objectives of the embodiments of this application, depending on actual needs. For example, the functional modules / units in the various embodiments of this application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0184] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0185] This application also provides an electronic device. Figure 8 The diagram shown is a structural schematic of an electronic device 80 in one embodiment of this application. The scalable multi-channel direct access memory data transfer method provided in this embodiment can be applied to… Figure 8 The electronic devices shown are 80, but not limited to these. For example... Figure 8 As shown, the electronic device 80 includes a processor 81, a memory, a system bus 83, and a network interface 85. The memory may include a non-volatile storage medium 82 and internal memory 84.

[0186] The non-volatile storage medium 82 can store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any of the scalable multi-channel direct access memory data transfer methods provided in the embodiments of this application.

[0187] The processor provides computing and control capabilities, supporting the operation of the entire computer device.

[0188] The internal memory 84 provides an environment for the execution of computer programs in non-volatile storage media. When the computer program is executed by the processor, it enables the processor to execute any of the scalable multi-channel direct access memory data transfer methods provided in the embodiments of this application.

[0189] This network interface 85 is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0190] It should be understood that processor 81 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, the general-purpose processor can be a microprocessor or any conventional processor.

[0191] The electronic device 80 in this application embodiment may include terminal devices such as tablet computers, laptop computers, mobile phones, supercomputers, and smart wearable devices. It can also be applied to databases, servers, and service response systems based on terminal artificial intelligence. This application embodiment does not impose any restrictions on the specific type of electronic device.

[0192] For example, electronic devices can be stations (STAION, ST) in WLANs, cellular phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, computers, laptops, handheld communication devices, handheld computing devices, and / or other devices for communicating over wireless systems, as well as next-generation communication systems, such as mobile terminals in 5G networks, mobile terminals in future evolved Public Land Mobile Networks (PLMNs), or mobile terminals in future evolved Non-terrestrial Networks (NTNs).

[0193] This application also provides a computer-readable storage medium. Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof. The storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state drive (SSD)).

[0194] This application embodiment may also provide a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in this application embodiment are generated. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0195] When the computer program product is executed by a computer, the computer performs the method described in the foregoing method embodiments. The computer program product can be a software installation package; when the foregoing method is required, the computer program product can be downloaded and executed on the computer.

[0196] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.

[0197] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.

Claims

1. A scalable multi-channel direct access memory controller, characterized in that, include: The data access module is used to interact with the external bus and perform read input and write output of the data to be accessed. An expandable channel array module, connected to the data access module, is composed of multiple modular channel units and is used to determine the static configuration and dynamic expansion of multiple expandable channel array modules; The scalable channel array module is configured to acquire and parse the transfer descriptor, schedule the data access module to read the memory data to be accessed based on the parsing result, complete the transfer of the memory data to be accessed within the scalable channel array module, and output the transferred memory data to the destination address via the data access module. The virtualization channel mapping management module is connected to the expandable channel array module and is used to establish a one-to-one mapping relationship between virtual machine numbers and physical channel numbers. It supports the binding and unbinding of the virtual machine and the corresponding physical channel in the expandable channel array module, as well as the configuration of access permissions for the virtual machine. The hierarchical multi-channel interrupt management module is connected to the expandable channel array module and the virtualized channel mapping management module respectively. When the data transmission to be accessed is completed or an abnormality occurs, it reports a global interrupt signal and / or a local interrupt signal to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel.

2. The controller according to claim 1, characterized in that, The plurality of scalable channel array modules include: Each channel has an independent queue management unit, with each channel having its own independent transmission FIFO, data buffer queue, and transmission status queue, and the queues of each channel are physically isolated. The channel-independent descriptor management unit is connected to the channel-independent queue management unit and configures an independent descriptor linked list base address, descriptor depth, and descriptor state machine for each physically isolated channel.

3. The controller according to claim 1, characterized in that, The virtualization channel mapping management module includes a virtualization channel mapping table, comprising: Each entry in the virtualization channel mapping table corresponds to a physical channel for direct memory access, and includes the following fields: The validity field is used to identify the validity of table entries; The virtual machine number field is used to identify the tenant or virtual machine; The Physical Channel Number field is used to identify the physical channel number of the Direct Memory Access hardware. The interrupt vector number field is used to identify the interrupt vector corresponding to the virtual machine's bound channel; The access permission field is used to identify the virtual machine's access permissions to the physical channel.

4. The controller according to claim 2, characterized in that, The hierarchical multi-channel interrupt management module includes: A global interrupt unit, connected to the expandable channel array module, is used to aggregate interrupt signals from all channels and report global interrupt signals for direct access to memory to the processor. Each channel-independent interrupt unit is connected to either the channel-independent queue management unit or the channel-independent descriptor management unit, and is used to enable independent reporting of local interrupt signals by the channel-independent queue management unit and the channel-independent descriptor management unit.

5. The controller according to claim 1, characterized in that, The controller also includes: A multi-channel dynamic scheduling module, connected to the expandable channel array module, is used to configure bandwidth weights for the corresponding channels according to the virtual machine level, and to schedule transmission tasks using a priority scheduling and weighted round-robin scheduling mechanism to achieve service quality isolation for multi-virtual machine transmission.

6. The controller according to claim 1, characterized in that, The controller also includes: The channel dynamic expansion and resource reclamation module is connected to the expandable channel array module and the virtualized channel mapping management module, respectively, and is used to support the initial power-on configuration of the number of channels, dynamic addition or reduction of channels during runtime, and dynamic reclamation of idle channel resources.

7. A scalable multi-channel direct access memory data transfer method, characterized in that, Applied to the controller according to any one of claims 1 to 6, the method comprises: Perform read, input, write, and output operations on the memory to be accessed; Configure a scalable total number of direct memory access physical channels, read the memory data to be accessed based on the parsing results, complete the transfer of the memory data to be accessed, and output the transferred memory data to the destination address. Establish a one-to-one mapping relationship between virtual machine numbers and physical channel numbers, support the binding and unbinding of the virtual machine and the corresponding physical channel in the expandable channel array module, and configure the access permissions of the virtual machine; When the data transmission to the memory to be accessed is completed or an abnormality occurs, a global interrupt signal and / or a local interrupt signal are reported to the processor according to the mask result corresponding to the independent set interrupt flag of the current physical channel.

8. The method according to claim 7, characterized in that, The method further includes: When the virtual machine is destroyed, the physical channel resources corresponding to the virtual machine are automatically reclaimed, and the reclaimed physical channels are redistributed to other virtual machines to achieve resource reuse and elastic scaling.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 7 to 8.

10. An electronic device, characterized in that, The electronic device includes: A memory that stores a computer program; The processor, which is communicatively connected to the memory, executes the method of any one of claims 7 to 8 when the computer program is invoked.