qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SGX NUMA is not working


From: Shawn C
Subject: SGX NUMA is not working
Date: Sat, 25 Jun 2022 13:31:40 +0000

Hi,

I followed the documentation but failed to enable SGX NUMA:

https://qemu.readthedocs.io/en/latest/system/i386/sgx.html

Run:
# qemu-system-x86_64      -m 4G,maxmem=20G      -smp sockets=2,cores=2      
-cpu host,+sgx-provisionkey      -object 
memory-backend-ram,size=2G,host-nodes=0,policy=bind,id=node0      -object 
memory-backend-epc,id=mem0,size=64M,prealloc=on,host-nodes=0,policy=bind      
-numa node,nodeid=0,cpus=0-1,memdev=node0      -object 
memory-backend-ram,size=2G,host-nodes=1,policy=bind,id=node1      -object 
memory-backend-epc,id=mem1,size=28M,prealloc=on,host-nodes=1,policy=bind      
-numa node,nodeid=1,cpus=2-3,memdev=node1      -M 
sgx-epc.0.memdev=mem0,sgx-epc.0.node=0,sgx-epc.1.memdev=mem1,sgx-epc.1.node=1

qemu-system-x86_64: cannot bind memory to host NUMA nodes: Invalid argument

Is something wrong in the documentation or the code has been changed w/o update 
the document? Thanks.

regards
Shawn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]