mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
memfd: add hugetlbsize argument
Learn to specificy hugetlb size as qemu_memfd_create() argument. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20180201132757.23063-4-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c5b2a9e078
commit
2ef8c0c99b
2 changed files with 19 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
#endif
|
||||
|
||||
int qemu_memfd_create(const char *name, size_t size, bool hugetlb,
|
||||
unsigned int seals, Error **errp);
|
||||
uint64_t hugetlbsize, unsigned int seals, Error **errp);
|
||||
void *qemu_memfd_alloc(const char *name, size_t size, unsigned int seals,
|
||||
int *fd, Error **errp);
|
||||
void qemu_memfd_free(void *ptr, size_t size, int fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue