mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen/x86: Remove unused override of page_to_mfn/mfn_to_page
A few files override page_to_mfn/mfn_to_page but actually never use those macros. So drop them. Signed-off-by: Julien Grall <julien.grall@arm.com> Acked-by: George Dunlap <george.dunlap@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
acf92c83b5
commit
da588a0dbe
5 files changed
-27
No files matched your search
@@ -70,9 +70,6 @@
|
||||
/********************************************/
|
||||
/* NESTED VIRT P2M FUNCTIONS */
|
||||
/********************************************/
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef page_to_mfn
|
||||
#define page_to_mfn(_pg) _mfn(__page_to_mfn(_pg))
|
||||
|
||||
void
|
||||
nestedp2m_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn,
|
||||
|
||||
@@ -39,12 +39,6 @@
|
||||
|
||||
#include "mm-locks.h"
|
||||
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef mfn_to_page
|
||||
#define mfn_to_page(_m) __mfn_to_page(mfn_x(_m))
|
||||
#undef page_to_mfn
|
||||
#define page_to_mfn(_pg) _mfn(__page_to_mfn(_pg))
|
||||
|
||||
/*
|
||||
* We may store INVALID_MFN in PTEs. We need to clip this to avoid trampling
|
||||
* over higher-order bits (NX, p2m type, IOMMU flags). We seem to not need
|
||||
|
||||
@@ -24,12 +24,6 @@
|
||||
#include <asm/current.h>
|
||||
#include <asm/traps.h>
|
||||
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef mfn_to_page
|
||||
#define mfn_to_page(mfn) __mfn_to_page(mfn_x(mfn))
|
||||
#undef page_to_mfn
|
||||
#define page_to_mfn(pg) _mfn(__page_to_mfn(pg))
|
||||
|
||||
unsigned long do_iret(void)
|
||||
{
|
||||
struct cpu_user_regs *regs = guest_cpu_user_regs();
|
||||
|
||||
@@ -26,12 +26,6 @@
|
||||
|
||||
#include "mm.h"
|
||||
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef mfn_to_page
|
||||
#define mfn_to_page(mfn) __mfn_to_page(mfn_x(mfn))
|
||||
#undef page_to_mfn
|
||||
#define page_to_mfn(pg) _mfn(__page_to_mfn(pg))
|
||||
|
||||
/*
|
||||
* Get a mapping of a PV guest's l1e for this linear address. The return
|
||||
* pointer should be unmapped using unmap_domain_page().
|
||||
|
||||
@@ -29,12 +29,6 @@
|
||||
#include <asm/shared.h>
|
||||
#include <asm/traps.h>
|
||||
|
||||
/* Override macros from asm/page.h to make them work with mfn_t */
|
||||
#undef mfn_to_page
|
||||
#define mfn_to_page(mfn) __mfn_to_page(mfn_x(mfn))
|
||||
#undef page_to_mfn
|
||||
#define page_to_mfn(pg) _mfn(__page_to_mfn(pg))
|
||||
|
||||
void do_entry_int82(struct cpu_user_regs *regs)
|
||||
{
|
||||
if ( unlikely(untrusted_msi) )
|
||||
|
||||