Skip to content
  • Yang Zhong's avatar
    4755927a
    numa: Support SGX numa in the monitor and Libvirt interfaces · 4755927a
    Yang Zhong authored
    
    
    Add the SGXEPCSection list into SGXInfo to show the multiple
    SGX EPC sections detailed info, not the total size like before.
    This patch can enable numa support for 'info sgx' command and
    QMP interfaces. The new interfaces show each EPC section info
    in one numa node. Libvirt can use QMP interface to get the
    detailed host SGX EPC capabilities to decide how to allocate
    host EPC sections to guest.
    
    (qemu) info sgx
     SGX support: enabled
     SGX1 support: enabled
     SGX2 support: enabled
     FLC support: enabled
     NUMA node #0: size=67108864
     NUMA node #1: size=29360128
    
    The QMP interface show:
    (QEMU) query-sgx
    {"return": {"sgx": true, "sgx2": true, "sgx1": true, "sections": \
    [{"node": 0, "size": 67108864}, {"node": 1, "size": 29360128}], "flc": true}}
    
    (QEMU) query-sgx-capabilities
    {"return": {"sgx": true, "sgx2": true, "sgx1": true, "sections": \
    [{"node": 0, "size": 17070817280}, {"node": 1, "size": 17079205888}], "flc": true}}
    
    Signed-off-by: default avatarYang Zhong <yang.zhong@intel.com>
    Message-Id: <20211101162009.62161-4-yang.zhong@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4755927a
    numa: Support SGX numa in the monitor and Libvirt interfaces
    Yang Zhong authored
    
    
    Add the SGXEPCSection list into SGXInfo to show the multiple
    SGX EPC sections detailed info, not the total size like before.
    This patch can enable numa support for 'info sgx' command and
    QMP interfaces. The new interfaces show each EPC section info
    in one numa node. Libvirt can use QMP interface to get the
    detailed host SGX EPC capabilities to decide how to allocate
    host EPC sections to guest.
    
    (qemu) info sgx
     SGX support: enabled
     SGX1 support: enabled
     SGX2 support: enabled
     FLC support: enabled
     NUMA node #0: size=67108864
     NUMA node #1: size=29360128
    
    The QMP interface show:
    (QEMU) query-sgx
    {"return": {"sgx": true, "sgx2": true, "sgx1": true, "sections": \
    [{"node": 0, "size": 67108864}, {"node": 1, "size": 29360128}], "flc": true}}
    
    (QEMU) query-sgx-capabilities
    {"return": {"sgx": true, "sgx2": true, "sgx1": true, "sections": \
    [{"node": 0, "size": 17070817280}, {"node": 1, "size": 17079205888}], "flc": true}}
    
    Signed-off-by: default avatarYang Zhong <yang.zhong@intel.com>
    Message-Id: <20211101162009.62161-4-yang.zhong@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading