[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix the boot of Linux guest while allocated more than 4G memory


  • To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
  • Date: Fri, 13 Jun 2008 10:46:29 +0800
  • Delivery-date: Thu, 12 Jun 2008 19:47:03 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcjM/66QpnAlbcm3RjG8djqkzCC/5w==
  • Thread-topic: [Xen-devel] [PATCH] Fix the boot of Linux guest while allocated more than 4G memory

Fix the boot of Linux guest if allocated more than 4G memory.
  - The p2m table will track the max_mapped_pfn, and while doing
p2m_gfn_to_mfn(), if the gfn is higher than max_mapped_pfn, the function
will return _mfn(INVALID_MFN). This makes the Linux guest kernel panic
with more than 4G memory. However when the gfn is a super page, the
max_mapped_page should be (gfn + (1UL << page_order) - 1) but not gfn.

Best Regards,
-- Dongxiao

Attachment: super_page_4g.patch
Description: super_page_4g.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.