Disk access method and device, electronic device, and nonvolatile storage medium

By starting a disk proxy service in the vehicle instrument system, cross-system disk access is achieved through the disk proxy service, which solves the problem that multiple hardware-isolated operating systems cannot share disk access. This enables disk sharing between hardware-isolated systems, improves data bandwidth utilization efficiency, and reduces hardware design complexity and cost.

CN115079950BActive Publication Date: 2026-02-06ECARX (HUBEI) TECHCO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210737200.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2026-02-06
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

The problem of multiple hardware-isolated operating systems being unable to share access to the disk is particularly evident in interconnected scenarios of heterogeneous processing units, where the disk module is limited by the disk controller and cannot be shared by different operating systems.

Method used

By starting a disk proxy service in the vehicle instrument system, cross-system access to the disk is achieved through the disk proxy service. Other operating systems access the disk through the vehicle instrument system proxy, and shared memory is used to cache disk data, thus enabling multiple hardware-isolated systems to share the disk.

Benefits of technology

Multiple operating systems that achieve hardware isolation can share access to the disk, improving data bandwidth utilization efficiency and reducing hardware design complexity and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115079950B_ABST
    Figure CN115079950B_ABST
Patent Text Reader

Abstract

The application discloses a disk access method and device, electronic equipment and a nonvolatile storage medium. The method comprises the following steps: starting a disk agent service in a vehicle instrument system, wherein at least one target system accesses a disk which can be directly accessed by the vehicle instrument system through the disk agent service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module; receiving a disk access request from the at least one target system, wherein the disk access request is used to obtain information of the disk; and in response to the disk access request, accessing data in the disk through the disk agent service. The application solves the technical problem that multiple operating systems isolated by hardware cannot share the disk access.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of vehicle-mounted systems, in particular to a disk access method and device, electronic equipment and nonvolatile storage medium. BACKGROUND

[0002] In the Internet of Things era, the interconnection scenarios of heterogeneous processing units are becoming more and more complex, including different device interconnections based on distributed soft bus, and also including different operating system interconnections in the same module. It is found by comparison that, although the hardware design complexity of the latter is higher, resulting in an increase in module cost, the data bandwidth is obviously superior.

[0003] Unlike a virtual operating system similar to a hypervisor, the hardware-isolated operating system solution has to face the problem of how to balance device isolation and device sharing. The popular central processing units (CPUs) on the market are multi-core processors, and it is a common solution to divide the size of the CPU according to the business needs of different operating systems; the double data rate (DDR) module does not have such characteristics, and different operating systems can only share different DDR spaces; the disk module is limited by the disk controller and cannot be accessed by different operating systems.

[0004] At present, no effective solution has been proposed for the above problems. SUMMARY

[0005] The embodiments of the present application provide a disk access method and device, electronic equipment and nonvolatile storage medium, to at least solve the technical problem that multiple hardware-isolated operating systems cannot share access to a disk.

[0006] According to an aspect of an embodiment of the present application, a disk access method is provided, comprising: starting a disk proxy service in a vehicle-mounted instrument system, wherein at least one target system accesses a disk that can be directly accessed by the vehicle-mounted instrument system through the disk proxy service, and the at least one target system and the vehicle-mounted instrument system are different types of operating systems located in the same hardware module; receiving a disk access request from the at least one target system, wherein the disk access request is used to obtain information of the disk; and in response to the disk access request, accessing data in the disk through the disk proxy service.

[0007] Optionally, in response to the disk access request, the data in the disk is accessed through the disk proxy service, comprising: sending a response message to the at least one target system, wherein the response message comprises information of the disk and an address of the shared memory, and the shared memory is used to cache read / write data of the disk; after the disk proxy service is activated, receiving a disk data read / write request from the at least one target system, wherein the disk proxy service is activated after the at least one target system records the information of the disk and the address of the shared memory to the local; in response to the disk data read / write request, reading / writing the data in the disk through the disk proxy service.

[0008] Optionally, in response to the disk data read / write request, the data in the disk is read / written through the disk proxy service, comprising: in response to the disk data read request, caching the disk data read from the disk to the shared memory according to the address of the shared memory, and sending the read disk data from the shared memory to the at least one target system through the disk proxy service; in response to the disk data write request, caching the disk data required to be written into the disk by the at least one target system to the shared memory according to the address of the shared memory, and writing the required disk data into the disk from the shared memory through the disk proxy service.

