CN114327281A - TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium - Google Patents

TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium Download PDF

Info

Publication number
CN114327281A
CN114327281A CN202111647866.8A CN202111647866A CN114327281A CN 114327281 A CN114327281 A CN 114327281A CN 202111647866 A CN202111647866 A CN 202111647866A CN 114327281 A CN114327281 A CN 114327281A
Authority
CN
China
Prior art keywords
range
hardware acceleration
ssd
read
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111647866.8A
Other languages
Chinese (zh)
Other versions
CN114327281B (en
Inventor
罗宗扬
王猛
徐伟华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202111647866.8A priority Critical patent/CN114327281B/en
Publication of CN114327281A publication Critical patent/CN114327281A/en
Application granted granted Critical
Publication of CN114327281B publication Critical patent/CN114327281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to a TCG software and hardware acceleration method, a device, computer equipment and a storage medium for SSD, wherein the method comprises the following steps: receiving a read-write command issued by the SSD, and acquiring command information in the read-write command; transmitting the command information to a hardware acceleration module, and returning the range authority and the range key information by the hardware acceleration module according to the command information; judging whether the range authority allows read-write operation; if yes, setting range key information and executing the read-write command. The invention is used for TCG authority management and partition encryption management through a software and hardware acceleration scheme, can reduce the delay of a core read-write data path, and improves the SSD performance.

Description

TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium
Technical Field
The invention relates to the technical field of SSD, in particular to a TCG software and hardware acceleration method and device for SSD, computer equipment and a storage medium.
Background
At present, the mainstream SSD product needs to support the TCG feature to achieve the access authority management and partition encryption management for the user data. Conventional access right management and partition encryption management are processed by software, which is inefficient and may affect performance.
In the prior art, software maintains a range table in a system RAM, when a new command is received, the software circularly searches the range table, confirms the corresponding range, and then determines the execution authority of the command and the encryption key selection according to the range information; this software loop searches for read and write data paths at the core, resulting in SSD performance loss.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a TCG software and hardware acceleration method and device for an SSD, computer equipment and a storage medium.
In order to solve the technical problems, the invention adopts the following technical scheme:
the TCG software and hardware acceleration method for the SSD comprises the following steps:
receiving a read-write command issued by the SSD, and acquiring command information in the read-write command;
transmitting the command information to a hardware acceleration module, and returning the range authority and the range key information by the hardware acceleration module according to the command information;
judging whether the range authority allows read-write operation;
if yes, setting range key information and executing the read-write command.
The further technical scheme is as follows: before the step of receiving the read-write command issued by the SSD and obtaining the command information in the read-write command, the method further includes: the hardware acceleration module maintains a range table.
The further technical scheme is as follows: the command information includes a starting LBA address and a size of LBA address space.
The further technical scheme is as follows: in the step of transmitting the command information to the hardware acceleration module, the hardware acceleration module returns the range authority and the range key information according to the command information, the hardware acceleration module searches in parallel according to the command information to obtain the range authority and the range key information, and then returns the range authority and the range key information.
A TCG software and hardware acceleration apparatus for SSDs, comprising: the device comprises a receiving and acquiring unit, a transmission returning unit, a judging unit and a setting and executing unit;
the receiving and acquiring unit is used for receiving the read-write command issued by the SSD and acquiring the command information in the read-write command;
the transfer returning unit is used for transferring the command information to the hardware acceleration module, and the hardware acceleration module returns the range authority and the range key information according to the command information;
the judging unit is used for judging whether the range authority allows read-write operation;
and the setting execution unit is used for setting the range key information and executing the read-write command.
The further technical scheme is as follows: further comprising: and the maintenance unit is used for maintaining the range table by the hardware acceleration module.
The further technical scheme is as follows: the command information includes a starting LBA address and a size of LBA address space.
The further technical scheme is as follows: in the transfer return unit, the hardware acceleration module searches in parallel according to the command information to obtain the range authority and the range key information, and then returns the range authority and the range key information.
A computer device comprising a memory and a processor, the memory having stored thereon a computer program, the processor when executing the computer program implementing a TCG software and hardware acceleration method for SSDs as described above.
A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the TCG software and hardware acceleration method for SSDs as described above.
Compared with the prior art, the invention has the beneficial effects that: by adopting a software and hardware acceleration scheme, the method is used for TCG authority management and partition encryption management, the delay of a core read-write data path can be reduced, and the SSD performance is improved.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a TCG software and hardware acceleration method for an SSD according to an embodiment of the present invention;
FIG. 2 is a diagram of a range table according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a TCG software and hardware acceleration device for an SSD provided by an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The English explanation that the invention needs to relate to is as follows:
RAM: the accessor on the SSD is used for running codes and storing temporary data;
LBA: logic Block Address, which is used for addressing when the host accesses the SSD;
range: a segment of LBA address space;
start LBA: a starting LBA address;
LBA cnt: size of LBA Address space
range authority: read-write access rights of the LBA address space;
range key: encryption keys for LBA address space;
TCG: and (4) Trusted Computing Group, and feasible Computing.
Referring to the embodiments shown in fig. 1 to 4, wherein, referring to fig. 1 to 2, the invention discloses a TCG software and hardware acceleration method for SSD, comprising the following steps:
s1, receiving the read-write command issued by the SSD, and acquiring the command information in the read-write command;
before the step of S1, the method further includes: the hardware acceleration module maintains a range table. As shown in fig. 2, the range table includes start LBA, LBA cnt, range authority, and range key information of each range.
In this embodiment, a read-write command issued by the SSD is received by software, and command information in the read-write command is acquired. The software is firmware running in the SSD; the hardware acceleration module is a TCG authority access management hardware acceleration module.
In this embodiment, the command information includes a starting LBA address (start LBA) and a size of LBA address space (LBA cnt).
S2, transmitting the command information to the hardware acceleration module, and the hardware acceleration module returns the range authority and the range key information according to the command information;
in the embodiment, the command information is transmitted to the hardware acceleration module through software, the hardware acceleration module performs parallel search according to the command information to obtain the range authority and the range key information, and then the range authority and the range key information are returned to the software.
S3, judging whether the range authority allows read-write operation; if not, the read-write command is not executed.
And judging whether the range authority allows read-write operation or not through software.
And S4, if yes, setting range key information and executing the read-write command.
And after the read-write command is executed, completing the read-write, and then transmitting the data to the host or writing the data into the SSD.
The invention is used for TCG authority management and partition encryption management through a software and hardware acceleration scheme, can reduce the delay of a core read-write data path, and improves the SSD performance.
Referring to fig. 3, the present invention also discloses a TCG software and hardware acceleration apparatus for SSD, comprising: a receiving and acquiring unit 10, a transmission returning unit 20, a judging unit 30 and a setting executing unit 40;
the receiving and acquiring unit 10 is configured to receive a read-write command issued by the SSD, and acquire command information in the read-write command;
the transfer returning unit 20 is configured to transfer the command information to the hardware acceleration module, and the hardware acceleration module returns the range authority and the range key information according to the command information;
the judging unit 30 is configured to judge whether the range authority allows read-write operations;
and the setting execution unit 40 is configured to set the range key information and execute the read-write command.
Wherein, the device still includes: and the maintenance unit is used for maintaining the range table by the hardware acceleration module.
Wherein the command information includes a starting LBA address and a size of the LBA address space.
In the transfer return unit 20, the hardware acceleration module performs parallel search according to the command information to obtain the range authority and the range key information, and then returns the range authority and the range key information.
It should be noted that, as can be clearly understood by those skilled in the art, the detailed implementation process of the above TCG software and hardware acceleration apparatus for SSD and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The above-described TCG software and hardware acceleration apparatus for SSDs may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application; the computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 4, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a TCG software and hardware acceleration method for SSDs.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a TCG software and hardware acceleration method for SSD.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may 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, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions that, when executed by a processor, implement the above-described TCG software and hardware acceleration method for SSDs.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The above embodiments are preferred implementations of the present invention, and the present invention can be implemented in other ways without departing from the spirit of the present invention.

Claims (10)

1. The TCG software and hardware acceleration method for the SSD is characterized by comprising the following steps of:
receiving a read-write command issued by the SSD, and acquiring command information in the read-write command;
transmitting the command information to a hardware acceleration module, and returning the range authority and the range key information by the hardware acceleration module according to the command information;
judging whether the range authority allows read-write operation;
if yes, setting range key information and executing the read-write command.
2. The TCG software and hardware acceleration method for SSD according to claim 1, wherein before the step of receiving the read-write command issued by the SSD and obtaining the command information in the read-write command, further comprising: the hardware acceleration module maintains a range table.
3. The TCG hardware and software acceleration method for SSD according to claim 1, characterized in that the command information comprises starting LBA address and size of LBA address space.
4. The TCG software and hardware acceleration method for SSD of claim 1, wherein the transferring the command information to the hardware acceleration module, the hardware acceleration module returns the range permission and the range key information according to the command information, the hardware acceleration module searches in parallel according to the command information to obtain the range permission and the range key information, and then returns the range permission and the range key information.
5. A TCG software and hardware acceleration apparatus for an SSD, comprising: the device comprises a receiving and acquiring unit, a transmission returning unit, a judging unit and a setting and executing unit;
the receiving and acquiring unit is used for receiving the read-write command issued by the SSD and acquiring the command information in the read-write command;
the transfer returning unit is used for transferring the command information to the hardware acceleration module, and the hardware acceleration module returns the range authority and the range key information according to the command information;
the judging unit is used for judging whether the range authority allows read-write operation;
and the setting execution unit is used for setting the range key information and executing the read-write command.
6. The TCG hardware and software acceleration apparatus for SSD according to claim 5, further comprising: and the maintenance unit is used for maintaining the range table by the hardware acceleration module.
7. The TCG hardware and software acceleration device for SSD of claim 5, characterized in that the command information comprises a starting LBA address and a size of LBA address space.
8. The TCG hardware and software acceleration device for SSD of claim 5, wherein in the transfer return unit, the hardware acceleration module looks up in parallel according to command information to obtain range permission and range key information, then returns the range permission and range key information.
9. A computer device comprising a memory having stored thereon a computer program and a processor that, when executing the computer program, implements the TCG software and hardware acceleration method for SSDs of any of claims 1-4.
10. A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the TCG software and hardware acceleration method for SSDs according to any one of claims 1-4.
CN202111647866.8A 2021-12-30 2021-12-30 TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium Active CN114327281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111647866.8A CN114327281B (en) 2021-12-30 2021-12-30 TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111647866.8A CN114327281B (en) 2021-12-30 2021-12-30 TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114327281A true CN114327281A (en) 2022-04-12
CN114327281B CN114327281B (en) 2023-12-05

Family

ID=81017762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111647866.8A Active CN114327281B (en) 2021-12-30 2021-12-30 TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327281B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012148812A2 (en) * 2011-04-29 2012-11-01 Lsi Corporation Encrypted transport solid-state disk controller
WO2013101353A1 (en) * 2011-12-30 2013-07-04 Sandisk Technologies Inc. Host device and method for partitioning attributes in a storage device
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
CN104951405A (en) * 2014-03-28 2015-09-30 三星电子株式会社 Storage system and method for performing and authenticating write-protection thereof
CN108572797A (en) * 2018-03-07 2018-09-25 深圳忆联信息系统有限公司 A kind of solid state disk reading performance accelerated method
US20190163621A1 (en) * 2017-11-24 2019-05-30 Samsung Electronics Co., Ltd. Data management method and storage device performing the same
CN110232034A (en) * 2018-03-05 2019-09-13 三星电子株式会社 Host system and its method and accelerating module
CN113031863A (en) * 2021-03-19 2021-06-25 深圳忆联信息系统有限公司 SSD command correlation management method and device, computer equipment and storage medium
CN113113068A (en) * 2020-01-10 2021-07-13 三星电子株式会社 Memory controller and memory device including the same
CN113407110A (en) * 2020-03-17 2021-09-17 爱思开海力士有限公司 Controller and memory system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012148812A2 (en) * 2011-04-29 2012-11-01 Lsi Corporation Encrypted transport solid-state disk controller
WO2013101353A1 (en) * 2011-12-30 2013-07-04 Sandisk Technologies Inc. Host device and method for partitioning attributes in a storage device
CN103558994A (en) * 2013-09-29 2014-02-05 记忆科技(深圳)有限公司 Method for encrypting solid state disk partitions and solid state disk
CN104951405A (en) * 2014-03-28 2015-09-30 三星电子株式会社 Storage system and method for performing and authenticating write-protection thereof
US20190163621A1 (en) * 2017-11-24 2019-05-30 Samsung Electronics Co., Ltd. Data management method and storage device performing the same
CN110232034A (en) * 2018-03-05 2019-09-13 三星电子株式会社 Host system and its method and accelerating module
CN108572797A (en) * 2018-03-07 2018-09-25 深圳忆联信息系统有限公司 A kind of solid state disk reading performance accelerated method
CN113113068A (en) * 2020-01-10 2021-07-13 三星电子株式会社 Memory controller and memory device including the same
CN113407110A (en) * 2020-03-17 2021-09-17 爱思开海力士有限公司 Controller and memory system
CN113031863A (en) * 2021-03-19 2021-06-25 深圳忆联信息系统有限公司 SSD command correlation management method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114327281B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN111221476B (en) Front-end command processing method and device for improving SSD performance, computer equipment and storage medium
US20130311434A1 (en) Method, apparatus and system for data deduplication
US9710283B2 (en) System and method for pre-storing small data files into a page-cache and performing reading and writing to the page cache during booting
KR102646619B1 (en) Method and system providing file system for an electronic device comprising a composite memory device
US9552303B2 (en) Method and system for maintaining release consistency in shared memory programming
CN111563052A (en) Cache method and device for reducing read delay, computer equipment and storage medium
CN112559386A (en) Method and device for improving SSD performance, computer equipment and storage medium
US10216634B2 (en) Cache directory processing method for multi-core processor system, and directory controller
CN114780448A (en) Method and device for quickly copying data, computer equipment and storage medium
CN111124314A (en) SSD performance improving method and device for mapping table dynamic loading, computer equipment and storage medium
CN108920107B (en) Method and device for screening cold data, computer equipment and storage medium
CN109947667B (en) Data access prediction method and device
CN116974491A (en) Storage optimization method and device for solid state disk, computer equipment and storage medium
CN108519860B (en) SSD read hit processing method and device
CN110609660A (en) Host end mapping method and device of SSD array, computer equipment and storage medium
CN110674086A (en) Data merging method and device, electronic equipment and storage medium
CN114327281A (en) TCG software and hardware acceleration method and device for SSD, computer equipment and storage medium
CN111435331B (en) Data writing method and device for storage volume, electronic equipment and machine-readable storage medium
US10331381B2 (en) Method and device for recording memory access operation information
CN109165172B (en) Cache data processing method and related equipment
US10776344B2 (en) Index management in a multi-process environment
CN108694209B (en) Distributed index method based on object and client
CN108664417B (en) Directory updating method and device
US9798479B2 (en) Relocatable and resizable tables in a computing device
CN111125715A (en) TCG data processing acceleration method and device based on solid state disk, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant