Closed gokhalesushant65 closed 4 years ago
Does adding #include "qemu/typedefs.h"
to include/sysemu/hostmem.h resolve the build error?
No, it didn't resolve the error.
Have started getting the same error for ubuntu 18.04 for the tag sgx-v3.0.0-r2
That sounds like an issue in your build environment and/or config. sgx-v3.0.0-r2 doesn't implement EPC as a memory backend, i.e. shouldn't touch hostmem.h whatsoever. Can you reproduce the error from a clean build directory?
Tried to build with a fresh build environment. But Getting the same error on ubuntu 18.04 and ubuntu 16.04 as well.
I reinstalled ubuntu 18.04 and downloaded the repos kvm sgx-v4.19.1-r1 and qemu sgx-v3.0.0-r2 and tried again but the error persists.
Note that on the host I don't have sgx driver, SDK and PSW. But I had succeeded once patching QEMU even without sgx driver, SDK and PSW on the host machine (and had run enclave programs in hardware mode on the guest).
Now, I am not able to find what's going wrong. Please let me know.
Please attach your config.status
, I'll try to reproduce.
Attaching as 'config.txt' as uploading of file with '.status' is unsupported: config.txt
Also, adding 'config.log' if you want(I dont know the reason behind lot of errors in the log): config.log
I could compile successfully with following command. Thanks for help.
../configure --target-list=x86_64-softmmu
Now, having applied the QEMU patch, when I try to start with the virtual machine with 'epc' option, it gives me the following error:
dell@dell-OptiPlex-7050:~$ sudo qemu-system-x86_64 -enable-kvm -machine epc=40M -machine epc-below-4g=auto -m 8G -cpu host ~/qemu_images/ubuntu_18_04.qcow2 -vga qxl [sudo] password for dell: qemu-system-x86_64: Property '.epc' not found
What should be done?
The most recent Qemu build implements EPC as a memory backend. See the README for details on how to enable EPC with the new command line options.
This is my OS info:
I am trying to apply the patch to qemu for virtualizing sgx from the tag sgx-v3.0.0-r2 . Getting the following error after firing 'make' command: qemuSGX_make_error.txt
The same error occurs with the latest tag (i.e. sgx-v3.1.0-r1).
Note: In ubuntu 18.04, this is running completely fine.