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;
    };
  • 相关阅读:
    C++中的静态数据成员的作用与好处
    C++中的虚函数表
    CF292-D
    CF292-C
    CF292-B
    CF292-A
    CF291-B
    CF291-C
    CF287-B
    CF287-C
  • 原文地址:https://www.cnblogs.com/edver/p/14470721.html
Copyright © 2011-2022 走看看