[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add class property to configure KVM device node to use
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH] Add class property to configure KVM device node to use |
Date: |
Wed, 25 Oct 2023 18:37:01 +0100 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Sat, Oct 21, 2023 at 03:40:15PM +0200, Daan De Meyer wrote:
> This allows passing the KVM device node to use as a file
> descriptor via /dev/fdset/XX. Passing the device node to
> use as a file descriptor allows running qemu unprivileged
> even when the user running qemu is not in the kvm group
> on distributions where access to /dev/kvm is gated behind
> membership of the kvm group (as long as the process invoking
> qemu is able to open /dev/kvm and passes the file descriptor
> to qemu).
>
> Signed-off-by: Daan De Meyer <daan.j.demeyer@gmail.com>
> ---
> accel/kvm/kvm-all.c | 25 ++++++++++++++++++++++++-
> include/sysemu/kvm_int.h | 1 +
> qemu-options.hx | 8 +++++++-
> 3 files changed, 32 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|