From: David Vrabel Subject: [PATCHv6 3/3] x86: reduce struct hvm_domain size Date: Thu, 14 May 2015 12:21:42 +0100 Message-ID: <1431602502-22327-4-git-send-email-david.vrabel@citrix.com> References: <1431602502-22327-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YsrDA-0004QD-As for xen-devel@lists.xenproject.org; Thu, 14 May 2015 11:21:56 +0000 In-Reply-To: <1431602502-22327-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Andrew Cooper , Tim Deegan , David Vrabel , Jan Beulich , Jennifer Herbert List-Id: xen-devel@lists.xenproject.org Pack struct hvm_domain to reduce it by 8 bytes. Thus reducing the size of struct domain by 8 bytes. Signed-off-by: David Vrabel --- xen/include/asm-x86/hvm/domain.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/include/asm-x86/hvm/domain.h b/xen/include/asm-x86/hvm/domain.h index 0f8b19a..fb30903 100644 --- a/xen/include/asm-x86/hvm/domain.h +++ b/xen/include/asm-x86/hvm/domain.h @@ -115,12 +115,6 @@ struct hvm_domain { /* VRAM dirty support. Protect with the domain paging lock. */ struct sh_dirty_vram *dirty_vram; - /* If one of vcpus of this domain is in no_fill_mode or - * mtrr/pat between vcpus is not the same, set is_in_uc_mode - */ - spinlock_t uc_lock; - bool_t is_in_uc_mode; - /* Pass-through */ struct hvm_iommu hvm_iommu; @@ -135,6 +129,12 @@ struct hvm_domain { bool_t qemu_mapcache_invalidate; bool_t is_s3_suspended; + /* If one of vcpus of this domain is in no_fill_mode or + * mtrr/pat between vcpus is not the same, set is_in_uc_mode + */ + bool_t is_in_uc_mode; + spinlock_t uc_lock; + /* * TSC value that VCPUs use to calculate their tsc_offset value. * Used during initialization and save/restore. -- 1.7.10.4