zoukankan      html  css  js  c++  java
  • QEMU内存分析(三):内存分派

    PS:  具体内容待分析,尚不十分清楚

    关键结构体 :

    /**
     * MemoryRegionSection: describes a fragment of a #MemoryRegion
     *
     * @mr: the region, or %NULL if empty
     * @fv: the flat view of the address space the region is mapped in
     * @offset_within_region: the beginning of the section, relative to @mr's start
     * @size: the size of the section; will not exceed @mr's boundaries
     * @offset_within_address_space: the address of the first byte of the section
     *     relative to the region's address space
     * @readonly: writes to this section are ignored
     */
    struct MemoryRegionSection {
        MemoryRegion *mr;
        FlatView *fv;
        hwaddr offset_within_region;
        Int128 size;
        hwaddr offset_within_address_space;
        bool readonly;
    };
    struct AddressSpaceDispatch {
        MemoryRegionSection *mru_section;
        /* This is a multi-level map on the physical address space.
         * The bottom level has pointers to MemoryRegionSections.
         */
        PhysPageEntry phys_map;
        PhysPageMap map;
    };
  • 相关阅读:
    字符串练习题
    算法题
    readLine()
    grep家族
    java_IO
    集合框架
    常用类
    异常
    Mysql 图形工具 Navicat
    Mysql内置功能《一》流程控制
  • 原文地址:https://www.cnblogs.com/edver/p/14470721.html
Copyright © 2011-2022 走看看