[0009] Optionally, in response to the disk access request, the data in the disk is accessed through the disk proxy service, further comprising: in the case of failure of the vehicle instrument system, refusing to respond to the disk data read request; in the case of failure of the vehicle instrument system, caching the disk data required to be written into the disk by the at least one target system to the target memory, wherein the target memory is a storage area different from the shared memory; after the vehicle instrument system recovers from the failure, synchronizing the cached disk data in the target memory to the shared memory.

[0010] Optionally, after starting the disk proxy service in the vehicle instrument system, the method further comprises: initializing the disk access request channel of the at least one target system and the shared memory according to the configuration file, wherein the disk access request channel is used to send the disk access request.

[0011] Optionally, the disk controller is arranged in the vehicle instrument system, wherein the disk controller is used to send a control signal to the disk drive of the disk.

[0012] Optionally, the at least one target system comprises a first system and a second system, wherein the start time of the first system is earlier than the start time of the vehicle instrument system, and the start time of the second system is later than the start time of the vehicle instrument system.

[0013] According to another aspect of the embodiments of the present application, a disk access apparatus is also provided, which comprises: a starting module configured to start a disk agent service in a vehicle-mounted instrument system, wherein at least one target system accesses a disk directly accessible by the vehicle-mounted instrument system through the disk agent service, and the at least one target system and the vehicle-mounted instrument system are different types of operating systems located in a same hardware module; a receiving module configured to receive a disk access request from the at least one target system, wherein the disk access request is used to obtain information of the disk; and a responding module configured to access data in the disk through the disk agent service in response to the disk access request.

[0014] According to another aspect of the embodiments of the present application, an electronic device is also provided, which comprises: a vehicle-mounted instrument system, a disk and at least one target system, wherein the disk is directly accessible by the vehicle-mounted instrument system, the vehicle-mounted instrument system is configured to start a disk agent service in the vehicle-mounted instrument system, wherein the at least one target system accesses the disk through the disk agent service, and the at least one target system and the vehicle-mounted instrument system are different types of operating systems located in a same hardware module; the at least one target system is configured to send a disk access request to the vehicle-mounted instrument system, wherein the disk access request is used to obtain information of the disk; and the vehicle-mounted instrument system is further configured to receive the disk access request and access data in the disk through the disk agent service in response to the disk access request.

[0015] According to still another aspect of the embodiments of the present application, a nonvolatile storage medium is also provided, which comprises a stored program, wherein when the program is running, the nonvolatile storage medium controls a device in which the nonvolatile storage medium is located to perform the above disk access method.

[0016] According to still another aspect of the embodiments of the present application, a processor is also provided, which is used to run a program stored in a memory, wherein when the program is running, the processor performs the above disk access method.

[0017] In the embodiment of the present application, the disk agent service in the vehicle-mounted instrument system is started, wherein at least one target system accesses the disk directly accessible by the vehicle-mounted instrument system through the disk agent service, the at least one target system and the vehicle-mounted instrument system are different types of operating systems in the same hardware module; a disk access request from the at least one target system is received, wherein the disk access request is used to obtain information of the disk; in response to the disk access request, the disk is accessed through the disk agent service to access data in the disk, and the disk is accessed across the systems based on the disk agent, that is, according to the characteristics of the vehicle-mounted instrument system that is started first and loaded first and system stability, the disk controller that does not support cross-system implementation is arranged in the system, and other operating systems in the module access the disk through the vehicle-mounted instrument system agent, thereby achieving the technical effect that multiple systems isolated by hardware share the disk, and further solving the technical problem that multiple operating systems isolated by hardware cannot share the disk. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and their description serve to explain the present application, and do not constitute improper limitations on the present application. In the drawings:

[0019] Figure 1 is a flowchart of a disk access method according to an embodiment of the present application;

[0020] Figure 2 is a structural block diagram of a disk access device according to an embodiment of the present application;

[0021] Figure 3 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and in the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0024] According to an embodiment of the present application, an embodiment of a disk access method is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.

[0025] For the above-mentioned problem of hard-wired multi-system access to a disk, the present application proposes a cross-system disk access method based on a disk agent, which can effectively solve the problem of multiple operating systems sharing a disk, and at the same time support the software plug-in function of the disk agent.

