public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v8 00/12] Cleanup low-level arch code
@ 2016-06-06 10:25 Alexander Gordeev
  2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 01/12] Remove unused and unnecessary PHYS32 macro Alexander Gordeev
                   ` (11 more replies)
  0 siblings, 12 replies; 43+ messages in thread
From: Alexander Gordeev @ 2016-06-06 10:25 UTC (permalink / raw)
  To: kvm
  Cc: Alexander Gordeev, Andrew Jones, Thomas Huth, Paolo Bonzini,
	Radim Krčmář

Hi all,

This is 8th attempt to make mainly x86 arch code consistent
with other architectures. This series is a prerequisite for
a follow-up "PCI bus support" series which I am going to
send separately.


Changes since v7:
  - PT_NX_MASK macro renamed to PT64_NX_MASK;
  - added patch "io: Unify IO accessors across architectures";

Changes since v6:
  - ioremap() PCD comment updated;
  - PT_PSE_MASK renamed to PT_PAGE_SIZE_MASK;
  - GENMASK_ULL used for PT_ADDR_MASK definition;
  - missed x86/taskswitch2.c update added;

Changes since v5:
  - ioremap() PCD comment added, the Reviewed-by preserved;
  - page table flag names changed from PTE_* to PT_*_MASK;

Changes since v4:
  - single instead of multiple pages allocation bug fixed in x86 ioremap();
  - style fixes squashed into code movements for lib/x86/asm/page.h and
    lib/x86/asm/barrier.h;
  - #ifndef __ASSEMBLY__ added to lib/x86/asm/page.h;

Changes since v3:
  - x86 PAGE_* constants and PTE_* flags cleaned up;
  - missing Reviewed-bys restored;
  - missing headers to lib/x86/asm/page.h and lib/x86/asm/barriers.h added
    (I did not remove already given Reviewed-bys from these);

Changes since v2:
  - x86 ioremap() address arithmetics nonsense fixed;
  - x86 virt_to_phys() and phys_to_virt() implementations left intact;
  - separate overrides of virt_to_phys() and phys_to_virt() added;
  - unsigned long size specifier removed from PAGE_SIZE constant;

Changes since v1:
  - arm compilation error fixed;
  - disabling memory re-ordering for generic memory barriers added;

Cc: Andrew Jones <drjones@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>

Alexander Gordeev (12):
  Remove unused and unnecessary PHYS32 macro
  Move phys_addr_t type definition to lib/libcflat.h
  x86: Introduce lib/x86/asm/page.h
  x86: Introduce lib/x86/asm/io.h
  x86: Introduce lib/x86/asm/barrier.h
  io: Separate overrides of virt_to_phys() and phys_to_virt()
  io: Disallow memory re-ordering for generic memory barriers
  x86: Cleanup PAGE_* constants
  x86: Cleanup PT_*_MASK flags
  io: Make ioremap() prototype conform to Linux one
  x86: io: Factor out ioremap()
  io: Unify IO accessors across architectures

 arm/selftest.c            |  1 -
 lib/alloc.h               |  5 ----
 lib/arm/asm/page.h        |  2 --
 lib/asm-generic/barrier.h | 21 +++++++++++++++
 lib/asm-generic/io.h      | 56 +++++++++++++++++++++++++++++++++-------
 lib/libcflat.h            |  2 ++
 lib/powerpc/asm/setup.h   |  1 -
 lib/ppc64/asm/barrier.h   |  4 +++
 lib/ppc64/asm/io.h        |  2 ++
 lib/x86/asm/barrier.h     | 13 ++++++++++
 lib/x86/asm/io.h          | 65 +++++++++++++++++++++++++++++++++++++++++++++++
 lib/x86/asm/page.h        | 45 ++++++++++++++++++++++++++++++++
 lib/x86/asm/pci.h         |  2 +-
 lib/x86/io.c              | 18 ++++++++++++-
 lib/x86/io.h              | 40 -----------------------------
 lib/x86/smp.h             |  4 ---
 lib/x86/vm.c              | 37 ++++++++-------------------
 lib/x86/vm.h              | 25 ++----------------
 x86/access.c              | 18 +++----------
 x86/asyncpf.c             |  2 +-
 x86/eventinj.c            | 17 +++++--------
 x86/hypercall.c           |  2 +-
 x86/hyperv.c              |  1 +
 x86/hyperv.h              |  1 -
 x86/hyperv_stimer.c       |  2 +-
 x86/hyperv_synic.c        |  1 -
 x86/init.c                |  2 +-
 x86/kvmclock.c            |  1 +
 x86/pku.c                 |  2 +-
 x86/rmap_chain.c          |  2 +-
 x86/smap.c                |  6 ++---
 x86/svm.c                 |  1 -
 x86/taskswitch2.c         |  2 +-
 x86/vmexit.c              | 11 ++------
 x86/vmx.c                 |  1 -
 x86/vmx.h                 |  2 +-
 x86/vmx_tests.c           |  1 -
 37 files changed, 254 insertions(+), 164 deletions(-)
 create mode 100644 lib/asm-generic/barrier.h
 create mode 100644 lib/ppc64/asm/barrier.h
 create mode 100644 lib/x86/asm/barrier.h
 create mode 100644 lib/x86/asm/io.h
 create mode 100644 lib/x86/asm/page.h
 delete mode 100644 lib/x86/io.h

--
1.8.3.1


^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2016-07-12  8:27 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 10:25 [kvm-unit-tests PATCH v8 00/12] Cleanup low-level arch code Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 01/12] Remove unused and unnecessary PHYS32 macro Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 02/12] Move phys_addr_t type definition to lib/libcflat.h Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 03/12] x86: Introduce lib/x86/asm/page.h Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 04/12] x86: Introduce lib/x86/asm/io.h Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 05/12] x86: Introduce lib/x86/asm/barrier.h Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 06/12] io: Separate overrides of virt_to_phys() and phys_to_virt() Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 07/12] io: Disallow memory re-ordering for generic memory barriers Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 08/12] x86: Cleanup PAGE_* constants Alexander Gordeev
2016-06-06 15:21   ` Paolo Bonzini
2016-06-08  7:59     ` Alexander Gordeev
2016-06-08  7:58       ` Paolo Bonzini
2016-06-08 10:07         ` Andrew Jones
2016-06-08 10:19           ` Paolo Bonzini
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 09/12] x86: Cleanup PT_*_MASK flags Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 10/12] io: Make ioremap() prototype conform to Linux one Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 11/12] x86: io: Factor out ioremap() Alexander Gordeev
2016-06-06 10:25 ` [kvm-unit-tests PATCH v8 12/12] io: Unify IO accessors across architectures Alexander Gordeev
2016-06-06 12:22   ` Andrew Jones
2016-06-10  6:36     ` [kvm-unit-tests PATCH v9 12/12] ppc64: Introduce lib/ppc64/asm/barrier.h Alexander Gordeev
2016-06-10  7:01       ` Andrew Jones
2016-06-10  7:08         ` Andrew Jones
2016-06-10  8:17           ` [kvm-unit-tests PATCH v10 " Alexander Gordeev
2016-06-13 10:49             ` Andrew Jones
2016-06-13 13:34               ` Paolo Bonzini
2016-06-13 14:04                 ` Andrew Jones
2016-06-13 14:16                   ` Paolo Bonzini
2016-07-11 14:52                   ` Paolo Bonzini
2016-06-10  6:37     ` [kvm-unit-tests PATCH v9 13/12] io: Unify IO accessors across architectures Alexander Gordeev
2016-06-10  7:07       ` Andrew Jones
2016-06-10  8:13         ` Alexander Gordeev
2016-06-10  8:17         ` [kvm-unit-tests PATCH v10 " Alexander Gordeev
2016-06-13 10:51           ` Andrew Jones
2016-06-13 13:35       ` [kvm-unit-tests PATCH v9 " Paolo Bonzini
2016-06-13 13:57         ` Andrew Jones
2016-06-13 14:03           ` Paolo Bonzini
2016-06-13 14:17             ` Andrew Jones
2016-06-29  8:24               ` Alexander Gordeev
2016-07-09 20:39                 ` Alexander Gordeev
2016-07-11 15:01                   ` Paolo Bonzini
2016-07-11 16:17                     ` Alexander Gordeev
2016-07-11 16:15                       ` Paolo Bonzini
2016-07-12  8:27                       ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox