[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.10 54/54] target/i386: the sgx_epc_get_section stub is reach
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.10 54/54] target/i386: the sgx_epc_get_section stub is reachable |
Date: |
Sun, 3 Mar 2024 10:39:33 +0300 |
From: Paolo Bonzini <pbonzini@redhat.com>
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>
(cherry picked from commit 219615740425d9683588207b40a365e6741691a6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/hw/i386/sgx-stub.c b/hw/i386/sgx-stub.c
index 26833eb233..16b1dfd90b 100644
--- a/hw/i386/sgx-stub.c
+++ b/hw/i386/sgx-stub.c
@@ -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;
}
--
2.39.2
- [Stable-7.2.10 v3 00/54] Patch Round-up for stable 7.2.10, freeze on 2024-03-02 (frozen), Michael Tokarev, 2024/03/03
- [Stable-7.2.10 48/54] gitlab: force allow use of pip in Cirrus jobs, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 50/54] tests/unit/test-util-sockets: Remove temporary file after test, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 49/54] hw/usb/bus.c: PCAP adding 0xA in Windows version, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 51/54] test-vmstate: fix bad GTree usage, use-after-free, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 53/54] tests/unit/test-blockjob: Disable complete_in_standby test, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 52/54] tests/qtest/display-vga-test: Add proper checks if a device is available, Michael Tokarev, 2024/03/03
- [Stable-7.2.10 54/54] target/i386: the sgx_epc_get_section stub is reachable,
Michael Tokarev <=