From: Marcelo Tosatti <mtosatti@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: Re: KVM: PIC: enhance IPI avoidance
Date: Wed, 24 Sep 2008 11:40:38 -0300 [thread overview]
Message-ID: <20080924144038.GA5991@dmt.cnet> (raw)
In-Reply-To: <48DA3063.2070402@redhat.com>
On Wed, Sep 24, 2008 at 03:19:47PM +0300, Avi Kivity wrote:
>> Index: kvm/arch/x86/kvm/irq.h
>> ===================================================================
>> --- kvm.orig/arch/x86/kvm/irq.h
>> +++ kvm/arch/x86/kvm/irq.h
>> @@ -42,6 +42,7 @@ struct kvm_kpic_state {
>> u8 irr; /* interrupt request register */
>> u8 imr; /* interrupt mask register */
>> u8 isr; /* interrupt service register */
>> + u8 isr_ack; /* interrupt ack detection */
>> u8 priority_add; /* highest irq priority */
>> u8 irq_base;
>> u8 read_reg_select;
>>
>
> Needs to be cleared by reset
@@ -213,6 +214,7 @@ void kvm_pic_reset(struct kvm_kpic_state
s->irr = 0;
s->imr = 0;
s->isr = 0;
+ s->isr_ack = 0xff;
s->priority_add = 0;
s->irq_base = 0;
s->read_reg_select = 0;
> and by register load from userspace, no?
Isnt that responsability of the guest? Unacked IOAPIC interrupts are not
cleared on register load, are they?
next prev parent reply other threads:[~2008-09-24 14:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-22 16:57 KVM: PIC: enhance IPI avoidance Marcelo Tosatti
2008-09-24 3:05 ` David S. Ahern
2008-09-24 12:19 ` Avi Kivity
2008-09-24 14:40 ` Marcelo Tosatti [this message]
2008-09-24 14:49 ` Avi Kivity
2008-09-24 23:28 ` Marcelo Tosatti
2008-09-25 10:18 ` 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=20080924144038.GA5991@dmt.cnet \
--to=mtosatti@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).