Re: [PATCH 08/12] xen/hypfs: support dynamic hypfs nodes

2020-11-17 Thread Jürgen Groß
On 17.11.20 15:40, Jan Beulich wrote: On 17.11.2020 15:29, Jürgen Groß wrote: On 17.11.20 13:37, Jan Beulich wrote: On 26.10.2020 10:13, Juergen Gross wrote: --- a/xen/common/hypfs.c +++ b/xen/common/hypfs.c @@ -19,28 +19,29 @@ CHECK_hypfs_dirlistentry; #endif -#define DIRENTRY_NAME_

Re: [PATCH 08/12] xen/hypfs: support dynamic hypfs nodes

2020-11-17 Thread Jan Beulich
On 17.11.2020 15:29, Jürgen Groß wrote: > On 17.11.20 13:37, Jan Beulich wrote: >> On 26.10.2020 10:13, Juergen Gross wrote: >>> --- a/xen/common/hypfs.c >>> +++ b/xen/common/hypfs.c >>> @@ -19,28 +19,29 @@ >>> CHECK_hypfs_dirlistentry; >>> #endif >>> >>> -#define DIRENTRY_NAME_OFF offsetof(

[PATCH 08/12] xen/hypfs: support dynamic hypfs nodes

2020-11-17 Thread Jürgen Groß
On 17.11.20 13:37, Jan Beulich wrote: On 26.10.2020 10:13, Juergen Gross wrote: Add a getsize() function pointer to struct hypfs_funcs for being able to have dynamically filled entries without the need to take the hypfs lock each time the contents are being generated. But a dynamic update caus

Re: [PATCH 08/12] xen/hypfs: support dynamic hypfs nodes

2020-11-17 Thread Jan Beulich
On 26.10.2020 10:13, Juergen Gross wrote: > Add a getsize() function pointer to struct hypfs_funcs for being able > to have dynamically filled entries without the need to take the hypfs > lock each time the contents are being generated. But a dynamic update causing a change in size will require _s

[PATCH 08/12] xen/hypfs: support dynamic hypfs nodes

2020-10-26 Thread Juergen Gross
Add a getsize() function pointer to struct hypfs_funcs for being able to have dynamically filled entries without the need to take the hypfs lock each time the contents are being generated. For directories add a findentry callback to the vector and modify hypfs_get_entry_rel() to use it. Add a HYP