mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
libxl: only return {OVMF,SEABIOS}_PATH if available
Signed-off-by: Wei Liu <wei.liu2@citrix.com> Tested-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
ea27761b5d
commit
fb3cc17962
1 file changed
+8
@@ -37,12 +37,20 @@ const char *libxl__run_dir_path(void)
|
||||
|
||||
const char *libxl__seabios_path(void)
|
||||
{
|
||||
#ifdef SEABIOS_PATH
|
||||
return SEABIOS_PATH;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
const char *libxl__ovmf_path(void)
|
||||
{
|
||||
#ifdef OVMF_PATH
|
||||
return OVMF_PATH;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||