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

Claim 1:
2. The method according to claim 1, wherein the first mapping relationship indicates a mapping relationship between a second virtual address and a second physical address and the second mapping relationship also indicates a mapping relationship between the second virtual address and the second physical address, and the first mapping relationship and the second mapping relationship both indicate an access rule of the second physical address, wherein the first mapping relationship indicates that the access rule of the second physical address is access allowed, the second mapping relationship indicates that the access rule of the second physical address is access forbidden, and the second physical address is a physical address of the second memory space; and
after the switching the target mapping relationship, the method further comprises:
when code stored in the first memory space indicates that the second memory space needs to be accessed, sending, by the processing unit, a second access request to the memory control unit, wherein the second access request includes the second virtual address;
receiving, by the processing unit, second exception information sent by the memory control unit, when the memory control unit determines that the access rule of the second physical address in the target mapping relationship is access forbidden;
monitoring, by the processing unit, the first process based on the second exception information;
switching, by the processing unit, the target mapping relationship to switch the target mapping relationship from the second mapping relationship to the first mapping relationship; and
re-sending, by the processing unit, the second access request to the memory control unit.