From: "Bryan D. Payne" Subject: [PATCH] libxc foreign address translation bug Date: Thu, 1 May 2008 20:03:01 -0400 Message-ID: <64bddf0e0805011703x694909b1x2003fa366fa7bc04@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_12742_17043824.1209686581988" 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 List-Id: xen-devel@lists.xenproject.org ------=_Part_12742_17043824.1209686581988 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline In the xc_translate_foreign_address function from libxc, there is a check on the page directory entry to see if the page is 4K or 4M. However, the check is looking at bit 3, when it should be looking at bit 7. This patch fixes the problem. Signed-off-by: Bryan D. Payne ------=_Part_12742_17043824.1209686581988 Content-Type: application/octet-stream; name=bdpayne-pagesize.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_ffq050ex0 Content-Disposition: attachment; filename=bdpayne-pagesize.patch LS0tCiB0b29scy9saWJ4Yy94Y19wYWdldGFiLmMgfCAgICAyICstCiAxIGZpbGUgY2hhbmdlZCwg MSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24oLSkKCkluZGV4OiB4ZW4tdW5zdGFibGUuaGcvdG9v bHMvbGlieGMveGNfcGFnZXRhYi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHhlbi11bnN0YWJsZS5oZy5vcmln L3Rvb2xzL2xpYnhjL3hjX3BhZ2V0YWIuYworKysgeGVuLXVuc3RhYmxlLmhnL3Rvb2xzL2xpYnhj L3hjX3BhZ2V0YWIuYwpAQCAtMTQxLDcgKzE0MSw3IEBAIHVuc2lnbmVkIGxvbmcgeGNfdHJhbnNs YXRlX2ZvcmVpZ25fYWRkcmUKIAogICAgIC8qIFBhZ2UgVGFibGUgKi8KIAotICAgIGlmIChwZGUg JiAweDAwMDAwMDA4KSB7IC8qIDRNIHBhZ2UgKG9yIDJNIGluIFBBRSBtb2RlKSAqLworICAgIGlm IChwZGUgJiAweDAwMDAwMDgwKSB7IC8qIDRNIHBhZ2UgKG9yIDJNIGluIFBBRSBtb2RlKSAqLwog ICAgICAgICBEUFJJTlRGKCJDYW5ub3QgY3VycmVudGx5IGNvcGUgd2l0aCAyLzRNIHBhZ2VzXG4i KTsKICAgICAgICAgZXhpdCgtMSk7CiAgICAgfSBlbHNlIHsgLyogNGsgcGFnZSAqLwo= ------=_Part_12742_17043824.1209686581988 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 ------=_Part_12742_17043824.1209686581988--