qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v9 17/17] block/io_uring: enable kernel submissi


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v9 17/17] block/io_uring: enable kernel submission polling
Date: Mon, 5 Aug 2019 09:29:54 +0100

On Fri, Aug 2, 2019 at 12:50 AM Aarushi Mehta <address@hidden> wrote:
> +    rc = io_uring_queue_init(MAX_EVENTS, ring, IORING_SETUP_SQPOLL);
> +    if (rc == -EOPNOTSUPP) {
> +            rc = io_uring_queue_init(MAX_EVENTS, ring, 0);
> +    }

IORING_SETUP_SQPOLL is only allowed when the user has CAP_SYS_ADMIN
(e.g. they are root).  Otherwise it fails with -EPERM.

This patch breaks non-root QEMU usage.  Please handle -EPERM like
-EOPNOTSUPP so it falls back to non-polling mode.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]