Virtualization method, device, board card and computer readable storage medium
AssigneeAnhui Cambricon Information Technology Co., Ltd.
InventorsHaibo Lu, Guangdi Zhou
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method, device, a board card, and a computer-readable storage medium for virtualizing a computer framework, where the computer framework includes a user space, a kernel space and an on-chip system. The on-chip system includes a computing device, a video encoding and decoding device, a JPEG encoding and decoding device and a storage device, where the devices interact with the user space and the kernel space to jointly perform specified computing operations.
Claims19
A machine learning device connected to a user space that carries N operating systems, wherein N is a positive integer, and the machine learning device comprises:
- a PCIe (Peripheral Component Interconnect Express) virtualized into at least N virtual interfaces;
- a computing device virtualized into N virtual computing devices, wherein each virtual computing device of the N virtual computer devices includes M clusters and M is an integer not less than N;
- a ROM (Read-Only Memory) with firmware stored, wherein the firmware comprises a physical function used to configure the PCIe;
- and
- N virtual functions managed by the physical function, wherein each virtual function of the N virtual functions corresponds to a respective virtual interface of the at least N virtual interfaces,
- wherein each operating system of the N operating systems accesses a virtual computing device of the N virtual computing devices through a virtual interface of the at least N virtual interfaces to perform a task of the respective operating system on a cluster of the virtual computing device, the task associated with a virtual function managed by the physical function and corresponding to the virtual interface.
A virtualization method based on an on-chip system, wherein the on-chip system is connected to a user space that carries N operating systems, wherein Nis a positive integer, and the virtualization method comprises:
- virtualizing a PCIe of the on-chip system to generate at least N virtual interfaces;
- virtualizing a computing device of the on-chip system to generate N virtual computing devices, wherein each virtual computing device of the N virtual computer devices includes M clusters and M is an integer not less than N;
- virtualizing a physical function of the on-chip system to generate N virtual functions, wherein each virtual function of the N virtual functions corresponds to a respective virtual interface of the at least N virtual interfaces;
- configuring one of the N virtual interfaces to each operating system of the N operating systems;
- configuring one of the N virtual computing devices to the operating system;
- and
- configuring one of the N virtual functions to the operating system;
- wherein each operating system of the N operating systems accesses a virtual computing device of the N virtual computing devices through a virtual interface of the at least N virtual interfaces to perform a task of the respective operating system on a cluster of the virtual computing device, the task associated with a virtual function managed by the physical function and corresponding to the virtual interface.
Dependencies are inferred from the claim text.