
On 01/12/2014 16:44, Cole Robinson wrote:
-#define VIR_QEMU_LOADER_FILE_PATH "/usr/share/OVMF/OVMF_CODE.fd" -#define VIR_QEMU_NVRAM_FILE_PATH "/usr/share/OVMF/OVMF_VARS.fd" +#if defined(__arm__) || defined(__aarch64__) +# define VIR_QEMU_LOADER_FILE_PATH "/usr/share/AAVMF/AAVMF_CODE.fd" +# define VIR_QEMU_NVRAM_FILE_PATH "/usr/share/AAVMF/AAVMF_VARS.fd" +#else +# define VIR_QEMU_LOADER_FILE_PATH "/usr/share/OVMF/OVMF_CODE.fd" +# define VIR_QEMU_NVRAM_FILE_PATH "/usr/share/OVMF/OVMF_VARS.fd" +#endif
virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged) {
Can we add the ability to change those paths at ./configure time? Those paths don't apply to the recommended OVMF/AAVMF packages for fedora (Gerd's nightly repo), and I doubt they apply to debian/ubuntu as well.
Also, these really depend on the target architecture, not the host. qemu-system-aarch64 on x86 should use AAVMF. Paolo