[0026] The technical solution provided by the present application is applicable to a System on Chip (SoC) module of a heterogeneous processing system using hardware isolation, and is particularly suitable for the field of future intelligent cockpits. The technical solution provided by the present application will be described below with reference to the example of a multi-system startup scenario of a vehicle.

[0027] According to the characteristics of the vehicle instrument system starting first, loading first and system stability, the disk controller that does not support cross-system implementation is arranged in the system, and the other operating systems in the module access the disk through the vehicle instrument system agent, thereby realizing the capability of sharing a disk between systems in a hardware isolated manner.

[0028] Figure 1 is a flowchart of a disk access method according to an embodiment of the present application, as shown in Figure 1 The method comprises the following steps:

[0029] Step S102, starting a disk agent service in the vehicle instrument system, wherein at least one target system accesses a disk that the vehicle instrument system can directly access through the disk agent service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module.

[0030] In the step S102, the disk proxy service of the instrument system is started, and the disk access client of the other system is started. The data read and written by the client to the disk is transmitted between the disk proxy service through the DDR shared memory mechanism.

[0031] It should be noted that the instrument system is started, the disk controller driver is normally loaded, and the instrument system has the ability to directly access the disk.

[0032] In an optional embodiment of the present application, after the step S102 of starting the disk proxy service of the instrument system, at least one disk access request channel and shared memory of the target system are initialized according to a configuration file, wherein the disk access request channel is used to send a disk access request.

[0033] As an optional embodiment, after the instrument system starts the disk proxy service, the disk access request channel and the disk read-write ring buffer of the other system are initialized according to the dts configuration file. The dts configuration file is a file with a suffix of.dts, and the corresponding information of the hardware is written in the dts configuration file, so that the kernel of the operating system can manage and use the hardware.

[0034] In the step S104, a disk access request from at least one target system is received, wherein the disk access request is used to obtain information of the disk.

[0035] According to an optional embodiment of the present application, the at least one target system includes but is not limited to the central control system and the game system. The central control system is started earlier than the instrument system, and the central control system needs to access the disk in many scenes. After the central control system is started, the disk access client initiates a request to obtain the information of the disk. The game system is started later than the instrument system. If the game system needs to access the disk, the disk access client initiates a request to obtain the information of the disk.

[0036] In the step S106, the data in the disk is accessed through the disk proxy service in response to the disk access request.

[0037] Through the above steps, the disk is accessed across the systems based on the disk proxy, and the other operating systems in the module access the disk through the instrument system proxy, thereby achieving the technical effect that the multiple systems with hardware isolation share the disk.

[0038] According to an optional embodiment of the present application, the step S106 is performed to access the data in the disk through the disk proxy service in response to the disk access request, including the following steps: sending a response message to at least one target system, wherein the response message includes the information of the disk and the address of the shared memory used for caching the read / write data of the disk; after the disk proxy service is enabled, receiving the disk data read / write request from at least one target system, wherein the disk proxy service is enabled after at least one target system records the information of the disk and the address of the shared memory to the local; and in response to the disk data read / write request, reading / writing the data in the disk through the disk proxy service.

[0039] During the starting process of the disk proxy service of the vehicle instrument system, it is determined whether the disk information request sent by the disk access client has been received. If yes, the vehicle instrument system collects the local disk information and fills the disk read / write shared memory address in the response message; if not, the vehicle instrument system waits for the disk access request initiated by the disk access client of other system after the disk proxy service is ready.

[0040] Taking the game system and the central control system as an example, after the disk access client of the game system and the central control system receives the response message sent by the instrument system, the message is parsed, the disk information and the disk read / write shared memory address are recorded to the local. The vehicle instrument system records the disk read / write request negotiation success flag, i.e., the disk proxy effective flag is true.

[0041] Then, the vehicle instrument system can receive the disk data read / write request sent by the game system or the central control system, read / write the disk data through the disk proxy service to respond to the disk data read / write request.

