Re: [Qemu-devel] [PATCH v3 22/26] Add a fallback bios file search, if -L fails.

2012-10-21 Thread Peter Maydell
On 21 October 2012 08:26, Michael Tokarev wrote: > On 20.10.2012 00:43, Jason Baron wrote: >> +char *qemu_find_file(int type, const char *name) >> +{ >> +char *filename; >> + >> +/* Try the name as a straight path first */ >> +if (access(name, R_OK) == 0) { >> +return g_strdup(

Re: [Qemu-devel] [PATCH v3 22/26] Add a fallback bios file search, if -L fails.

2012-10-21 Thread Michael Tokarev
On 20.10.2012 00:43, Jason Baron wrote: > From: Jason Baron > > If -L is specified, and qemu does not find the bios file in , then > the search fails. Add infrastructure such that the search will continue in > the default paths, if not found in the -L path. > > Reviewed-by: Paolo Bonzini > Sig

[Qemu-devel] [PATCH v3 22/26] Add a fallback bios file search, if -L fails.

2012-10-19 Thread Jason Baron
From: Jason Baron If -L is specified, and qemu does not find the bios file in , then the search fails. Add infrastructure such that the search will continue in the default paths, if not found in the -L path. Reviewed-by: Paolo Bonzini Signed-off-by: Jason Baron --- vl.c | 36 ++