Re: [PATCH v2] xen/privcmd: allow fetching resource sizes

2021-01-13 Thread Jürgen Groß
On 12.01.21 12:53, Roger Pau Monne wrote: Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and addr = 0 in order to fetch the size of a specific resource. Add a shortcut to the default map resource path, since fetching the size requires no address to be passed in, and thus no VMA

Re: [PATCH v2] xen/privcmd: allow fetching resource sizes

2021-01-12 Thread Andrew Cooper
On 12/01/2021 12:17, Jürgen Groß wrote: > On 12.01.21 12:53, Roger Pau Monne wrote: >> Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and >> addr = 0 in order to fetch the size of a specific resource. >> >> Add a shortcut to the default map resource path, since fetching the >> size

Re: [PATCH v2] xen/privcmd: allow fetching resource sizes

2021-01-12 Thread Jürgen Groß
On 12.01.21 12:53, Roger Pau Monne wrote: Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and addr = 0 in order to fetch the size of a specific resource. Add a shortcut to the default map resource path, since fetching the size requires no address to be passed in, and thus no VMA

[PATCH v2] xen/privcmd: allow fetching resource sizes

2021-01-12 Thread Roger Pau Monne
Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and addr = 0 in order to fetch the size of a specific resource. Add a shortcut to the default map resource path, since fetching the size requires no address to be passed in, and thus no VMA to setup. This is missing from the initial