[0042] According to another optional embodiment of the present application, the disk data is read / written through the disk proxy service in response to the disk data read / write request, which is achieved by the following method: in response to the disk data read request, the disk data read from the disk is cached to the shared memory according to the address of the shared memory, and the read disk data is sent from the shared memory to at least one target system through the disk proxy service; in response to the disk data write request, the disk data required to be written into the disk by at least one target system is cached to the shared memory according to the address of the shared memory, and the disk data required to be written is written into the disk from the shared memory through the disk proxy service.

[0043] As an optional embodiment, taking the central control system accessing the disk data as an example, the central control system reads the data from the disk, transfers the read data through the shared memory ring buffer, and then sends the read data from the shared memory to the central control system by the disk proxy service of the vehicle instrument system.

[0044] When the central control system needs to write data into the disk, the data to be written is also transferred through the shared memory ring buffer, and then the disk agent service of the vehicle instrument system writes the data to be written from the shared memory to the disk.

[0045] The central control system accesses the disk through two shared memory ring buffers (read buffer and write buffer), and each buffer includes two offsets (read and write offsets of the operation buffer), that is, the central control system reads and writes the disk through the read offset of the read buffer and the write offset of the write buffer.

[0046] As an optional embodiment, the step S106, in response to the disk access request, accesses the data in the disk through the disk agent service, further includes the following steps: in the case that the vehicle instrument system fails, the disk data read request is refused; in the case that the vehicle instrument system fails, the disk data to be written into the disk by at least one target system is cached in a target memory, wherein the target memory is a storage area different from the shared memory; and after the vehicle instrument system recovers from the failure, the disk data cached in the target memory is synchronized to the shared memory.

[0047] In an optional embodiment, the vehicle instrument system abnormally stops, the system crashes, and the disk agent function fails. At this time, the central control system perceives the abnormality of the vehicle instrument system through the heartbeat link, the read disk operation directly returns failure, and after the shared memory buffer is full, the central control system applies ordinary memory to temporarily store the disk data. After the central control system receives the broadcast message of the recovery of the disk agent service of the instrument system, the disk data temporarily stored in the ordinary memory is synchronized to the shared memory buffer for writing the disk.

[0048] As an optional embodiment, after the vehicle instrument system restarts, it is judged whether the disk read-write request negotiation success flag is true. If yes, the instrument system broadcasts that the disk agent service has recovered and can normally process the disk read-write request. The instrument system digests the write data of the shared memory ring buffer of each disk access client, and the disk agent service normally operates. If no, the vehicle instrument system needs to initialize the disk access request channel and the disk read-write ring buffer of other systems according to the dts configuration file.

[0049] In some optional embodiments of the present application, a disk controller is arranged in the vehicle instrument system, wherein the disk controller is configured to send a control signal to a disk drive of the disk.

[0050] In the embodiments provided in the present application, according to the characteristics of the instrument system starting first, loading first and being stable, the disk controller which is not supported by cross-system implementation is arranged in the system, so that after the vehicle instrument system starts, the disk controller driver is normally loaded, and the vehicle instrument system has the ability to directly access the disk.

[0051] The three reasons for arranging the disk controller in the vehicle instrument system are: the vehicle instrument system has natural advantages in starting time; the vehicle instrument system has high stability in operation, which can make up for the defects of the disk agent function; and the vehicle instrument system can create a disk root file system in advance through a burning tool, and can support a more efficient initrd (init ramdisk) starting mode.

[0052] In some optional embodiments of the present application, the at least one target system includes: a first system and a second system, wherein the starting time of the first system is earlier than the starting time of the vehicle instrument system, and the starting time of the second system is later than the starting time of the vehicle instrument system.

[0053] It is mentioned above that the at least one target system includes but is not limited to a central control system and a game system, wherein the starting time of the central control system is earlier than the starting time of the vehicle instrument, and the starting time of the game system is later than the starting time of the vehicle instrument.

[0054] It should be noted that the central control system and the game system are only one of the above-mentioned first system and second system. The reason for dividing the operating system accessing the disk across the system into the first system and the second system is to illustrate that the technical solution proposed in the present application has the capability that the disk access client starts earlier than the disk agent service.

[0055] Figure 2 is a structural block diagram of a disk access device according to an embodiment of the present application, as Figure 2 shown, the device includes:

[0056] The starting module 20 is configured to start the disk agent service in the vehicle instrument system, wherein the at least one target system accesses the disk that can be directly accessed by the vehicle instrument system through the disk agent service, and the at least one target system and the vehicle instrument system are different types of operating systems in the same hardware module.

