From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Matias Zabaljauregui" Subject: Lguest Date: Thu, 28 Jun 2007 19:03:39 +0200 Message-ID: <21a166410706281003p79949542t2f90bfe6e2d7bda3@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2115509989373722608==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org --===============2115509989373722608== Content-Type: multipart/alternative; boundary="----=_Part_49122_5755340.1183050219069" ------=_Part_49122_5755340.1183050219069 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Rusty, I'have just started to read the code (and I'm not an expert kernel programmer), but is this condition ok ? (function setup_pagetables(), on file Documentation/lguest.c ) /* Ideally we map all physical memory starting at page_offset. * However, if page_offset is 0xC0000000 we can only map 1G of physical * (0xC0000000 + 1G overflows). */ if (mem > -page_offset) mapped_pages = mem/getpagesize(); else mapped_pages = -page_offset/getpagesize(); Cheers Matias ------=_Part_49122_5755340.1183050219069 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Rusty,

I'have just started to read the code (and I'm not an expert kernel programmer), but is this condition ok ?


(function setup_pagetables(), on file Documentation/lguest.c )

    /* Ideally we map all physical memory starting at page_offset.
     * However, if page_offset is 0xC0000000 we can only map 1G of physical
     * (0xC0000000 + 1G overflows). */

    if (mem > -page_offset)
        mapped_pages = mem/getpagesize();
    else
        mapped_pages = -page_offset/getpagesize();



Cheers

Matias
------=_Part_49122_5755340.1183050219069-- --===============2115509989373722608== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/virtualization --===============2115509989373722608==--