{"action":"created","issue":{"url":"https://api.github.com/repos/intel/kvm-sgx/issues/4","repository_url":"https://api.github.com/repos/intel/kvm-sgx","labels_url":"https://api.github.com/repos/intel/kvm-sgx/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/intel/kvm-sgx/issues/4/comments","events_url":"https://api.github.com/repos/intel/kvm-sgx/issues/4/events","html_url":"https://github.com/intel/kvm-sgx/issues/4","id":334031211,"node_id":"MDU6SXNzdWUzMzQwMzEyMTE=","number":4,"title":"qemu-system-x86_64: unable to find CPU model '+sgx' and Machine option 'epc' requires KVM","user":{"login":"tyxeron","id":23633699,"node_id":"MDQ6VXNlcjIzNjMzNjk5","avatar_url":"https://avatars0.githubusercontent.com/u/23633699?v=4","gravatar_id":"","url":"https://api.github.com/users/tyxeron","html_url":"https://github.com/tyxeron","followers_url":"https://api.github.com/users/tyxeron/followers","following_url":"https://api.github.com/users/tyxeron/following{/other_user}","gists_url":"https://api.github.com/users/tyxeron/gists{/gist_id}","starred_url":"https://api.github.com/users/tyxeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyxeron/subscriptions","organizations_url":"https://api.github.com/users/tyxeron/orgs","repos_url":"https://api.github.com/users/tyxeron/repos","events_url":"https://api.github.com/users/tyxeron/events{/privacy}","received_events_url":"https://api.github.com/users/tyxeron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T11:14:18Z","updated_at":"2018-06-20T12:39:47Z","closed_at":null,"author_association":"NONE","body":"I am currently trying to apply the patches for QEMU and KVM but failing to start a VM with the qemu options \"-cpu +sgx\" and \"-machine epc=<size>\", where the first one reports back with \"qemu-system-x86_64: unable to find CPU model '+sgx'\" and the latter with \"Machine option 'epc' requires KVM\".\r\n\r\nWhat I did so far is building the custom Kernel from the git repo \"https://github.com/intel/kvm-sgx\" release \"sgx-v4.15.11-r1\", with the configration set to include the SGX Core functionality built in and KVM as Module.\r\n\r\nI then switched to this kernel and first installed kvm-qemu  aswell as libvirt-clients, libvirt-daemon-system and virt-manager. I build the qemu patches from the release \"sgx-v2.11.1-r1\" as follows.\r\n   * mkdir build\r\n   * cd build\r\n   * sudo ../configure --prefix=/usr --enable-kvm --enable-seccomp\r\n   * sudo make\r\n   * sudo make install\r\n\r\n After this I tried to test the two options with\r\n  * qemu-system-x86_64 -machine epc=0x1000\r\n  * qemu-system-x86_64 -cpu +sgx\r\n\r\nbut got above errors\r\n\r\nI tried it both on my desktop (Intel(R) Core(TM) i7-7700K) and Laptop (Intel(R) Core(TM) i7-8550U)"},"comment":{"url":"https://api.github.com/repos/intel/kvm-sgx/issues/comments/398734173","html_url":"https://github.com/intel/kvm-sgx/issues/4#issuecomment-398734173","issue_url":"https://api.github.com/repos/intel/kvm-sgx/issues/4","id":398734173,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODczNDE3Mw==","user":{"login":"sean-jc","id":18535971,"node_id":"MDQ6VXNlcjE4NTM1OTcx","avatar_url":"https://avatars0.githubusercontent.com/u/18535971?v=4","gravatar_id":"","url":"https://api.github.com/users/sean-jc","html_url":"https://github.com/sean-jc","followers_url":"https://api.github.com/users/sean-jc/followers","following_url":"https://api.github.com/users/sean-jc/following{/other_user}","gists_url":"https://api.github.com/users/sean-jc/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-jc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-jc/subscriptions","organizations_url":"https://api.github.com/users/sean-jc/orgs","repos_url":"https://api.github.com/users/sean-jc/repos","events_url":"https://api.github.com/users/sean-jc/events{/privacy}","received_events_url":"https://api.github.com/users/sean-jc/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T12:39:47Z","updated_at":"2018-06-20T12:39:47Z","author_association":"CONTRIBUTOR","body":">  the first one reports back with \"qemu-system-x86_64: unable to find CPU model '+sgx'\"\r\n\r\n`+sgx` is just a modifier to the CPU model, you still need to specify a valid model, e.g. Haswell.  That being said, unless you want to run a specific model, using `-cpu host ` to pass-through all host features, including SGX, is the easiest way to get started.\r\n\r\n>  and the latter with \"Machine option 'epc' requires KVM\".\r\n\r\nThis error occurs if Qemu is built without KVM support, or if KVM is not present in the system.  Do you see any messages prior to the EPC error that might indicate why KVM is not available?"}}
{"actor":{"display_login":"sean-jc"}}