From: Sheng Yang <sheng@linux.intel.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: kvm@vger.kernel.org, "Zhang, Xiantao" <xiantao.zhang@intel.com>,
"avi" <avi@redhat.com>
Subject: Re: [v2] Shared guest irq support
Date: Wed, 15 Oct 2008 15:11:17 +0800 [thread overview]
Message-ID: <200810151511.18028.sheng@linux.intel.com> (raw)
In-Reply-To: <200810151233.39384.amit.shah@redhat.com>
On Wednesday 15 October 2008 15:03:39 Amit Shah wrote:
> * On Wednesday 15 Oct 2008 08:06:30 Sheng Yang wrote:
> > > > @@ -4115,6 +4116,9 @@ struct kvm *kvm_arch_create_vm(void)
> > > > INIT_LIST_HEAD(&kvm->arch.active_mmu_pages);
> > > > INIT_LIST_HEAD(&kvm->arch.assigned_dev_head);
> > > >
> > > > + /* Reserve bit 0 of irq_sources_bitmap for userspace irq
> > > > source */ + kvm->arch.irq_sources_bitmap = 1;
> > > > +
> >
> > Amit, could you help to use 1 << KVM_USERSPACE_IRQ_SOURCE_ID here, I come
> > to think it's more proper. :)
>
> This is fine; if you think there has to be a change, the change could be
> done in the .h:
>
> - #define KVM_USERSPACE_IRQ_SOURCE_ID 0
> + #define KVM_USERSPACE_IRQ_SOURCE_ID 1 << 0
Well, I think it's a semantics thing... irq_sources_bitmap is a bitmap, it
can't equal to a source_id... So maybe
set_bit(KVM_USERSPACE_IRQ_SOURCE_ID, &kvm->arch.irq_sources_bitmap);
is the best way here. :)
--
regards
Yang, Sheng
next prev parent reply other threads:[~2008-10-15 7:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 8:45 [v2] Shared guest irq support Zhang, Xiantao
2008-10-15 2:36 ` Sheng Yang
2008-10-15 7:03 ` Amit Shah
2008-10-15 7:11 ` Sheng Yang [this message]
2008-10-15 10:03 ` Amit Shah
2008-10-15 10:11 ` Zhang, Xiantao
2008-10-15 13:44 ` Zhang, Xiantao
2008-10-15 13:56 ` Zhang, Xiantao
2008-10-16 8:21 ` Avi Kivity
2008-10-16 8:28 ` Sheng Yang
2008-10-16 8:45 ` Avi Kivity
2008-10-16 8:31 ` Amit Shah
2008-10-16 8:47 ` Avi Kivity
2008-10-15 7:19 ` Amit Shah
[not found] <305032847.30081223883050196.JavaMail.root@zmail02.collab.prod.int.phx2.redhat.com>
2008-10-13 7:31 ` Amit Shah
2008-10-13 7:33 ` Zhang, Xiantao
2008-10-13 7:41 ` Amit Shah
2008-10-13 7:44 ` Zhang, Xiantao
2008-10-13 7:36 ` Sheng Yang
2008-10-14 8:00 ` Amit Shah
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=200810151511.18028.sheng@linux.intel.com \
--to=sheng@linux.intel.com \
--cc=amit.shah@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=xiantao.zhang@intel.com \
/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.