摘要 |
Embodiments of the present invention provide a computer system and a method for accessing a peripheral component interconnect express PCIe endpoint device. The computer system includes: a processor, a PCIe bus, and an access proxy. The access proxy connects to the processor and the PCIe endpoint device; the processor is configured to acquire an operation instruction, where the operation instruction instructs the processor to access the PCIe endpoint device by using the access proxy, and send an access request to the access proxy according to the operation instruction, where the access request instructs the access proxy to access the PCIe endpoint device; and the access proxy is configured to send a response message of the access request to the processor after receiving the access request sent by the processor. Because the processor does not directly access the PCIe endpoint device to be accessed but completes access by using the access proxy, the access proxy is capable of returning the response message of the access request to the processor, thereby avoiding an MCE reset for the processor. |