Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp392029pxb; Fri, 8 Jan 2021 07:37:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4CFGiMil9ar0HnZC+bguVurKpcqosCkCS2ckFbtt8lWF8wyJD8IApf3g1hPq5qvJ2DZle X-Received: by 2002:a17:907:3d90:: with SMTP id he16mr3152568ejc.235.1610120253866; Fri, 08 Jan 2021 07:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610120253; cv=none; d=google.com; s=arc-20160816; b=0013Es/a1rOgBxrEyamHlifMsNC7C9MPaW38dxe8VFtPMYzevp9lmJG1JGG9hETpPS iHNf2r+dTGet4WyKArD00kNXJPfqO1UqfljoSf1Y6TAiQku2GdMmvYG09dIQZZOhbl/3 Bsn4loy9cGYgvHF7JChHTH98nbTrne3V9Q3ZJLUApND7UTmIooG1pFn3ro4bLsTIv8jI 8+ZhZaPtpLA2wyHcyYiABq6ucUEAl9noSlA1FaSPhgrGKRTnzX4LgPlmhLHGkPprRDFq tODBrZlDW9ZXykXuOZgQ+/iTm7XsqqfpL3GZCL1e2h3zfhkCFdYShx891Djg3f2kUWYT 9kgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iifM8L23FgCUrYkOSXhFYuFXFL7DUoF8QYTmdtS5nrA=; b=X6pYq69vrT66h/yNvUunkFJH0fviqVLXKIYluZqA5whZw/3YbV5CFXiQId4agIk8+I ARd+lvwBc2pBAFceRu4sFg0Hnm4t63o1P1V3lYp7MPEBvIAKu7hjQQf2X3HPWYJaxuHd cpTgMn0N5gNTMHGLnBZhVN+6oeyDAnehIdvnjMOzhwX6COFMt6yrxYkqMKZmlliXkXwY o9+Iqli8v0eKgKCWQtPoPbF5umYWslbZ58KhBmvpPwvHULYu1FlPExAmAo4WqozueLPn 9BmxP6EG3d7fVzxOoVGxJlMM/CVfWxgRXp3Mf3lUy3GzfoLAL3hKwCVRjcRC/CHlBgqI Pgkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wwdaGP4k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si3593077ejg.642.2021.01.08.07.37.10; Fri, 08 Jan 2021 07:37:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wwdaGP4k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbhAHPd3 (ORCPT + 99 others); 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?