From: Marcelo Tosatti <mtosatti@redhat.com>
To: Sheng Yang <sheng@linux.intel.com>
Cc: Avi Kivity <avi@redhat.com>,
kvm@vger.kernel.org, Gleb Natapov <gleb@redhat.com>
Subject: Re: [PATCH 1/1] KVM: Merge kvm_ioapic_get_delivery_bitmask into kvm_get_intr_delivery_bitmask
Date: Wed, 4 Mar 2009 15:30:09 -0300 [thread overview]
Message-ID: <20090304183009.GA28982@amt.cnet> (raw)
In-Reply-To: <1236144782-7458-1-git-send-email-sheng@linux.intel.com>
On Wed, Mar 04, 2009 at 01:33:02PM +0800, Sheng Yang wrote:
> Gleb fixed bitmap ops usage in kvm_ioapic_get_delivery_bitmask.
>
> Sheng merged two functions, as well as fixed several issues in
> kvm_get_intr_delivery_bitmask
> 1. deliver_bitmask is a bitmap rather than a unsigned long intereger.
> 2. Lowest priority target bitmap wrong calculated by mistake.
> 3. Prevent potential NULL reference.
> 4. Declaration in include/kvm_host.h caused powerpc compilation warning.
> 5. Add warning for guest broadcast interrupt with lowest priority delivery mode.
> 6. Removed duplicate bitmap clean up in caller of kvm_get_intr_delivery_bitmask.
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> Signed-off-by: Sheng Yang <sheng@linux.intel.com>
> + bitmap_zero(deliver_bitmask, KVM_MAX_VCPUS);
> +
> + if (entry->fields.dest_mode == 0) { /* Physical mode. */
> + if (entry->fields.dest_id == 0xFF) { /* Broadcast. */
> + /* Lowest priority shouldn't combine with broadcast */
> + WARN_ON(entry->fields.delivery_mode ==
> + IOAPIC_LOWEST_PRIORITY);
Applied with two changes:
- printk(KERN_INFO) with printk_ratelimit instead of WARN.
- bitmap_zero in the irq == 0 case.
Thanks
prev parent reply other threads:[~2009-03-04 18:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 8:19 [PATCH] KVM: Merge kvm_ioapic_get_delivery_bitmask into kvm_get_intr_delivery_bitmask Sheng Yang
2009-03-03 11:20 ` Marcelo Tosatti
2009-03-04 2:41 ` Sheng Yang
2009-03-04 2:55 ` Marcelo Tosatti
2009-03-04 2:59 ` Sheng Yang
2009-03-04 5:33 ` [PATCH 1/1] " Sheng Yang
2009-03-04 18:30 ` Marcelo Tosatti [this message]
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=20090304183009.GA28982@amt.cnet \
--to=mtosatti@redhat.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=sheng@linux.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.