From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Gordeev Subject: [kvm-unit-tests PATCH v6 00/11] Cleanup low-level arch code Date: Wed, 4 May 2016 12:31:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexander Gordeev , Andrew Jones , Thomas Huth , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56248 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757560AbcEDKbm (ORCPT ); Wed, 4 May 2016 06:31:42 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 752F82027D for ; Wed, 4 May 2016 10:31:41 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Hi Andrew et al, This is 6th attempt to make mainly x86 arch code consistent with other architectures. 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 iorema= p(); - 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 ad= ded (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 Cc: Thomas Huth Cc: Radim Kr=C4=8Dm=C3=A1=C5=99 Alexander Gordeev (11): 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() arm/selftest.c | 1 - lib/alloc.h | 5 ----- lib/arm/asm/page.h | 2 -- lib/asm-generic/io.h | 13 +++++++++---- lib/libcflat.h | 2 ++ lib/powerpc/asm/setup.h | 1 - lib/ppc64/asm/io.h | 2 ++ lib/x86/asm/barrier.h | 13 +++++++++++++ lib/x86/{ =3D> asm}/io.h | 18 ++++++++++++++++-- lib/x86/asm/page.h | 44 +++++++++++++++++++++++++++++++++++++++++= +++ lib/x86/asm/pci.h | 2 +- lib/x86/io.c | 17 ++++++++++++++++- lib/x86/smp.h | 4 ---- lib/x86/vm.c | 37 ++++++++++--------------------------- lib/x86/vm.h | 25 ++----------------------- x86/access.c | 12 +----------- 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/vmexit.c | 11 ++--------- x86/vmx.c | 1 - x86/vmx.h | 2 +- x86/vmx_tests.c | 1 - 33 files changed, 136 insertions(+), 117 deletions(-) create mode 100644 lib/x86/asm/barrier.h rename lib/x86/{ =3D> asm}/io.h (74%) create mode 100644 lib/x86/asm/page.h --=20 1.8.3.1