From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] x86/vioapic: clear remote IRR when switching RTE to edge triggered mode Date: Mon, 21 Nov 2011 08:39:27 +0000 Message-ID: References: <4ECA1A510200007800062090@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4ECA1A510200007800062090@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/11/2011 08:30, "Jan Beulich" wrote: >>>> On 21.11.11 at 09:25, Keir Fraser wrote: >> On 21/11/2011 08:17, "Jan Beulich" wrote: >> >>> Xen itself (as much as Linux) relies on this behavior, so it should >>> also emulate it properly. Not doing so reportedly gets in the way of >>> kexec inside a HVM guest. >>> >>> Signed-off-by: Jan Beulich >>> Tested-by: Olaf Hering >> >> Acked-by: Keir Fraser > > Committed. Could that also be added to the older maintained trees, > please (once it made it though stage testing)? Will do. I think we're still having test problems, possibly another regression from Jean's patch series. > Thanks, Jan > >>> --- a/xen/arch/x86/hvm/vioapic.c >>> +++ b/xen/arch/x86/hvm/vioapic.c >>> @@ -154,8 +154,9 @@ static void vioapic_write_redirent( >>> { >>> vlapic_adjust_i8259_target(d); >>> } >>> - else if ( (ent.fields.trig_mode == VIOAPIC_LEVEL_TRIG) && >>> - !ent.fields.mask && >>> + else if ( ent.fields.trig_mode == VIOAPIC_EDGE_TRIG ) >>> + pent->fields.remote_irr = 0; >>> + else if ( !ent.fields.mask && >>> !ent.fields.remote_irr && >>> hvm_irq->gsi_assert_count[idx] ) >>> { >>> >>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel > > >