Re: [PATCH v4 1/4] cutils: Introduce bundle mechanism

2022-06-15 Thread Akihiko Odaki
On 2022/06/15 17:19, Paolo Bonzini wrote: On 6/14/22 23:07, Akihiko Odaki wrote: diff --git a/util/cutils.c b/util/cutils.c index a58bcfd80e7..fe3bbb1c4eb 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -1086,3 +1086,36 @@ char *get_relocated_path(const char *dir)   }   return g_string

Re: [PATCH v4 1/4] cutils: Introduce bundle mechanism

2022-06-15 Thread Paolo Bonzini
On 6/14/22 23:07, Akihiko Odaki wrote: diff --git a/util/cutils.c b/util/cutils.c index a58bcfd80e7..fe3bbb1c4eb 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -1086,3 +1086,36 @@ char *get_relocated_path(const char *dir) } return g_string_free(result, false); } + +static const c

[PATCH v4 1/4] cutils: Introduce bundle mechanism

2022-06-14 Thread Akihiko Odaki
Developers often run QEMU without installing. The bundle mechanism allows to look up files which should be present in installation even in such a situation. It is a general mechanism and can find any files located relative to the installation tree. The build tree must have a new directory, qemu-bu