From: George Dunlap Subject: [PATCH] Assert that the p2m lock is held in ept_sync_domain Date: Tue, 22 Sep 2009 13:44:54 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0015174785f212f23e047429f7b0 Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xiaohui Xin , Xin Li , Tim Deegan , Jan Beulich , Paul Durrant , Jun Nakajima , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --0015174785f212f23e047429f7b0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Signed-off-by: George Dunlap On Tue, Sep 22, 2009 at 10:17 AM, Keir Fraser w= rote: > On 22/09/2009 10:02, "Jan Beulich" wrote: > >>> Please see what you think of xen-unstable:20244. >> >> With no assertion in ept_sync_domain() on any locks held, is it guarante= ed >> that the function cannot be entered twice at the same time for a given >> guest? If not, passing a pointer to the new ept_synced member isn't any >> better than passing the one to domain_dirty_cpumask. > > I assume George is knowledgeable on that area. If calls to ept_sync_domai= n() > are not serialised then I think synchronisation around the > ept_needs_flush/ept_synced cpumask is indeed pretty suspect. If there isn= 't > such a serialising lock, we could add one to ept_sync_domain() quite safe= ly. > > =A0-- Keir > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --0015174785f212f23e047429f7b0 Content-Type: text/x-diff; charset=US-ASCII; name="assert-p2m-locked-in-ept-sync-domain.diff" Content-Disposition: attachment; filename="assert-p2m-locked-in-ept-sync-domain.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fzwkhiz00 ZGlmZiAtciA1MDk0OTgwZjllMTYgeGVuL2FyY2gveDg2L2h2bS92bXgvdm14LmMKLS0tIGEveGVu L2FyY2gveDg2L2h2bS92bXgvdm14LmMJVHVlIFNlcCAyMiAwOToxODoyNSAyMDA5ICswMTAwCisr KyBiL3hlbi9hcmNoL3g4Ni9odm0vdm14L3ZteC5jCVR1ZSBTZXAgMjIgMTI6MzI6NDggMjAwOSAr MDEwMApAQCAtMTIzMyw2ICsxMjMzLDcgQEAKICAgICAgICAgcmV0dXJuOwogCiAgICAgQVNTRVJU KGxvY2FsX2lycV9pc19lbmFibGVkKCkpOworICAgIEFTU0VSVChwMm1fbG9ja2VkX2J5X21lKGQt PmFyY2gucDJtKSk7CiAKICAgICAvKgogICAgICAqIEZsdXNoIGFjdGl2ZSBjcHVzIHN5bmNocm9u b3VzbHkuIEZsdXNoIG90aGVycyB0aGUgbmV4dCB0aW1lIHRoaXMgZG9tYWluCg== --0015174785f212f23e047429f7b0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --0015174785f212f23e047429f7b0--