[0057] According to an optional embodiment of the present application, the vehicle instrument system starts the disk agent service, other systems start the disk access client, and the data read and written by the client is transmitted between the disk agent service through the DDR shared memory mechanism.

[0058] It should be noted that the vehicle instrument system is started, the disk controller driver is normally loaded, and the instrument system has the capability of directly accessing the disk.

[0059] After starting the disk agent service in the vehicle instrument system, it is necessary to initialize the disk access request channel and the shared memory of the at least one target system according to the configuration file, wherein the disk access request channel is used to send a disk access request.

[0060] As an optional embodiment, the instrument system initiates the disk agent service, and initializes a disk access request channel and a disk read-write ring buffer of other systems according to a dts configuration file. The dts configuration file is a file with a suffix of.dts, and corresponding information of hardware is written in the dts configuration file, so that a kernel of an operating system can manage and use the hardware.

[0061] The receiving module 22 is configured to receive a disk access request from at least one target system, where the disk access request is used to obtain information of the disk.

[0062] The at least one target system includes, but is not limited to, a central control system and a game system. The central control system is started earlier than the instrument system, and the central control system needs to access the disk in many scenes, and the disk access client initiates a request for obtaining disk information after being started. The game system is started later than the instrument system, and if the game system needs to access the disk, the disk access client initiates a request for obtaining disk information.

[0063] The response module 24 is configured to access data in the disk through the disk agent service in response to the disk access request.

[0064] It should be noted that, Figure 2 The preferred embodiments of the embodiments shown can be referred to Figure 1 The related description of the embodiments shown will not be repeated here.

[0065] Figure 3 is a structural block diagram of an electronic device according to an embodiment of the present application, as Figure 3 The electronic device includes an instrument system 30, a disk 32 and at least one target system 34, where the instrument system 30 can directly access the disk 32,

[0066] The instrument system 30 is configured to start a disk agent service in the instrument system, where the at least one target system 34 accesses the disk 32 through the disk agent service, and the at least one target system 34 and the instrument system 30 are different types of operating systems in the same hardware module.

[0067] The at least one target system 34 is configured to send a disk access request to the instrument system 30, where the disk access request is used to obtain information of the disk 30.

[0068] The instrument system 30 is further configured to receive the disk access request, and access data in the disk through the disk agent service in response to the disk access request.

[0069] It should be noted that, Figure 3 The preferred embodiments of the embodiments shown can be referred to Figure 1The related description of the embodiments is not repeated here.

[0070] The embodiment of the present application further provides a non-volatile storage medium, which comprises a stored program, wherein when the program is run, the non-volatile storage medium controls a device where the non-volatile storage medium is located to execute the above disk access method.

[0071] The non-volatile storage medium is used for storing a program for starting a disk agent service in a vehicle instrument system, wherein at least one target system accesses a disk directly accessible by the vehicle instrument system through the disk agent service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module; receiving a disk access request from the at least one target system, wherein the disk access request is used to obtain information of the disk; and in response to the disk access request, accessing data in the disk through the disk agent service.

[0072] The embodiment of the present application further provides a processor, which is used for running a program stored in a memory, wherein when the program is run, the disk access method is executed.

[0073] The processor is used for running a program for starting a disk agent service in a vehicle instrument system, wherein at least one target system accesses a disk directly accessible by the vehicle instrument system through the disk agent service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module; receiving a disk access request from the at least one target system, wherein the disk access request is used to obtain information of the disk; and in response to the disk access request, accessing data in the disk through the disk agent service.

[0074] The serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0075] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0076] In the several embodiments provided by the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the unit division in the above device embodiment is only a logical function division, and there can be another division manner during actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, units or modules can be indirect couplings or communication connections through some interfaces, units or modules, and can be electrical or other forms.

[0077] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0078] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0079] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part that contributes to the related art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various program code storage media.

[0080] The above is only the preferred embodiment of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. A disk access method, characterized in that, System-on-chip applications used in heterogeneous processing systems employing hardware isolation include: Start the disk proxy service in the vehicle instrument system, wherein at least one target system accesses the disk that the vehicle instrument system can directly access through the disk proxy service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module; Receive a disk access request from the at least one target system, wherein the disk access request is used to obtain information about the disk, and if it is determined that the disk access request has been received, collect local disk information and the address of shared memory for disk read / write; In response to the disk access request, accessing data in the disk through the disk proxy service includes: in response to a disk data read request, caching disk data read from the disk into the shared memory according to the address of the shared memory, and sending the read disk data from the shared memory to the at least one target system through the disk proxy service.

