From nobody Sat Apr 27 00:53:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1584545560; cv=none; d=zohomail.com; s=zohoarc; b=SPZ3IfTAoxkALM1M0rZknMcoMuWcoghlJ2yPvpSXjVcrNpWyOvG79hcUhBufLv1dDgffMjQyOgx4+xbtjZszpFelztXbM3vfU/i3FoT7xTzHNGjxuWiota6thT6fHgI3uG9UAqwKxw6cQ5+TRkIxptuibwpd/8P7Yxkg+qcv8vY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584545560; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=x5SwD2IWPjfuoTMu6ACSvBqIus7yf5iImdOQM3CAOo8=; b=daFmAB+m9gk9kGdIYV5w+NtAfCEu9HR82TL3uaizvJztcfpBvtA3z5nBXDWPpRrls+D1/TRLq/dvhEzwcmRXhrvjs63tXcm7l+P8+q+lhJ+ZhSHExjGUI/NkzSxN2z8Uur+kLWwnE2XJU/laKqz0PWmrIwvRP+RguPSScxLIl1I= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1584545560382780.111935131957; Wed, 18 Mar 2020 08:32:40 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jEaf1-0004D5-Lm; Wed, 18 Mar 2020 15:31:11 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jEaf0-0004D0-Mg for xen-devel@lists.xenproject.org; Wed, 18 Mar 2020 15:31:10 +0000 Received: from mail-io1-f65.google.com (unknown [209.85.166.65]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7e2cfed8-692d-11ea-a6c1-bc764e2007e4; Wed, 18 Mar 2020 15:31:10 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id w7so9965210ioj.12 for ; Wed, 18 Mar 2020 08:31:10 -0700 (PDT) Received: from t0.lan (c-71-205-12-124.hsd1.co.comcast.net. [71.205.12.124]) by smtp.googlemail.com with ESMTPSA id t12sm2768458ilf.60.2020.03.18.08.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 08:31:08 -0700 (PDT) X-Inumbo-ID: 7e2cfed8-692d-11ea-a6c1-bc764e2007e4 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/76UvJy6OeIKDYTXb/6xD3lANvZvEuCLiJyx9INQAWg=; b=YMc84eD+2vCLLgNMO9mYiaVLsB8bh05G9f9f+g6A9/bP+JNfdjvpv2XUdIdzpdO6+p n+Sd59Z/psR/LOmpr9FVfV04s2MKuySGPV4uxBUyzh3yPebYbclApvo4dgYV2eNnsnvW fjG++8pdP8yb1kD3MBVZsEueAFcNcE+F9cf4tNxU9MYSChPAG4YtUR8BzP1iyPbXkO0A Ss2gMnk2WM/tlVzQcDkiQcSfHeNWuAYBVX4pOpGanb3Tsd5R4e+s+xngBT4cEDG9Mo9j McRsbgZy0Ca15aGyhJUUd/ZkYZP3eH3Ww8wI0MtbSMP99DfjRV6xfzQTBNbV+k1qW8S5 athw== X-Gm-Message-State: ANhLgQ3JUArpF2UW9V5+MaGuwL8WlGojvMD3lhAUheANBcNWijSlw6TN +Teng38+XuYE0ch2NlnTdKdVx1ssnNM= X-Google-Smtp-Source: ADFU+vu9Hemq9tVyVpnrHa9BSC6b+aKU2KQcunQK2jdU5FE3MXDHD4pNttFKElKDq7vcvnaNTUDEPw== X-Received: by 2002:a6b:3b50:: with SMTP id i77mr4293266ioa.145.1584545469304; Wed, 18 Mar 2020 08:31:09 -0700 (PDT) From: Tamas K Lengyel To: xen-devel@lists.xenproject.org Date: Wed, 18 Mar 2020 09:31:06 -0600 Message-Id: <20200318153106.118281-1-tamas@tklengyel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/mem_sharing: move mem_sharing_domain declaration X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Tamas K Lengyel , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Due to recent reshuffling of header include paths mem_sharing no longer compiles. Fix it by moving mem_sharing_domain declaration to location it is used in. Signed-off-by: Tamas K Lengyel Acked-by: Andrew Cooper --- xen/include/asm-x86/hvm/domain.h | 13 +++++++++++++ xen/include/asm-x86/mem_sharing.h | 11 ----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/xen/include/asm-x86/hvm/domain.h b/xen/include/asm-x86/hvm/dom= ain.h index 624a67d0dd..95fe18cddc 100644 --- a/xen/include/asm-x86/hvm/domain.h +++ b/xen/include/asm-x86/hvm/domain.h @@ -64,6 +64,19 @@ struct hvm_ioreq_server { uint8_t bufioreq_handling; }; =20 +#ifdef CONFIG_MEM_SHARING +struct mem_sharing_domain +{ + bool enabled; + + /* + * When releasing shared gfn's in a preemptible manner, recall where + * to resume the search. + */ + unsigned long next_shared_gfn_to_relinquish; +}; +#endif + /* * This structure defines function hooks to support hardware-assisted * virtual interrupt delivery to guest. (e.g. VMX PI and SVM AVIC). diff --git a/xen/include/asm-x86/mem_sharing.h b/xen/include/asm-x86/mem_sh= aring.h index 53760a2896..53b7929d0e 100644 --- a/xen/include/asm-x86/mem_sharing.h +++ b/xen/include/asm-x86/mem_sharing.h @@ -26,17 +26,6 @@ =20 #ifdef CONFIG_MEM_SHARING =20 -struct mem_sharing_domain -{ - bool enabled; - - /* - * When releasing shared gfn's in a preemptible manner, recall where - * to resume the search. - */ - unsigned long next_shared_gfn_to_relinquish; -}; - #define mem_sharing_enabled(d) ((d)->arch.hvm.mem_sharing.enabled) =20 /* Auditing of memory sharing code? */ --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel