All of lore.kernel.org
 help / color / mirror / Atom feed
From: julien@xen.org
To: xen-devel@lists.xenproject.org
Cc: "Kevin Tian" <kevin.tian@intel.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	julien@xen.org, "Jun Nakajima" <jun.nakajima@intel.com>,
	"Wei Liu" <wl@xen.org>,
	"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Julien Grall" <jgrall@amazon.com>, "Paul Durrant" <paul@xen.org>,
	"Ian Jackson" <ian.jackson@eu.citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Tim Deegan" <tim@xen.org>,
	"Ross Lagerwall" <ross.lagerwall@citrix.com>,
	"Tamas K Lengyel" <tamas@tklengyel.com>,
	"Lukasz Hawrylko" <lukasz.hawrylko@linux.intel.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [Xen-devel] [PATCH 00/17] Bunch of typesafe conversion
Date: Sun, 22 Mar 2020 16:14:01 +0000	[thread overview]
Message-ID: <20200322161418.31606-1-julien@xen.org> (raw)

From: Julien Grall <jgrall@amazon.com>

Hi all,

This is a collection of patches I have sent over last year but never
took the opportunity to respin them. There are a few new one.

I have a couple of patches that also rename fields in the public interface
to what they are supposed to contain (e.g storing a GFN in a GFN field
rather than MFN). I will send it separately once I have done more build
testing with them.

Cheers,

Julien Grall (17):
  xen/x86: Introduce helpers to generate/convert the CR3 from/to a
    MFN/GFN
  xen/x86_64: Convert do_page_walk() to use typesafe MFN
  xen/mm: Move the MM types in a separate header
  xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN
  xen/x86: Remove the non-typesafe version of pagetable_* helpers
  xen/x86: mm: Fix the comment on top put_page_from_l2e() to use 'mfn'
  xen/x86: traps: Convert __page_fault_type() to use typesafe MFN
  xen/x86: traps: Convert show_page_walk() to use typesafe MFN
  xen/x86: Reduce the number of use of l*e_{from, get}_pfn()
  xen/x86: pv: Use maddr_to_mfn(...) instead of the open-coding version
  xen/x86: nested_ept: Fix typo in the message in nept_translate_l2ga()
  xen/x86: p2m: Remove duplicate error message in p2m_pt_audit_p2m()
  xen/x86: p2m: Reflow P2M_PRINTK()s in p2m_pt_audit_p2m()
  xen/x86: mm: Re-implement set_gpfn_from_mfn() as a static inline
    function
  xen/x86: p2m: Rework printk format in audit_p2m()
  xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN
  xen: Switch parameter in get_page_from_gfn to use typesafe gfn

 xen/arch/arm/acpi/domain_build.c     |   4 -
 xen/arch/arm/alternative.c           |   4 -
 xen/arch/arm/cpuerrata.c             |   4 -
 xen/arch/arm/domain_build.c          |   4 -
 xen/arch/arm/guestcopy.c             |   2 +-
 xen/arch/arm/livepatch.c             |   4 -
 xen/arch/arm/mm.c                    |  10 +-
 xen/arch/x86/cpu/mcheck/mcaction.c   |   2 +-
 xen/arch/x86/cpu/vpmu.c              |   2 +-
 xen/arch/x86/domain.c                |  22 ++--
 xen/arch/x86/domain_page.c           |  10 +-
 xen/arch/x86/domctl.c                |  12 +--
 xen/arch/x86/hvm/dm.c                |   2 +-
 xen/arch/x86/hvm/dom0_build.c        |  20 ++--
 xen/arch/x86/hvm/domain.c            |   6 +-
 xen/arch/x86/hvm/hvm.c               |   9 +-
 xen/arch/x86/hvm/svm/svm.c           |   8 +-
 xen/arch/x86/hvm/viridian/viridian.c |  16 +--
 xen/arch/x86/hvm/vmx/vmcs.c          |   2 +-
 xen/arch/x86/hvm/vmx/vmx.c           |   6 +-
 xen/arch/x86/hvm/vmx/vvmx.c          |  14 +--
 xen/arch/x86/machine_kexec.c         |   2 +-
 xen/arch/x86/mm.c                    | 142 ++++++++++++------------
 xen/arch/x86/mm/hap/hap.c            |   2 +-
 xen/arch/x86/mm/hap/nested_ept.c     |   2 +-
 xen/arch/x86/mm/mem_sharing.c        |  20 ++--
 xen/arch/x86/mm/p2m-ept.c            |   2 +-
 xen/arch/x86/mm/p2m-pod.c            |   4 +-
 xen/arch/x86/mm/p2m-pt.c             |  39 ++++---
 xen/arch/x86/mm/p2m.c                |  71 ++++++------
 xen/arch/x86/mm/paging.c             |   4 +-
 xen/arch/x86/mm/shadow/hvm.c         |   6 +-
 xen/arch/x86/mm/shadow/multi.c       |  24 ++---
 xen/arch/x86/numa.c                  |   8 +-
 xen/arch/x86/physdev.c               |   3 +-
 xen/arch/x86/pv/descriptor-tables.c  |   6 +-
 xen/arch/x86/pv/dom0_build.c         |  20 ++--
 xen/arch/x86/pv/emul-priv-op.c       |   6 +-
 xen/arch/x86/pv/grant_table.c        |   4 +-
 xen/arch/x86/pv/mm.c                 |   2 +-
 xen/arch/x86/pv/shim.c               |   3 -
 xen/arch/x86/setup.c                 |  12 +--
 xen/arch/x86/smpboot.c               |   4 +-
 xen/arch/x86/srat.c                  |   2 +-
 xen/arch/x86/tboot.c                 |   4 +-
 xen/arch/x86/traps.c                 |  42 ++++----
 xen/arch/x86/x86_64/mm.c             |  39 +++----
 xen/arch/x86/x86_64/traps.c          |  42 ++++----
 xen/common/domain.c                  |   2 +-
 xen/common/domctl.c                  |   3 +-
 xen/common/efi/boot.c                |   7 +-
 xen/common/event_fifo.c              |  12 +--
 xen/common/grant_table.c             |   8 +-
 xen/common/memory.c                  |   4 +-
 xen/common/page_alloc.c              |  20 ++--
 xen/common/trace.c                   |  19 ++--
 xen/common/xenoprof.c                |   4 -
 xen/drivers/acpi/osl.c               |   2 +-
 xen/include/asm-arm/mm.h             |  16 +--
 xen/include/asm-arm/p2m.h            |   6 +-
 xen/include/asm-x86/grant_table.h    |   6 +-
 xen/include/asm-x86/mm.h             |  55 +++++++---
 xen/include/asm-x86/p2m.h            |  14 ++-
 xen/include/asm-x86/page.h           |  27 +++--
 xen/include/xen/domain_page.h        |   6 +-
 xen/include/xen/mm.h                 | 134 +----------------------
 xen/include/xen/mm_types.h           | 155 +++++++++++++++++++++++++++
 67 files changed, 598 insertions(+), 580 deletions(-)
 create mode 100644 xen/include/xen/mm_types.h

