Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

About sgx_init_quote,why return SGX_ERROR_BUSY?

huiqiang__zhang
Beginner
588 Views

Calling sgx_init_quote is the first thing an Intel® Software Guard Extensions application does in the process of getting a quote of an enclave.But after i create enclave success,when i execute the sgx_init_quote,the function return SGX_ERROR_BUSY. I referd the <<Intel® Software Guard Extensions (Intel® SGX) SDK for Linux* OS>>,the doc said "It's suggested that the caller should wait (typically several seconds to tens of seconds) and retry this API if SGX_ERROR_BUSY is returned",     my code as flows:

do{
        sleep(50);
        ret = sgx_init_quote(&target_info, &epid_gid);//check errors,https://software.intel.com/en-us/sgx-sdk-dev-reference-error-codes
        cout << busy_retry_time << endl;
    }while (SGX_ERROR_BUSY == ret && busy_retry_time--);

the error is the same sgx-error_busy:"The requested service is temporarily not available" .why?

0 Kudos
0 Replies
Reply