From patchwork Mon Aug 5 12:42:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 11076823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB29A746 for ; Mon, 5 Aug 2019 12:44:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97DEB288D0 for ; Mon, 5 Aug 2019 12:44:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C30528906; Mon, 5 Aug 2019 12:44:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C6114288D0 for ; Mon, 5 Aug 2019 12:44:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hucKX-0000c3-AW; Mon, 05 Aug 2019 12:43:13 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hucKW-0000bn-C7 for xen-devel@lists.xenproject.org; Mon, 05 Aug 2019 12:43:12 +0000 X-Inumbo-ID: 92092122-b77e-11e9-a4cf-43c0d977d3b7 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 92092122-b77e-11e9-a4cf-43c0d977d3b7; Mon, 05 Aug 2019 12:43:06 +0000 (UTC) Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: viAMqxWudlJ/+nqyH8tCi6VbslHEgqqs4OCGgBQhSK5SCeJsIClGUgoW1RypU1BAm4Fm5pxtul cxMqgpzrd3b65zFHQvjTseuYcUYrGWdPPK69WqpfD0reXnmlAFQ5AuUdWt61pjHdiYtZkZnd7B 8RBCzNd8vIQYu9fLry2osbpCYajjRvJUxfjPLtgroR7zJe6I0IujU6aSmeaaYDS455Z5o1GJVd rGP45wWQpKoxAKVXaDUmImjX+hOdCyL+EALdFJlC54mmJmF9p3bRSF3ZRGtF666WZgQOYAo7iQ sAU= X-SBRS: 2.7 X-MesageID: 3859931 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,349,1559534400"; d="scan'208";a="3859931" From: Andrew Cooper To: Xen-devel Date: Mon, 5 Aug 2019 13:42:57 +0100 Message-ID: <20190805124301.12887-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 0/4] x86/boot: Cleanup X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Various bits of cleanup intended to make the boot sequence clearer to follow, and remove bits of asm which shouldn't be written in asm. No changes to functionality. Andrew Cooper (4): x86/asm: Include msr-index.h rather than msr.h x86/boot: Minor improvements to efi_arch_post_exit_boot() x86/desc: Shorten boot_{,comat_}gdt[] variable names x86/desc: Build boot_{,compat_}gdt[] in C xen/arch/x86/Makefile | 1 + xen/arch/x86/boot/head.S | 3 +- xen/arch/x86/boot/x86_64.S | 35 +----------------- xen/arch/x86/cpu/common.c | 4 +-- xen/arch/x86/desc.c | 75 +++++++++++++++++++++++++++++++++++++++ xen/arch/x86/domain.c | 7 ++-- xen/arch/x86/efi/efi-boot.h | 17 +++++---- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/arch/x86/hvm/vmx/vmcs.c | 2 +- xen/arch/x86/smpboot.c | 18 +++++----- xen/arch/x86/traps.c | 30 ++++++++-------- xen/arch/x86/x86_64/kexec_reloc.S | 2 +- xen/common/efi/runtime.c | 2 +- xen/include/asm-x86/desc.h | 14 ++++---- xen/include/asm-x86/ldt.h | 3 +- 15 files changed, 128 insertions(+), 87 deletions(-) create mode 100644 xen/arch/x86/desc.c