mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Add class property to configure KVM device node to use
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> Message-ID: <20231021134015.1119597-1-daan.j.demeyer@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
435262605f
commit
aef158b093
3 changed files with 32 additions and 2 deletions
|
@ -120,6 +120,7 @@ struct KVMState
|
|||
uint32_t xen_caps;
|
||||
uint16_t xen_gnttab_max_frames;
|
||||
uint16_t xen_evtchn_max_pirq;
|
||||
char *device;
|
||||
};
|
||||
|
||||
void kvm_memory_listener_register(KVMState *s, KVMMemoryListener *kml,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue