Message ID | 20200322161418.31606-1-julien@xen.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=kAHn=5H=lists.xenproject.org=xen-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A7976CA for <patchwork-xen-devel@patchwork.kernel.org>; Sun, 22 Mar 2020 16:16:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40AB320724 for <patchwork-xen-devel@patchwork.kernel.org>; Sun, 22 Mar 2020 16:16:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40AB320724 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1jG3F5-0004UC-74; Sun, 22 Mar 2020 16:14:27 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <SRS0=0EiK=5H=gmail.com=julien.grall.oss@srs-us1.protection.inumbo.net>) id 1jG3F3-0004U6-FO for xen-devel@lists.xenproject.org; Sun, 22 Mar 2020 16:14:25 +0000 X-Inumbo-ID: 3228ab1c-6c58-11ea-92cf-bc764e2007e4 Received: from mail-ed1-f46.google.com (unknown [209.85.208.46]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3228ab1c-6c58-11ea-92cf-bc764e2007e4; Sun, 22 Mar 2020 16:14:24 +0000 (UTC) Received: by mail-ed1-f46.google.com with SMTP id z3so13446310edq.11 for <xen-devel@lists.xenproject.org>; Sun, 22 Mar 2020 09:14:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2vVBafm4KTVk/wtXlKoTg4LaOIx5Z502Xdhkh1YBy3o=; b=gcecqUGvzCAKfL1hAtbvLPyU9Jsk8TlgfeJA5IzSqzneHXfPDbrhqrz1cuD925iwVC BYbwWfI0ZnU/dNNlvnX1YoqXeGwfAXjsGtqnw1B4AnRG2Ul5PCtDjS5rMt/XYRHjzDDU sOtW7Uo8hK+ZwVQ9cIHaY9nstI79ahcT1bNQBzCOvMFMsXaYZXZkoJGHSZYxhZzJNu9+ c8Nov8HnChN2OtfWHTJGRpz4w/kl+oHlzhitjkk7e3O5ZQIViPJkMuZOZhiKifBEdfIb owVKqbUo+f21A33kDZnk3aj/CGzpyCMp5IxDk3CznG9UjaA/snAYu1wyiutrPURGduWS wcdw== X-Gm-Message-State: ANhLgQ2LFWvWvbkwL1PyZAIFT0OSbejvNuW3mtDtMxSGL5oWhKEEH8li 0HG7r/pF+LuT3hVWIPdmazedOJMUjSH7qQ== X-Google-Smtp-Source: ADFU+vtVTNYs6SF4dddYQhLBUaXJF9xmOzLNbBD5/dlIXnUEpKTFCXxJNosgiKZQ19VI+b4o4utndg== X-Received: by 2002:a05:6402:7c7:: with SMTP id u7mr6305059edy.214.1584893663606; Sun, 22 Mar 2020 09:14:23 -0700 (PDT) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id v13sm106693edj.62.2020.03.22.09.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 09:14:22 -0700 (PDT) From: julien@xen.org To: xen-devel@lists.xenproject.org Date: Sun, 22 Mar 2020 16:14:01 +0000 Message-Id: <20200322161418.31606-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH 00/17] Bunch of typesafe conversion X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> 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>, =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= <roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
Bunch of typesafe conversion
|
expand
|
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