Lguest

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

 



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
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization

[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux