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:
Wei Liu committed 2016-08-24 12:44:19 +01:00
1 parent ea27761b5d
commit fb3cc17962
1 file changed
+8
+8
View File
@@ -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
}
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.