|
gem5 [DEVELOP-FOR-25.0]
|
A single entry for the backing store. More...
#include <physical.hh>
Public Member Functions | |
| BackingStoreEntry (AddrRange range, uint8_t *pmem, bool conf_table_reported, bool in_addr_map, bool kvm_map, int shm_fd=-1, off_t shm_offset=0) | |
| Create a backing store entry. | |
Public Attributes | |
| AddrRange | range |
| The address range covered in the guest. | |
| uint8_t * | pmem |
| Pointer to the host memory this range maps to. | |
| bool | confTableReported |
| Whether this memory should be reported to the configuration table. | |
| bool | inAddrMap |
| Whether this memory should appear in the global address map. | |
| bool | kvmMap |
| Whether KVM should map this memory into the guest address space during acceleration. | |
| int | shmFd |
| If this backing store is based on a shared memory, this is the fd to the shared memory. | |
| off_t | shmOffset |
| If this backing store is based on a shared memory, this is the offset of this backing store in the share memory. | |
A single entry for the backing store.
Definition at line 64 of file physical.hh.
|
inline |
Create a backing store entry.
Don't worry about managing the memory pointers, because PhysicalMemory is responsible for that.
Definition at line 72 of file physical.hh.
References confTableReported, inAddrMap, kvmMap, pmem, range, shmFd, and shmOffset.
| bool gem5::memory::BackingStoreEntry::confTableReported |
Whether this memory should be reported to the configuration table.
Definition at line 94 of file physical.hh.
Referenced by BackingStoreEntry().
| bool gem5::memory::BackingStoreEntry::inAddrMap |
Whether this memory should appear in the global address map.
Definition at line 99 of file physical.hh.
Referenced by BackingStoreEntry().
| bool gem5::memory::BackingStoreEntry::kvmMap |
Whether KVM should map this memory into the guest address space during acceleration.
Definition at line 105 of file physical.hh.
Referenced by BackingStoreEntry().
| uint8_t* gem5::memory::BackingStoreEntry::pmem |
Pointer to the host memory this range maps to.
This memory is the same size as the range field.
Definition at line 89 of file physical.hh.
Referenced by BackingStoreEntry().
| AddrRange gem5::memory::BackingStoreEntry::range |
The address range covered in the guest.
Definition at line 83 of file physical.hh.
Referenced by BackingStoreEntry().
| int gem5::memory::BackingStoreEntry::shmFd |
If this backing store is based on a shared memory, this is the fd to the shared memory.
Otherwise, it should be -1.
Definition at line 111 of file physical.hh.
Referenced by BackingStoreEntry().
| off_t gem5::memory::BackingStoreEntry::shmOffset |
If this backing store is based on a shared memory, this is the offset of this backing store in the share memory.
Otherwise, the value is 0.
Definition at line 117 of file physical.hh.
Referenced by BackingStoreEntry().