From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [Help] Trigger Watchdog when adding an IPI in vcpu_wake Date: Thu, 22 Sep 2016 11:55:16 +0200 Message-ID: <1474538116.4393.371.camel@citrix.com> References: <20160913085437.GA14514@linux-gk3p> <1473766217.6339.103.camel@citrix.com> <20160914104417.GA25572@linux-gk3p> <20160917033051.GA16347@vultr.guest> <1474535535.4393.339.camel@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3414167090606441278==" Return-path: In-Reply-To: <1474535535.4393.339.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Wei Yang , Wei Yang Cc: george.dunlap@eu.citrix.com, xuquan8@huawei.com, mengxu@cis.upenn.edu, liuxiaojian6@huawei.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============3414167090606441278== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-Y6WbwejEtUpalpDSWmnK" --=-Y6WbwejEtUpalpDSWmnK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-09-22 at 11:12 +0200, Dario Faggioli wrote: > _Almost_ correct. However, the problem is more that vcpu_wake() can > happen in response to an IRQ, and when you grab a spinlock in IRQ > context, you need to disable IRQs. >=20 > There is a good explanation of why, here: >=20 Ah, sorry, link is missing! Here: https://www.kernel.org/doc/Documentation/locking/spinlocks.txt Read the "Lesson 3: spinlocks revisited." section. Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-Y6WbwejEtUpalpDSWmnK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJX46qEAAoJEBZCeImluHPu9+QQAKAiE+kP2kj6C9vSoEC6lAaS ikbbm584tPt6XlzST27mDPvToGphtTFNEnP2sKuniJp27pmLfbAtH+WeYGds8bWb KS7w07hjfKhNfkfvgQdBW7G0LzVsCG9yrTU3u6K4RvGYp7QD580Z4oN5/LNRUow0 Ft39xms6v5vFAjVrMacqSIw9ohtlaPxJSswRIcddziWRaA8sLqeHGFU89Oo8Xaaf 518wThRg7yGC4qQohFFEjuX1HkdkXMsbPL5kXBu2BOx7YhsO49kNXGgb73dlpYOt rx2vsZC+LGwbfSHWBBNtabu4ovHBPq37Zr5ViY9V+NJpvbKlPocigopsj7IBzESn Sn5jBmRcrS/kwvnnoMU7YIWl4UUhl8BlOpy4EtvtPd0LjP6k2sUCBKIFi3E+kJPx ODPh2VBWAjaB2ih79SO3aVXnuPDHyPBMIpzUmuM3p2QpCPOerVUXmKgu1W0zGRK3 phphSE0Zl5xHasNK10d5M2ATX5V9icr+cCF3uNJVEuVsW7vQiv/1plSmU3GxVR/z SDBEX3mKTMjmny5LdO7lUynYyjb2mYICM2M11Vqe5UEP5m4IY9Alyf4xpXLFpnOZ LtaCTn5iQlJdUgH2tKBOTStc9MMU3iybpPq/ft5kYw5I9zrUlL97pnRiF2Iflz7z pRFHrSSOaYYHfd45hcx+ =H2h7 -----END PGP SIGNATURE----- --=-Y6WbwejEtUpalpDSWmnK-- --===============3414167090606441278== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============3414167090606441278==--