lkml.org 
[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [KVM PATCH v8 3/3] KVM: create irqfd-cleanup-wq on demand
On 07/01/2009 07:09 PM, Gregory Haskins wrote:
> We currently create this wq on module_init, which may be wasteful if the
> host never creates a guest that uses irqfd. This patch changes the
> algorithm so that the workqueue is only created when at least one guest
> is using irqfd. The queue is cleaned up when the last guest using irqfd
> is shutdown.
>
> To keep things simple, we only check whether the guest has tried to create
> an irqfd, not whether there are actually irqfds active.
>

> +++ b/include/linux/kvm_host.h
> @@ -144,6 +144,7 @@ struct kvm {
> struct {
> spinlock_t lock;
> struct list_head items;
> + int init:1;
>

Since you're rebasing anyway... change the bitfield to a bool.

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2009-07-02 16:23    [W:0.103 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site