我要评分
获取效率
正确性
完整性
易理解

Parameter Transfer of the Shared Memory in the Secure OS

Case No.

4.2.9-1

Test Objective

Verify that the parameters of the shared memory in the secure OS can be transferred.

Test Networking

See Test Networking.

Prerequisites

  1. The TrustZone kit has been burnt into the server and the TrustZone license has been activated.
  2. The REE patch has been loaded to the server. The CA and TA can be loaded and can communicate with each other properly.

Test Procedure

  1. Log in to the REE OS and load the TrustZone REE patch tzdriver. (See Expected Result 1.)

    insmod tzdriver

    /usr/bin/teecd &

  2. Write the CA and TA and make the following requirements on the CA and TA code. (See Expected Result 2.)

    The CA transfers parameters by using TEEC_AllocateSharedMemory and TEEC_RegisterSharedMemory.

Expected Result

  1. The REE patch is loaded and no error information is displayed.
  2. The APIs are working properly and the TA can access the parameter information transferred by the CA.

Test Result

  

Remarks

  

Case No.

4.2.9-2

Test Objective

Verify that the parameters of the zero-copy shared memory in the secure OS can be transferred.

Test Networking

See Test Networking.

Prerequisites

  1. The TrustZone kit has been burnt into the server and the TrustZone license has been activated.
  2. The REE patch has been loaded to the server. The CA and TA can be loaded and can communicate with each other properly.

Test Procedure

  1. Log in to the REE OS and load the TrustZone REE patch tzdriver. (See Expected Result 1.)

    insmod tzdriver

    /usr/bin/teecd &

  2. Write the CA and TA and make the following requirements on the CA and TA code. (See Expected Result 2.)
    • The CA applies for zero-copy shared memory through TEEC_AllocateSharedMemory.
    • The CA transfers parameters to the TA through the zero-copy shared memory.

Expected Result

  1. The REE patch is loaded and no error information is displayed.
  2. The APIs are working properly and the TA can access the parameter information transferred by the CA.

Test Result

  

Remarks