2. The method according to claim 1, characterized in that, In response to the disk access request, accessing data on the disk through the disk proxy service includes: Send a response message to the at least one target system, wherein the response message includes: information about the disk and the address of shared memory, the shared memory being used to cache read and write data of the disk; After the disk proxy service takes effect, disk data read / write requests are received from at least one target system, wherein the disk proxy service takes effect after the at least one target system records the disk information and the address of the shared memory locally; In response to the disk data read / write request, the disk agent service reads and writes data on the disk.

3. The method according to claim 2, characterized in that, In response to the disk data read / write request, reading and writing data on the disk through the disk proxy service includes: In response to a disk data write request, the disk data that the at least one target system needs to write to the disk is cached in the shared memory according to the address of the shared memory, and the disk data that needs to be written is written to the disk from the shared memory through the disk proxy service.

4. The method according to claim 1, characterized in that, In response to the disk access request, accessing data on the disk through the disk proxy service further includes: In the event of a malfunction in the vehicle instrument system, the system will refuse to respond to the disk data read request. In the event of a malfunction in the vehicle instrument system, the disk data that the at least one target system needs to write to the disk is cached in the target memory, wherein the target memory is a storage area different from the shared memory; After the vehicle instrument system recovers from the fault, the disk data cached in the target memory is synchronized to the shared memory.

5. The method according to claim 2, characterized in that, After activating the disk agent service in the vehicle instrument system, the method further includes: The disk access request channel of the at least one target system and the shared memory are initialized according to the configuration file, wherein the disk access request channel is used to send the disk access request.

6. The method according to any one of claims 1 to 5, characterized in that, A disk controller is installed in the vehicle instrument system, wherein the disk controller is used to send control signals to the disk drive of the disk.

7. The method according to any one of claims 1 to 5, characterized in that, The at least one target system includes: a first system and a second system, wherein the startup time of the first system is earlier than the startup time of the vehicle instrument system, and the startup time of the second system is later than the startup time of the vehicle instrument system.

8. A disk access device, characterized in that, System-on-chip applications used in heterogeneous processing systems employing hardware isolation include: A startup module is used to start a disk proxy service in the vehicle instrument system, wherein at least one target system accesses a disk that the vehicle instrument system can directly access through the disk proxy service, and the at least one target system and the vehicle instrument system are different types of operating systems located in the same hardware module. A receiving module is configured to receive a disk access request from the at least one target system, wherein the disk access request is used to obtain information about the disk, and when it is determined that the disk access request has been received, it collects local disk information and the address of shared memory for disk read / write. A response module is configured to access data in the disk through the disk proxy service in response to the disk access request, including: in response to a disk data read request, caching disk data read from the disk into the shared memory according to the address of the shared memory, and sending the read disk data from the shared memory to the at least one target system through the disk proxy service.

9. An electronic device, characterized in that, include: The system includes an in-vehicle instrument cluster, a hard disk, and at least one target system, wherein the in-vehicle instrument cluster has direct access to the hard disk. The in-vehicle instrument system is used to start a disk proxy service in the in-vehicle instrument system, wherein at least one target system accesses the disk through the disk proxy service, and the at least one target system and the in-vehicle instrument system are different types of operating systems located in the same hardware module. The at least one target system is used to send a disk access request to the vehicle instrument system, wherein the disk access request is used to obtain information about the disk, and upon determining that the disk access request has been received, local disk information and the address of shared memory for disk read / write are collected. The vehicle instrument system is further configured to receive the disk access request and, in response to the disk access request, access data in the disk through the disk proxy service, including: in response to a disk data read request, caching disk data read from the disk into the shared memory according to the address of the shared memory, and sending the read disk data from the shared memory to the at least one target system through the disk proxy service.

10. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the non-volatile storage medium to perform the disk access method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Vehicle-mounted communication method, device, equipment and storage medium

    CN114268927A

  • Sharing memory between guests

    US20160283260A1