Re: [PATCH v7 08/18] virt: acrn: Introduce EPT mapping management

From: Greg Kroah-Hartman
Date: Fri Jan 08 2021 - 10:33:46 EST


On Wed, Jan 06, 2021 at 03:50:45PM +0800, shuo.a.liu@xxxxxxxxx wrote:
> +/**
> + * struct acrn_vm_memmap - A EPT memory mapping info for a User VM.
> + * @type: Type of the memory mapping (ACRM_MEMMAP_*).
> + * Pass to hypervisor directly.
> + * @attr: Attribute of the memory mapping.
> + * Pass to hypervisor directly.
> + * @user_vm_pa: Physical address of User VM.
> + * Pass to hypervisor directly.
> + * @service_vm_pa: Physical address of Service VM.
> + * Pass to hypervisor directly.
> + * @vma_base: VMA address of Service VM. Pass to hypervisor directly.
> + * @len: Length of the memory mapping.
> + * Pass to hypervisor directly.
> + */
> +struct acrn_vm_memmap {
> + __u32 type;
> + __u32 attr;
> + __u64 user_vm_pa;
> + union {
> + __u64 service_vm_pa;
> + __u64 vma_base;
> + };
> + __u64 len;
> +};

Endianness?