From: George Dunlap Subject: [PATCH] EPT: Only sync pcpus on which a domain's vcpus might be running Date: Thu, 17 Sep 2009 18:51:56 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000325556ed6ede1e20473c9ab9a 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: xen-devel@lists.xensource.com, Keir Fraser , Tim Deegan , Xin Li , Jun Nakajima , Xiaohu List-Id: xen-devel@lists.xenproject.org --000325556ed6ede1e20473c9ab9a Content-Type: text/plain; charset=ISO-8859-1 ept_sync_domain() is called whenever the p2m changes. The current code calls sync on all cpus; this is extremely wasteful, especially for a single-vcpu VM on a 16-way (2x4x2) box. This patch will only call sync on cpus where there may be dirty cpu state. I've done a basic test, but I'd appreciate someone from Intel verifying that there shouldn't be any problems. Signed-off-by: George Dunlap --000325556ed6ede1e20473c9ab9a Content-Type: text/x-diff; charset=US-ASCII; name="20090917-unstable-ept-sync.diff" Content-Disposition: attachment; filename="20090917-unstable-ept-sync.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fzpstach0 ZGlmZiAtciAwODE0ZDU3YjVhMjkgeGVuL2FyY2gveDg2L2h2bS92bXgvdm14LmMKLS0tIGEveGVu L2FyY2gveDg2L2h2bS92bXgvdm14LmMJVHVlIFNlcCAxNSAxMToxMzo1NiAyMDA5ICswMTAwCisr KyBiL3hlbi9hcmNoL3g4Ni9odm0vdm14L3ZteC5jCVRodSBTZXAgMTcgMTg6NTE6MzAgMjAwOSAr MDEwMApAQCAtMTIxOSw3ICsxMjE5LDcgQEAKICAgICBpZiAoIGQtPmFyY2guaHZtX2RvbWFpbi5o YXBfZW5hYmxlZCAmJiBkLT52Y3B1ICYmIGQtPnZjcHVbMF0gKQogICAgIHsKICAgICAgICAgQVNT RVJUKGxvY2FsX2lycV9pc19lbmFibGVkKCkpOwotICAgICAgICBvbl9lYWNoX2NwdShfX2VwdF9z eW5jX2RvbWFpbiwgZCwgMSk7CisgICAgICAgIG9uX3NlbGVjdGVkX2NwdXMoJmQtPmRvbWFpbl9k aXJ0eV9jcHVtYXNrLCBfX2VwdF9zeW5jX2RvbWFpbiwgZCwgMSk7CiAgICAgfQogfQogCg== --000325556ed6ede1e20473c9ab9a 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 --000325556ed6ede1e20473c9ab9a--