From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 952E0C433DB for ; Fri, 8 Jan 2021 15:33:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E44A239A1 for ; Fri, 8 Jan 2021 15:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbhAHPd3 (ORCPT ); Fri, 8 Jan 2021 10:33:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:57970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbhAHPd3 (ORCPT ); Fri, 8 Jan 2021 10:33:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 32448239A1; Fri, 8 Jan 2021 15:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610119968; bh=BNj+LwN6ztTnbRDsStE7xSDefTF/gAo+MhLjdTD+jco=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wwdaGP4kyqHvt74Pjoe1/piYY1OyUFX8JwLoB4zZO8mRM4EWCzy5/M3IKSIk/ATt2 PUn49bn3jHfdZsbWYG73dyrQndFeodPHTPPS88IlCZuy84cu1wW5kg+AISJKJ/6l5V ReLHRWaqhd+PUNnr0Fk2+Ei9IznNmKRol2CxFjd0= Date: Fri, 8 Jan 2021 16:34:06 +0100 From: Greg Kroah-Hartman To: shuo.a.liu@intel.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Yu Wang , Reinette Chatre , Zhi Wang , Zhenyu Wang Subject: Re: [PATCH v7 08/18] virt: acrn: Introduce EPT mapping management Message-ID: References: <20210106075055.47226-1-shuo.a.liu@intel.com> <20210106075055.47226-9-shuo.a.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210106075055.47226-9-shuo.a.liu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 03:50:45PM +0800, shuo.a.liu@intel.com 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?