Thread (4 messages) 4 messages, 3 authors, 2021-01-13

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

From: Andrew Cooper <hidden>
Date: 2021-01-12 22:00:45
Also in: lkml, xen-devel

On 12/01/2021 12:17, Jürgen Groß wrote:
On 12.01.21 12:53, Roger Pau Monne wrote:
quoted
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 implementation, and causes issues
when mapping resources that don't have fixed or known sizes.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: stable@vger.kernel.org # >= 4.18
Reviewed-by: Juergen Gross <jgross@suse.com>
Tested-by: Andrew Cooper <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help