Home
last modified time | relevance | path

Searched refs:memslot_offset (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-our_range_memslots.c62 uint64_t memslot_offset; in our_range_memslots_init_slots() local
69 for (idx = 0, memslot_offset = 0; idx < memslots->count; in our_range_memslots_init_slots()
70 idx++, memslot_offset += memslots->size_each) { in our_range_memslots_init_slots()
80 memslot_size = region_size - memslot_offset; in our_range_memslots_init_slots()
87 backing_mr, memslot_offset, memslot_size); in our_range_memslots_init_slots()
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c495 const uint64_t memslot_offset = idx * vmem->memslot_size; in virtio_mem_activate_memslot() local
507 memory_region_add_subregion(vmem->mr, memslot_offset, &vmem->memslots[idx]); in virtio_mem_activate_memslot()
553 const uint64_t memslot_offset = idx * vmem->memslot_size; in virtio_mem_deactivate_unplugged_memslots() local
558 memslot_size = region_size - memslot_offset; in virtio_mem_deactivate_unplugged_memslots()
565 if (offset > memslot_offset || in virtio_mem_deactivate_unplugged_memslots()
566 offset + size < memslot_offset + memslot_size) { in virtio_mem_deactivate_unplugged_memslots()
567 const uint64_t gpa = vmem->addr + memslot_offset; in virtio_mem_deactivate_unplugged_memslots()
931 const uint64_t memslot_offset = idx * vmem->memslot_size; in virtio_mem_prepare_memslots() local
937 memslot_size = region_size - memslot_offset; in virtio_mem_prepare_memslots()
942 &vmem->memdev->mr, memslot_offset, in virtio_mem_prepare_memslots()