Skip to content

Commit

Permalink
target/i386: the sgx_epc_get_section stub is reachable
Browse files Browse the repository at this point in the history
The sgx_epc_get_section stub is reachable from cpu_x86_cpuid.  It
should not assert, instead it should just return true just like
the "real" sgx_epc_get_section does when SGX is disabled.

Reported-by: Vladimír Beneš <vbenes@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20220201190941.106001-1-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Dec 31, 2023
1 parent 405c7c0 commit 2196157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/i386/sgx-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ void pc_machine_init_sgx_epc(PCMachineState *pcms)

bool sgx_epc_get_section(int section_nr, uint64_t *addr, uint64_t *size)
{
g_assert_not_reached();
return true;
}

0 comments on commit 2196157

Please sign in to comment.