Patent ID: 11972116
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G  H

Claim 0:
1. A process monitoring method performed by a computing device that comprises a processing unit, a memory, and a memory control unit, comprising:
determining, by the processing unit, a first mapping relationship and a second mapping relationship, wherein the first mapping relationship indicates a mapping relationship between a first virtual address and a first physical address and the second mapping relationship also indicates a mapping relationship between the first virtual address and the first physical address, and the first mapping relationship and the second mapping relationship both indicate an access rule of the first physical address, wherein the first mapping relationship indicates that the access rule of the first physical address is access forbidden, and the second mapping relationship indicates that the access rule of the first physical address is access allowed, wherein the first physical address is a physical address of a first memory space in the memory, the first memory space is different from a second memory space in the memory, and the second memory space stores program code for generating a first process;
when the first process starts to run, determining, by the processing unit, that a target mapping relationship is the first mapping relationship, wherein the target mapping relationship is used when the memory control unit controls access to the memory;
when the first process needs to access the first memory space, sending, by the processing unit, a first access request to the memory control unit, wherein the first access request includes the first virtual address;
receiving, by the processing unit, first exception information sent by the memory control unit, when the memory control unit determines that the access rule of the first physical address in the target mapping relationship is access forbidden;
monitoring, by the processing unit, the first process based on the first exception information;
switching, by the processing unit, the target mapping relationship to switch the target mapping relationship from the first mapping relationship to the second mapping relationship; and
re-sending, by the processing unit, the first access request to the memory control unit.