STRUCT VM_MEMORY_REGION_OP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct vm_memory_region_op(9) β€” literally the hypervisor memory operation moment πŸ’…. The official one-liner is:

struct vm_memory_region_op β€” Hypervisor memory operation ✨

✨ SYNOPSIS ✨

       struct vm_memory_region_op {
           u32 type;
           u32 attr;
           u64 user_vm_pa;
           u64 service_vm_pa;
           u64 size;
        };

🫢 Members 🫢

  • type β€” Operation type (ACRN_MEM_REGION_*) β€” the β€œwhat kind of op are we doing” label πŸ‘‘.
  • attr β€” Memory attribute (ACRN_MEM_TYPE_* | ACRN_MEM_ACCESS_*) β€” the memory’s whole vibe and access-permission sitch πŸŽ€.
  • user_vm_pa β€” Physical address of User VM to be mapped πŸ“.
  • service_vm_pa β€” Physical address of Service VM to be mapped πŸ“.
  • size β€” Size of this region πŸ“.

🌈 Description 🌈

This struct is the info packet you hand to the ACRN Hypervisor so it can manage the EPT mappings of a single memory region of the User VM 🧚. It contains the needed information, no cap. Several struct vm_memory_region_op can be batched to ACRN Hypervisor β€” see struct vm_memory_region_batch πŸ¦‹.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/virt/acrn/acrn_drv.h, struct vm_memory_region_batch(9) πŸ‘€
  • struct vm_memory_mapping(9)
  • struct acrn_ioreq_buffer(9)
  • struct acrn_ioreq_client(9)
  • struct acrn_vm(9)

mwah πŸ’‹ β€” sourced from ./drivers/virt/acrn, dated October 2026, all about struct vm_memory_region_op(9) ✨

πŸ“¦ where this page comes from