From: Gleb Natapov <gleb@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] Move irq routing data structure to rcu locking
Date: Sun, 12 Jul 2009 13:07:01 +0300 [thread overview]
Message-ID: <20090712100701.GY28046@redhat.com> (raw)
In-Reply-To: <4A59B1CD.4070406@redhat.com>
On Sun, Jul 12, 2009 at 12:50:05PM +0300, Avi Kivity wrote:
> On 07/09/2009 04:13 PM, Gleb Natapov wrote:
>> Change it from list to array to make RCU handling simpler.
>>
>> Signed-off-by: Gleb Natapov<gleb@redhat.com>
>> diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
>> index f54a0d3..12d8d2b 100644
>> --- a/include/linux/kvm_host.h
>> +++ b/include/linux/kvm_host.h
>> @@ -161,7 +161,8 @@ struct kvm {
>>
>> struct mutex irq_lock;
>> #ifdef CONFIG_HAVE_KVM_IRQCHIP
>> - struct list_head irq_routing; /* of kvm_kernel_irq_routing_entry */
>> + struct kvm_kernel_irq_routing_entry *irq_routing;
>> + spinlock_t irq_routing_lock;
>> struct hlist_head mask_notifier_list;
>> #endif
>>
>
> Why the new lock?
>
Currently routing table is protected by irq_lock mutex, but irq_lock is
overused. It protects too much of unrelated things and it is not clear what
its real purpose in life. I want to rid of it completely.
--
Gleb.
next prev parent reply other threads:[~2009-07-12 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 13:13 [PATCH] Move irq routing data structure to rcu locking Gleb Natapov
2009-07-12 9:50 ` Avi Kivity
2009-07-12 10:07 ` Gleb Natapov [this message]
2009-07-12 11:10 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090712100701.GY28046@redhat.com \
--to=gleb@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.