Received: from eggs.gnu.org ([2001:4830:134:3::10]:57094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk2oO-0004Cd-8P for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:32:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk2oL-0002vI-22 for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:32:44 -0400 Date: Wed, 14 Sep 2016 15:18:19 +1000 From: David Gibson Message-ID: <20160914051819.GK15077@voom.fritz.box> References: <1473659314-11813-1-git-send-email-nikunj@linux.vnet.ibm.com> <1473659314-11813-3-git-send-email-nikunj@linux.vnet.ibm.com> <20160914030941.GE15077@voom.fritz.box> <87twdj2l3y.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> <1473827823.8689.329.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6K2R/cS9K4qvcBNq" Content-Disposition: inline In-Reply-To: <1473827823.8689.329.camel@kernel.crashing.org> Subject: Re: [Qemu-devel] [PATCH v3 2/3] target-ppc: add flag in chech_tlb_flush() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: Nikunj A Dadhania , qemu-ppc@nongnu.org, alex.bennee@linaro.org, qemu-devel@nongnu.org, rth@twiddle.net --6K2R/cS9K4qvcBNq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 14, 2016 at 02:37:03PM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2016-09-14 at 09:23 +0530, Nikunj A Dadhania wrote: >=20 > Hr... this is confusing, let me rephrase ;-) >=20 > > Due to lazy tlb flushes, propagation of the tlb flush is delayed. > Moreover, certain operations need to do broadcast flush, this too can > be > > delayed until we hit the operation that warrant a broadcast. >=20 > Instead: >=20 > We flush the qemu TLB lazily. check_tlb_flush is called whenever we > hit a context synchronizing event or instruction that requires a pending > flush to be performed. >=20 > However, we fail to handle broadcast TLB flush operations. In order > to fix that efficiently, we want to differenciate whether check_tlb_flush= () > needs to only apply pending local flushes (isync instructions, > interrupts, ...) or also global pending flush operations. The latter > is only needed when executing instructions that are defined architectural= ly > as synchronizing global TLB flush operations. This in our case is ptesync > on BookS and tlbsync on BookE along with the paravirtualized hypervisor > calls. Nice. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --6K2R/cS9K4qvcBNq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJX2N2bAAoJEGw4ysog2bOSC0EP/jWUJ2cV0BPsNK/Je8gppw9Y BQ1YqrLmu+fS8I6Rudqgj+xd375ZCtp0AWz+eytWPOW2kCxN3nhQuNCcQ/RSEEkV grn0dwfk2tzfQJLhVjPeM5UWirXKPdxGeXYtXlXxvaEkEotn6CJROgvi4O4apX1Y X5N/O22m49IhQ8/1mAlsLWGn/KjUscfwpMOMTxvPR4CBrg1QmXLIH/1rjmj6q+7B gv3o25dHn5p2f0p3r3Ft3SvB6t+yWBDjVGZcZGGGwWl7ho2MxY2HTRuIJmMi8D1T vtJkm/VddB4Jz5WSh5PkSKlKqiAczLF2X/mmttmMu5GewEMcxRt7d6/907cyUX/M j/3uP8eK23QqReYG07dAEvWvSOM0JQLc0eV5J65CcSKGadg/2jS012zvMIU9Yzqi zRxykbpPj4WJ7Vc9de4aaGgNqUY0VP67HMHqOtO0Apyq5Q8Oy20PuzFQoqWzdB02 6ReqwJA66r4BDY0iFW2HVZN9XFEOWdRdSt81hqx9ItmOpkC7vODUWZknYrZHfvYT GWHCyZ289XEU+sabBt/e9yrUpyf0mX3v5CPA9rpi7iIgXGrYD6jwmJcTVLZPLK4T fWSeaG/DGV7QNxY8ziyqKrjG4JlUd0CQn3jtU5CAIFbUl6Ciz1a0RSd/nViy15/n nfo+eYJc2c/nPU1iOHMQ =N91n -----END PGP SIGNATURE----- --6K2R/cS9K4qvcBNq--