OSDN Git Service

numa: avoid crash with SGX and "info numa"
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Nov 2021 12:29:03 +0000 (13:29 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Nov 2021 12:37:36 +0000 (13:37 +0100)
commitbd989ed44f847cba20b46a743770c152e188f365
tree7abc5587ff2dacc519ea6ffbf71b30f12b5aaa85
parentdd47a8f654d84f666b235ce8891e17ee76f9be8b
numa: avoid crash with SGX and "info numa"

Add the MEMORY_DEVICE_INFO_KIND_SGX_EPC case, so that enclave
memory is included in the output of "info numa" instead of crashing
the monitor.

Fixes: a7c565a941 ("sgx-epc: Add the fill_device_info() callback support", 2021-09-30)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/numa.c