From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Julien Grall <julien.grall@arm.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>, Jan Beulich <jbeulich@suse.com>
Subject: [PATCH RFC 1/2] xen: remove CONFIG_PAGING_ASSISTANCE
Date: Wed, 23 Aug 2017 16:58:23 +0100 [thread overview]
Message-ID: <20170823155824.11144-2-wei.liu2@citrix.com> (raw)
In-Reply-To: <20170823155824.11144-1-wei.liu2@citrix.com>
Arm should always set it, while on x86 xen can't build with it set to
0, which means people haven't used it for years.
Remove it and simplify xen/paging.h.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Julien Grall <julien.grall@arm.com>
---
xen/include/asm-arm/config.h | 2 --
xen/include/asm-x86/config.h | 1 -
xen/include/xen/paging.h | 19 -------------------
3 files changed, 22 deletions(-)
diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h
index 7da94698e1..210c9f858b 100644
--- a/xen/include/asm-arm/config.h
+++ b/xen/include/asm-arm/config.h
@@ -24,8 +24,6 @@
/* xen_ulong_t is always 64 bits */
#define BITS_PER_XEN_ULONG 64
-#define CONFIG_PAGING_ASSISTANCE 1
-
#define CONFIG_PAGING_LEVELS 3
#define CONFIG_ARM 1
diff --git a/xen/include/asm-x86/config.h b/xen/include/asm-x86/config.h
index 0130ac864f..f63a9cb952 100644
--- a/xen/include/asm-x86/config.h
+++ b/xen/include/asm-x86/config.h
@@ -19,7 +19,6 @@
#define BITS_PER_XEN_ULONG BITS_PER_LONG
-#define CONFIG_PAGING_ASSISTANCE 1
#define CONFIG_X86_PM_TIMER 1
#define CONFIG_HPET_TIMER 1
#define CONFIG_X86_MCE_THERMAL 1
diff --git a/xen/include/xen/paging.h b/xen/include/xen/paging.h
index 214bde5576..a126c9bf58 100644
--- a/xen/include/xen/paging.h
+++ b/xen/include/xen/paging.h
@@ -1,26 +1,7 @@
-
#ifndef __XEN_PAGING_H__
#define __XEN_PAGING_H__
-#if defined CONFIG_PAGING_ASSISTANCE
-
#include <asm/paging.h>
#include <asm/p2m.h>
-#elif defined CONFIG_SHADOW_PAGING
-
-#include <asm/shadow.h>
-
-#define paging_mode_translate(d) shadow_mode_translate(d)
-#define paging_mode_external(d) (0)
-
-#else
-
-#define paging_mode_translate(d) (0)
-#define paging_mode_external(d) (0)
-#define guest_physmap_add_page(d, p, m, o) ((void)0)
-#define guest_physmap_remove_page(d, p, m, o) ((void)0)
-
-#endif
-
#endif /* __XEN_PAGING_H__ */
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-08-23 15:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 15:58 [PATCH RFC 0/2] Misc paging code clean up Wei Liu
2017-08-23 15:58 ` Wei Liu [this message]
2017-08-23 16:04 ` [PATCH RFC 1/2] xen: remove CONFIG_PAGING_ASSISTANCE Jan Beulich
2017-08-24 10:04 ` Tim Deegan
2017-08-24 10:15 ` Jan Beulich
2017-08-24 10:42 ` Julien Grall
2017-08-23 15:58 ` [PATCH RFC 2/2] x86/mm: PG_translate implies PG_refcounts Wei Liu
2017-08-23 16:18 ` Wei Liu
2017-08-24 10:02 ` Tim Deegan
2017-08-24 10:05 ` Wei Liu
2017-08-24 10:07 ` Wei Liu
2017-08-24 10:09 ` Andrew Cooper
2017-08-24 10:11 ` Wei Liu
2017-08-24 10:15 ` Tim Deegan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170823155824.11144-2-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.