Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50014 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbcDKXXs (ORCPT ); Mon, 11 Apr 2016 19:23:48 -0400 Message-ID: <1460417015.25201.67.camel@decadent.org.uk> Subject: Re: [PATCH 4.5 007/238] KVM: i8254: change PIT discard tick policy From: Ben Hutchings To: Radim =?UTF-8?Q?Kr=C4=8Dm=C3=A1=C5=99?= , Greg Kroah-Hartman Cc: Yuki Shibuya , Paolo Bonzini , stable Date: Tue, 12 Apr 2016 00:23:35 +0100 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-HD8Nrrg1L1pbTuP8cS9L" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-HD8Nrrg1L1pbTuP8cS9L Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2016-03-02 at 22:56 +0100, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > From: Radim Kr=C4=8Dm=C3=A1=C5=99 >=20 > commit 7dd0fdff145c5be7146d0ac06732ae3613412ac1 upstream. >=20 > Discard policy uses ack_notifiers to prevent injection of PIT interrupts > before EOI from the last one. >=20 > This patch changes the policy to always try to deliver the interrupt, > which makes a difference when its vector is in ISR. > Old implementation would drop the interrupt, but proposed one injects to > IRR, like real hardware would. >=20 > The old policy breaks legacy NMI watchdogs, where PIT is used through > virtual wire (LVT0): PIT never sends an interrupt before receiving EOI, > thus a guest deadlock with disabled interrupts will stop NMIs. >=20 > Note that NMI doesn't do EOI, so PIT also had to send a normal interrupt > through IOAPIC.=C2=A0=C2=A0(KVM's PIT is deeply rotten and luckily not us= ed much > in modern systems.) >=20 > Even though there is a chance of regressions, I think we can fix the > LVT0 NMI bug without introducing a new tick policy. [...] Given the 'chance of regressions', should we let this sit in mainline longer before including it in stable updates? Ben. --=20 Ben Hutchings This sentence contradicts itself - no actually it doesn't. --=-HD8Nrrg1L1pbTuP8cS9L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXDDH3AAoJEOe/yOyVhhEJaKYP/ipm/1qUfkpYeH+hB0hjXKaE QbgeNFY2SQ5XaFaU3kaUR9817OL6jwKB65AE4Vdgc9MeobAeD73+LdphE+WnRmpx 5OFp1zD++5shak+XlnnopfQ05OEY85VtjWdWY0NzksWAqSRtMPiPk2Kr5n7Sffc3 W96qrbbR2YwGLxs5mxli5uoyJyUapg2//SALzpGofyWaXT1wYv+hn9OLWA5Ffgn5 3mO8War2HAwZMaLolC5hMeKd9cvYBIyQp/9xjySfeHuYZUkit7ZH8p7Ofe7gqbe5 r3aRMHKjqvAslyJg3Z7LHpZOGj8uOmWEb+muvIUvyWSzIqSi8K8eA09Z0ySJDUBP sjWYvxSdDdUnvVa0idJAPMINKiiUZqMep9w5bMm1c3uhOGZ0ojgQ/a6f+SXEeC5x nanuG0sGWfbp6Ful5PbEn2wqYls7UjfeZYMqvjIU5cKvpYx34Mmt1C9tEUKv2OyQ ky/epspHtLRG9bwcEM+4ZUWPQ+WKa+oTzhxT3MK6rdjPxT3YrLtyIpv0gSsQsnxH 7HYyTa+FUDwdld/rGA3Y8Gt8TNG0CJj7LzhXxd0YmnZYLYhBUP+T2CtKdORGKTK8 rAXOgJg+kDn5EDS/ZXpazxmyhxWXKwvp7g4iRapmHcBwk42s0j/2KT5goVSJdczU aQtNCychZteaT6tZ4a1f =tlE4 -----END PGP SIGNATURE----- --=-HD8Nrrg1L1pbTuP8cS9L--