-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2020-03-22 16:14 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-22 16:14 julien [this message]
2020-03-22 16:14 ` [Xen-devel] [PATCH 01/17] xen/x86: Introduce helpers to generate/convert the CR3 from/to a MFN/GFN julien
2020-03-25 14:46   ` Jan Beulich
2020-03-28 10:14     ` Julien Grall
2020-03-30  7:38       ` Jan Beulich
2020-04-16 11:50         ` Julien Grall
2020-03-22 16:14 ` [Xen-devel] [PATCH 02/17] xen/x86_64: Convert do_page_walk() to use typesafe MFN julien
2020-03-25 14:51   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 03/17] xen/mm: Move the MM types in a separate header julien
2020-03-25 15:00   ` Jan Beulich
2020-03-25 18:09     ` Julien Grall
2020-03-26  9:02       ` Jan Beulich
2020-03-28 10:15         ` Julien Grall
2020-03-22 16:14 ` [Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN julien
2020-03-25 15:27   ` Jan Beulich
2020-03-25 18:21     ` Julien Grall
2020-03-26  9:09       ` Jan Beulich
2020-03-28 10:33         ` Julien Grall
2020-03-22 16:14 ` [Xen-devel] [PATCH 05/17] xen/x86: Remove the non-typesafe version of pagetable_* helpers julien
2020-03-26 15:39   ` Jan Beulich
2020-03-28 10:52     ` Julien Grall
2020-03-30  7:52       ` Jan Beulich
2020-04-18 10:23         ` Julien Grall
2020-04-20  9:16           ` Jan Beulich
2020-04-20 10:10             ` Julien Grall
2020-04-20 12:14               ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 06/17] xen/x86: mm: Fix the comment on top put_page_from_l2e() to use 'mfn' julien
2020-03-26 15:51   ` Jan Beulich
2020-04-18 10:54     ` Julien Grall
2020-03-22 16:14 ` [Xen-devel] [PATCH 07/17] xen/x86: traps: Convert __page_fault_type() to use typesafe MFN julien
2020-03-26 15:54   ` Jan Beulich
2020-04-18 11:01     ` Julien Grall
2020-04-18 11:43       ` Julien Grall
2020-04-20  9:19         ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 08/17] xen/x86: traps: Convert show_page_walk() " julien
2020-03-22 16:14 ` [Xen-devel] [PATCH 09/17] xen/x86: Reduce the number of use of l*e_{from, get}_pfn() julien
2020-03-27 10:52   ` Jan Beulich
2020-03-28 10:53     ` Julien Grall
2020-03-22 16:14 ` [Xen-devel] [PATCH 10/17] xen/x86: pv: Use maddr_to_mfn(...) instead of the open-coding version julien
2020-03-27 11:34   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 11/17] xen/x86: nested_ept: Fix typo in the message in nept_translate_l2ga() julien
2020-03-27 11:35   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 12/17] xen/x86: p2m: Remove duplicate error message in p2m_pt_audit_p2m() julien
2020-03-27 11:35   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 13/17] xen/x86: p2m: Reflow P2M_PRINTK()s " julien
2020-03-27 11:36   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 14/17] xen/x86: mm: Re-implement set_gpfn_from_mfn() as a static inline function julien
2020-03-27 12:44   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 15/17] xen/x86: p2m: Rework printk format in audit_p2m() julien
2020-03-27 12:45   ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN julien
2020-03-23 12:11   ` Hongyan Xia
2020-03-23 12:26     ` Julien Grall
2020-03-27 13:15   ` Jan Beulich
2020-03-28 11:14     ` Julien Grall
2020-03-30  8:10       ` Jan Beulich
2020-03-22 16:14 ` [Xen-devel] [PATCH 17/17] xen: Switch parameter in get_page_from_gfn to use typesafe gfn julien
2020-03-23  8:37   ` Paul Durrant
2020-03-23 10:26     ` Julien Grall
2020-03-27 13:50   ` Jan Beulich
2020-03-27 13:59     ` Julien Grall

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=20200322161418.31606-1-julien@xen.org \
    --to=julien@xen.org \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=jgrall@amazon.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=lukasz.hawrylko@linux.intel.com \
    --cc=paul@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=ross.lagerwall@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tamas@tklengyel.com \
    --cc=tim@xen.org \
    --cc=wl@xen.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.