|
| From: | Paolo Bonzini |
| Subject: | Re: [PATCH 3/7] i386: Add sgx_get_info() interface |
| Date: | Wed, 8 Sep 2021 10:55:13 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 08/09/21 10:19, Yang Zhong wrote:
+ if (x86ms->sgx_epc_list) {
+ PCMachineState *pcms = PC_MACHINE(ms);
+ SGXEPCState *sgx_epc = &pcms->sgx_epc;
+ info = g_new0(SGXInfo, 1);
+
+ info->sgx = true;
+ info->sgx1 = true;
+ info->sgx2 = true;
+ info->flc = true;
Since this is querying the actual machine, it should check the CPUID bits of the first CPU, instead of just returning true.
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |