From nobody Fri Nov 22 08:14:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=cloud.com ARC-Seal: i=1; a=rsa-sha256; t=1727958002; cv=none; d=zohomail.com; s=zohoarc; b=lXEbVnOvyQzv6a5inETVKQd0ydSClwHnjP6LQlXha2w28D9suiSR+lbweJGpJBO4Mgl6JR/094fUCR6aHk+r2L/Zf5PeROo+OWbcujL6mKi72beoMzLVwgyL2/ceIglDQOWL8+ckNAREJ5u0esqhbSVUxtuE9KHO9gkMB2K6uzs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727958002; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RGEyc61wruwifKqQgSxv986dHUhqdj3g8bW7k9LBErs=; b=irzzYDvkJXWAUd4IwGRGeAvwtYZ1HjVCQS00jyGhZVctu+gsau84lrTUydTG0lyh5AAJ3HHimMOwn2U7OxxzVjlGBqQwQvV36l5v+aA2T3QGKVCtdnjPuVVC7TpL9aI4RZ79NHEaDa9hl32tmIcqxbWfDGDMhHfaApK+BGQ7VsY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727958002191984.8838239263783; Thu, 3 Oct 2024 05:20:02 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.809327.1221596 (Exim 4.92) (envelope-from ) id 1swKnp-0004f3-1S; Thu, 03 Oct 2024 12:19:29 +0000 Received: by outflank-mailman (output) from mailman id 809327.1221596; Thu, 03 Oct 2024 12:19:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1swKno-0004ec-P5; Thu, 03 Oct 2024 12:19:28 +0000 Received: by outflank-mailman (input) for mailman id 809327; Thu, 03 Oct 2024 12:19:27 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1swKnm-00043W-VB for xen-devel@lists.xenproject.org; Thu, 03 Oct 2024 12:19:27 +0000 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [2a00:1450:4864:20::12a]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id ba388043-8181-11ef-a0ba-8be0dac302b0; Thu, 03 Oct 2024 14:19:24 +0200 (CEST) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-5398a26b64fso866081e87.3 for ; Thu, 03 Oct 2024 05:19:24 -0700 (PDT) Received: from fziglio-desktop.. ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a991047319asm77328366b.184.2024.10.03.05.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 05:19:21 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ba388043-8181-11ef-a0ba-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1727957964; x=1728562764; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RGEyc61wruwifKqQgSxv986dHUhqdj3g8bW7k9LBErs=; b=A82cbdXYp5EkNfcq87g+1SewdQoSXUX5AxW8sh4wXsyieousUljM9NvMlCFE9uvsZb dMkjlt6MJWL1DfpvBFAAcyU+NW7Et71sxA2+DtUeE+lqsPU/CdwxqDHuHc4q3HWsxcka iu1uTFPOCpW7yixIXuRDkUqLr63NGuoHS5M0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727957964; x=1728562764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RGEyc61wruwifKqQgSxv986dHUhqdj3g8bW7k9LBErs=; b=tVZVbiHBbO9D8VHDGXKUFoB8S0cRA51LCat2Vr0eRdlaXHhUHMqfotJrhdQ+SuY7AS BLao40VMyBHDIKFeR91Xhemx/vS8mDI6v0Gi3G2JKr2BX5iw6N8zKS4sCaYf7fmB4Dvf W4n7SL0GxS109RmvHLcmgNuCQ3WC7zlYChz/2T5t54amgE4gTj3T9xUDAgdVuwiThus3 ke0oZ3xbYZRYhqQqu7ylCNLiKdOH49NMv2WPG2Tg/t3XkuGg1hLnBAKN3+kSix0d0l+6 dozhcB+mbbETVTidisdfYBBP94idESVJOhMtrSnsnstl31MdpXPR9A0Je/iUHMLN4FQb zdRg== X-Gm-Message-State: AOJu0Yw79W9pip3dP+Mq+wu49SPiv/s0ZFrKKOuuV1QjDnuYwn0AKusw FiSBL0vcV2QQfmLwOY1NgzlYLSrN9YYvc/W1lwstQbUdtkRqCSPa+BI+8+o2QIeS5+cqAs11vZS m X-Google-Smtp-Source: AGHT+IEq1fYGGiJVstcBIq4eYhGWvOsxaq9CSHSCX/daO8VbaredxVNljIiwcI+KhTXie/B99X7XGg== X-Received: by 2002:a05:6512:694:b0:539:94aa:d512 with SMTP id 2adb3069b0e04-539a07a89c0mr4003590e87.53.1727957962133; Thu, 03 Oct 2024 05:19:22 -0700 (PDT) From: Frediano Ziglio To: xen-devel@lists.xenproject.org Cc: Frediano Ziglio , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Paul Durrant , Tim Deegan Subject: [PATCH 02/20] xen: Update header guards - X86 Date: Thu, 3 Oct 2024 13:18:50 +0100 Message-Id: <20241003121908.362888-3-frediano.ziglio@cloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003121908.362888-1-frediano.ziglio@cloud.com> References: <20241003121908.362888-1-frediano.ziglio@cloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @cloud.com) X-ZM-MESSAGEID: 1727958004669116600 Content-Type: text/plain; charset="utf-8" Updated headers related to x86 architecture. Signed-off-by: Frediano Ziglio --- xen/arch/x86/boot/video.h | 6 +++--- xen/arch/x86/cpu/mcheck/barrier.h | 6 +++--- xen/arch/x86/cpu/mcheck/mcaction.h | 4 ++-- xen/arch/x86/cpu/mcheck/mce.h | 6 +++--- xen/arch/x86/cpu/mcheck/mce_amd.h | 4 ++-- xen/arch/x86/cpu/mcheck/mctelem.h | 4 ++-- xen/arch/x86/cpu/mcheck/util.h | 4 ++-- xen/arch/x86/cpu/mcheck/vmce.h | 4 ++-- xen/arch/x86/cpu/mcheck/x86_mca.h | 6 +++--- xen/arch/x86/cpu/microcode/private.h | 6 +++--- xen/arch/x86/cpu/mtrr/mtrr.h | 6 +++--- xen/arch/x86/guest/hyperv/private.h | 6 +++--- xen/arch/x86/hvm/svm/nestedhvm.h | 6 +++--- xen/arch/x86/hvm/svm/svm.h | 6 +++--- xen/arch/x86/hvm/viridian/private.h | 6 +++--- xen/arch/x86/include/asm/acpi.h | 4 ++-- xen/arch/x86/include/asm/alternative-asm.h | 6 +++--- xen/arch/x86/include/asm/alternative.h | 6 +++--- xen/arch/x86/include/asm/altp2m.h | 6 +++--- xen/arch/x86/include/asm/amd.h | 6 +++--- xen/arch/x86/include/asm/apic.h | 6 +++--- xen/arch/x86/include/asm/apicdef.h | 4 ++-- xen/arch/x86/include/asm/asm_defns.h | 6 +++--- xen/arch/x86/include/asm/atomic.h | 6 +++--- xen/arch/x86/include/asm/bitops.h | 6 +++--- xen/arch/x86/include/asm/bug.h | 6 +++--- xen/arch/x86/include/asm/byteorder.h | 6 +++--- xen/arch/x86/include/asm/bzimage.h | 6 +++--- xen/arch/x86/include/asm/cache.h | 4 ++-- xen/arch/x86/include/asm/config.h | 6 +++--- xen/arch/x86/include/asm/cpu-policy.h | 6 +++--- xen/arch/x86/include/asm/cpufeature.h | 6 +++--- xen/arch/x86/include/asm/cpufeatureset.h | 6 +++--- xen/arch/x86/include/asm/cpuid.h | 6 +++--- xen/arch/x86/include/asm/cpuidle.h | 4 ++-- xen/arch/x86/include/asm/current.h | 6 +++--- xen/arch/x86/include/asm/debugreg.h | 6 +++--- xen/arch/x86/include/asm/desc.h | 6 +++--- xen/arch/x86/include/asm/device.h | 6 +++--- xen/arch/x86/include/asm/dom0_build.h | 6 +++--- xen/arch/x86/include/asm/domain.h | 6 +++--- xen/arch/x86/include/asm/e820.h | 6 +++--- xen/arch/x86/include/asm/edd.h | 6 +++--- xen/arch/x86/include/asm/elf.h | 6 +++--- xen/arch/x86/include/asm/endbr.h | 6 +++--- xen/arch/x86/include/asm/event.h | 4 ++-- xen/arch/x86/include/asm/fixmap.h | 4 ++-- xen/arch/x86/include/asm/flushtlb.h | 6 +++--- xen/arch/x86/include/asm/gdbsx.h | 6 +++--- xen/arch/x86/include/asm/genapic.h | 4 ++-- xen/arch/x86/include/asm/grant_table.h | 6 +++--- xen/arch/x86/include/asm/guest.h | 6 +++--- xen/arch/x86/include/asm/guest/hyperv-hcall.h | 6 +++--- xen/arch/x86/include/asm/guest/hyperv-tlfs.h | 4 ++-- xen/arch/x86/include/asm/guest/hyperv.h | 6 +++--- xen/arch/x86/include/asm/guest/hypervisor.h | 6 +++--- xen/arch/x86/include/asm/guest/pvh-boot.h | 6 +++--- xen/arch/x86/include/asm/guest/xen-hcall.h | 6 +++--- xen/arch/x86/include/asm/guest/xen.h | 6 +++--- xen/arch/x86/include/asm/guest_access.h | 6 +++--- xen/arch/x86/include/asm/guest_atomics.h | 6 +++--- xen/arch/x86/include/asm/guest_pt.h | 6 +++--- xen/arch/x86/include/asm/hap.h | 4 ++-- xen/arch/x86/include/asm/hardirq.h | 6 +++--- xen/arch/x86/include/asm/hpet.h | 6 +++--- xen/arch/x86/include/asm/hvm/asid.h | 6 +++--- xen/arch/x86/include/asm/hvm/cacheattr.h | 6 +++--- xen/arch/x86/include/asm/hvm/domain.h | 6 +++--- xen/arch/x86/include/asm/hvm/emulate.h | 6 +++--- xen/arch/x86/include/asm/hvm/grant_table.h | 6 +++--- xen/arch/x86/include/asm/hvm/guest_access.h | 6 +++--- xen/arch/x86/include/asm/hvm/hvm.h | 6 +++--- xen/arch/x86/include/asm/hvm/io.h | 6 +++--- xen/arch/x86/include/asm/hvm/ioreq.h | 6 +++--- xen/arch/x86/include/asm/hvm/irq.h | 6 +++--- xen/arch/x86/include/asm/hvm/nestedhvm.h | 6 +++--- xen/arch/x86/include/asm/hvm/save.h | 6 +++--- xen/arch/x86/include/asm/hvm/support.h | 6 +++--- xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 4 ++-- xen/arch/x86/include/asm/hvm/svm/svm.h | 6 +++--- xen/arch/x86/include/asm/hvm/svm/svmdebug.h | 6 +++--- xen/arch/x86/include/asm/hvm/svm/vmcb.h | 4 ++-- xen/arch/x86/include/asm/hvm/vcpu.h | 6 +++--- xen/arch/x86/include/asm/hvm/vioapic.h | 6 +++--- xen/arch/x86/include/asm/hvm/viridian.h | 6 +++--- xen/arch/x86/include/asm/hvm/vlapic.h | 6 +++--- xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 4 ++-- xen/arch/x86/include/asm/hvm/vmx/vmx.h | 6 +++--- xen/arch/x86/include/asm/hvm/vmx/vvmx.h | 6 +++--- xen/arch/x86/include/asm/hvm/vpic.h | 6 +++--- xen/arch/x86/include/asm/hvm/vpt.h | 6 +++--- xen/arch/x86/include/asm/hypercall.h | 8 ++++---- xen/arch/x86/include/asm/i387.h | 6 +++--- xen/arch/x86/include/asm/intel-family.h | 6 +++--- xen/arch/x86/include/asm/invpcid.h | 6 +++--- xen/arch/x86/include/asm/io.h | 4 ++-- xen/arch/x86/include/asm/io_apic.h | 4 ++-- xen/arch/x86/include/asm/iocap.h | 6 +++--- xen/arch/x86/include/asm/iommu.h | 6 +++--- xen/arch/x86/include/asm/ioreq.h | 6 +++--- xen/arch/x86/include/asm/irq.h | 6 +++--- xen/arch/x86/include/asm/ldt.h | 4 ++-- xen/arch/x86/include/asm/mach-default/bios_ebda.h | 6 +++--- xen/arch/x86/include/asm/mach-default/io_ports.h | 6 +++--- xen/arch/x86/include/asm/mach-default/irq_vectors.h | 6 +++--- xen/arch/x86/include/asm/mach-default/mach_mpspec.h | 6 +++--- xen/arch/x86/include/asm/mach-generic/mach_apic.h | 6 +++--- xen/arch/x86/include/asm/machine_kexec.h | 6 +++--- xen/arch/x86/include/asm/mc146818rtc.h | 6 +++--- xen/arch/x86/include/asm/mce.h | 4 ++-- xen/arch/x86/include/asm/mem_paging.h | 6 +++--- xen/arch/x86/include/asm/mem_sharing.h | 6 +++--- xen/arch/x86/include/asm/microcode.h | 6 +++--- xen/arch/x86/include/asm/mm.h | 6 +++--- xen/arch/x86/include/asm/mpspec.h | 4 ++-- xen/arch/x86/include/asm/mpspec_def.h | 4 ++-- xen/arch/x86/include/asm/msi.h | 6 +++--- xen/arch/x86/include/asm/msr-index.h | 6 +++--- xen/arch/x86/include/asm/msr.h | 6 +++--- xen/arch/x86/include/asm/mtrr.h | 6 +++--- xen/arch/x86/include/asm/multicall.h | 6 +++--- xen/arch/x86/include/asm/mwait.h | 6 +++--- xen/arch/x86/include/asm/nmi.h | 6 +++--- xen/arch/x86/include/asm/nops.h | 6 +++--- xen/arch/x86/include/asm/nospec.h | 6 +++--- xen/arch/x86/include/asm/numa.h | 4 ++-- xen/arch/x86/include/asm/p2m.h | 8 ++++---- xen/arch/x86/include/asm/page-bits.h | 6 +++--- xen/arch/x86/include/asm/page.h | 6 +++--- xen/arch/x86/include/asm/paging.h | 4 ++-- xen/arch/x86/include/asm/pci.h | 6 +++--- xen/arch/x86/include/asm/perfc.h | 4 ++-- xen/arch/x86/include/asm/perfc_defn.h | 6 +++--- xen/arch/x86/include/asm/processor.h | 6 +++--- xen/arch/x86/include/asm/prot-key.h | 6 +++--- xen/arch/x86/include/asm/psr.h | 6 +++--- xen/arch/x86/include/asm/pt-contig-markers.h | 6 +++--- xen/arch/x86/include/asm/pv/domain.h | 6 +++--- xen/arch/x86/include/asm/pv/grant_table.h | 6 +++--- xen/arch/x86/include/asm/pv/mm.h | 6 +++--- xen/arch/x86/include/asm/pv/shim.h | 6 +++--- xen/arch/x86/include/asm/pv/trace.h | 6 +++--- xen/arch/x86/include/asm/pv/traps.h | 6 +++--- xen/arch/x86/include/asm/random.h | 6 +++--- xen/arch/x86/include/asm/regs.h | 6 +++--- xen/arch/x86/include/asm/setup.h | 4 ++-- xen/arch/x86/include/asm/shadow.h | 6 +++--- xen/arch/x86/include/asm/shared.h | 6 +++--- xen/arch/x86/include/asm/shstk.h | 6 +++--- xen/arch/x86/include/asm/smp.h | 4 ++-- xen/arch/x86/include/asm/softirq.h | 6 +++--- xen/arch/x86/include/asm/spec_ctrl.h | 6 +++--- xen/arch/x86/include/asm/spec_ctrl_asm.h | 6 +++--- xen/arch/x86/include/asm/spinlock.h | 6 +++--- xen/arch/x86/include/asm/string.h | 6 +++--- xen/arch/x86/include/asm/system.h | 4 ++-- xen/arch/x86/include/asm/time.h | 6 +++--- xen/arch/x86/include/asm/trampoline.h | 6 +++--- xen/arch/x86/include/asm/traps.h | 6 +++--- xen/arch/x86/include/asm/types.h | 6 +++--- xen/arch/x86/include/asm/uaccess.h | 6 +++--- xen/arch/x86/include/asm/vpmu.h | 6 +++--- xen/arch/x86/include/asm/x86-defns.h | 6 +++--- xen/arch/x86/include/asm/x86-vendors.h | 6 +++--- xen/arch/x86/include/asm/x86_64/elf.h | 6 +++--- xen/arch/x86/include/asm/x86_64/page.h | 6 +++--- xen/arch/x86/include/asm/x86_64/regs.h | 4 ++-- xen/arch/x86/include/asm/x86_64/system.h | 6 +++--- xen/arch/x86/include/asm/x86_64/uaccess.h | 6 +++--- xen/arch/x86/include/asm/x86_emulate.h | 6 +++--- xen/arch/x86/include/asm/xenoprof.h | 6 +++--- xen/arch/x86/include/asm/xstate.h | 6 +++--- xen/arch/x86/mm/hap/private.h | 6 +++--- xen/arch/x86/mm/mm-locks.h | 6 +++--- xen/arch/x86/mm/p2m.h | 6 +++--- xen/arch/x86/mm/shadow/private.h | 6 +++--- xen/arch/x86/mm/shadow/types.h | 6 +++--- xen/arch/x86/oprofile/op_counter.h | 6 +++--- xen/arch/x86/oprofile/op_x86_model.h | 6 +++--- xen/arch/x86/pv/emulate.h | 6 +++--- xen/arch/x86/pv/mm.h | 6 +++--- xen/arch/x86/x86_emulate/x86_emulate.h | 6 +++--- xen/include/public/arch-x86/cpufeatureset.h | 6 +++--- xen/include/public/arch-x86/cpuid.h | 6 +++--- xen/include/public/arch-x86/guest-acpi.h | 6 +++--- xen/include/public/arch-x86/hvm/save.h | 6 +++--- xen/include/public/arch-x86/hvm/start_info.h | 6 +++--- xen/include/public/arch-x86/pmu.h | 6 +++--- xen/include/public/arch-x86/xen-mca.h | 6 +++--- xen/include/public/arch-x86/xen-x86_32.h | 6 +++--- xen/include/public/arch-x86/xen-x86_64.h | 6 +++--- xen/include/public/arch-x86/xen.h | 6 +++--- xen/include/xen/lib/x86/cpu-policy.h | 6 +++--- xen/lib/x86/private.h | 6 +++--- 194 files changed, 554 insertions(+), 554 deletions(-) diff --git a/xen/arch/x86/boot/video.h b/xen/arch/x86/boot/video.h index 1203515f9e..cecd8965b7 100644 --- a/xen/arch/x86/boot/video.h +++ b/xen/arch/x86/boot/video.h @@ -1,5 +1,5 @@ -#ifndef __BOOT_VIDEO_H__ -#define __BOOT_VIDEO_H__ +#ifndef X86__BOOT__VIDEO_H +#define X86__BOOT__VIDEO_H =20 /* * Video modes numbered by menu position -- NOT RECOMMENDED because of lack @@ -71,4 +71,4 @@ struct boot_video_info { extern struct boot_video_info boot_vid_info; #endif /* __ASSEMBLY__ */ =20 -#endif /* __BOOT_VIDEO_H__ */ +#endif /* X86__BOOT__VIDEO_H */ diff --git a/xen/arch/x86/cpu/mcheck/barrier.h b/xen/arch/x86/cpu/mcheck/ba= rrier.h index 7ec483226f..c4c59ce627 100644 --- a/xen/arch/x86/cpu/mcheck/barrier.h +++ b/xen/arch/x86/cpu/mcheck/barrier.h @@ -1,5 +1,5 @@ -#ifndef _MCHECK_BARRIER_H -#define _MCHECK_BARRIER_H +#ifndef X86__CPU__MCHECK__BARRIER_H +#define X86__CPU__MCHECK__BARRIER_H =20 #include =20 @@ -58,4 +58,4 @@ void mce_barrier_exit(struct mce_softirq_barrier *bar, bo= ol do_wait); =20 void mce_barrier(struct mce_softirq_barrier *bar); =20 -#endif /* _MCHECK_BARRIER_H */ +#endif /* X86__CPU__MCHECK__BARRIER_H */ diff --git a/xen/arch/x86/cpu/mcheck/mcaction.h b/xen/arch/x86/cpu/mcheck/m= caction.h index 6c79498cd2..e5a7cb9e0d 100644 --- a/xen/arch/x86/cpu/mcheck/mcaction.h +++ b/xen/arch/x86/cpu/mcheck/mcaction.h @@ -1,5 +1,5 @@ -#ifndef _MCHECK_ACTION_H -#define _MCHECK_ACTION_H +#ifndef X86__CPU__MCHECK__MCACTION_H +#define X86__CPU__MCHECK__MCACTION_H =20 #include #include "x86_mca.h" diff --git a/xen/arch/x86/cpu/mcheck/mce.h b/xen/arch/x86/cpu/mcheck/mce.h index eba4b536c7..f2a423f029 100644 --- a/xen/arch/x86/cpu/mcheck/mce.h +++ b/xen/arch/x86/cpu/mcheck/mce.h @@ -1,6 +1,6 @@ -#ifndef _MCE_H +#ifndef X86__CPU__MCHECK__MCE_H =20 -#define _MCE_H +#define X86__CPU__MCHECK__MCE_H =20 #include #include @@ -244,4 +244,4 @@ struct mce { =20 extern int apei_write_mce(struct mce *m); =20 -#endif /* _MCE_H */ +#endif /* X86__CPU__MCHECK__MCE_H */ diff --git a/xen/arch/x86/cpu/mcheck/mce_amd.h b/xen/arch/x86/cpu/mcheck/mc= e_amd.h index c12c25d745..35e3bc6a6d 100644 --- a/xen/arch/x86/cpu/mcheck/mce_amd.h +++ b/xen/arch/x86/cpu/mcheck/mce_amd.h @@ -1,5 +1,5 @@ -#ifndef _MCHECK_AMD_H -#define _MCHECK_AMD_H +#ifndef X86__CPU__MCHECK__MCE_AMD_H +#define X86__CPU__MCHECK__MCE_AMD_H =20 bool cf_check mc_amd_recoverable_scan(uint64_t status); bool cf_check mc_amd_addrcheck(uint64_t status, uint64_t misc, int addrtyp= e); diff --git a/xen/arch/x86/cpu/mcheck/mctelem.h b/xen/arch/x86/cpu/mcheck/mc= telem.h index f4c5ff848d..a77c9bcffb 100644 --- a/xen/arch/x86/cpu/mcheck/mctelem.h +++ b/xen/arch/x86/cpu/mcheck/mctelem.h @@ -8,9 +8,9 @@ * License. */ =20 -#ifndef _MCTELEM_H +#ifndef X86__CPU__MCHECK__MCTELEM_H =20 -#define _MCTELEM_H +#define X86__CPU__MCHECK__MCTELEM_H =20 #include #include diff --git a/xen/arch/x86/cpu/mcheck/util.h b/xen/arch/x86/cpu/mcheck/util.h index a5468b89fa..b4a71e21d4 100644 --- a/xen/arch/x86/cpu/mcheck/util.h +++ b/xen/arch/x86/cpu/mcheck/util.h @@ -1,5 +1,5 @@ -#ifndef _MCHECK_UTIL_H -#define _MCHECK_UTIL_H +#ifndef X86__CPU__MCHECK__UTIL_H +#define X86__CPU__MCHECK__UTIL_H =20 void mce_panic_check(void); =20 diff --git a/xen/arch/x86/cpu/mcheck/vmce.h b/xen/arch/x86/cpu/mcheck/vmce.h index a9a325f776..d934b02c8b 100644 --- a/xen/arch/x86/cpu/mcheck/vmce.h +++ b/xen/arch/x86/cpu/mcheck/vmce.h @@ -1,5 +1,5 @@ -#ifndef _MCHECK_VMCE_H -#define _MCHECK_VMCE_H +#ifndef X86__CPU__MCHECK__VMCE_H +#define X86__CPU__MCHECK__VMCE_H =20 #include "x86_mca.h" =20 diff --git a/xen/arch/x86/cpu/mcheck/x86_mca.h b/xen/arch/x86/cpu/mcheck/x8= 6_mca.h index 18116737af..d5514762ed 100644 --- a/xen/arch/x86/cpu/mcheck/x86_mca.h +++ b/xen/arch/x86/cpu/mcheck/x86_mca.h @@ -4,8 +4,8 @@ * Copyright (c) 2007-2012 Advanced Micro Devices, Inc.=20 */ =20 -#ifndef X86_MCA_H -#define X86_MCA_H +#ifndef X86__CPU__MCHECK__X86_MCA_H +#define X86__CPU__MCHECK__X86_MCA_H =20 #include =20 @@ -150,4 +150,4 @@ struct mca_error_handler /* Global variables */ extern bool opt_mce; =20 -#endif /* X86_MCA_H */ +#endif /* X86__CPU__MCHECK__X86_MCA_H */ diff --git a/xen/arch/x86/cpu/microcode/private.h b/xen/arch/x86/cpu/microc= ode/private.h index c72f060ac3..a3707863b9 100644 --- a/xen/arch/x86/cpu/microcode/private.h +++ b/xen/arch/x86/cpu/microcode/private.h @@ -1,5 +1,5 @@ -#ifndef ASM_X86_MICROCODE_PRIVATE_H -#define ASM_X86_MICROCODE_PRIVATE_H +#ifndef X86__CPU__MICROCODE__PRIVATE_H +#define X86__CPU__MICROCODE__PRIVATE_H =20 #include =20 @@ -83,4 +83,4 @@ void ucode_probe_intel(struct microcode_ops *ops); static inline void ucode_probe_intel(struct microcode_ops *ops) {} #endif =20 -#endif /* ASM_X86_MICROCODE_PRIVATE_H */ +#endif /* X86__CPU__MICROCODE__PRIVATE_H */ diff --git a/xen/arch/x86/cpu/mtrr/mtrr.h b/xen/arch/x86/cpu/mtrr/mtrr.h index 632bf658be..c23987cedc 100644 --- a/xen/arch/x86/cpu/mtrr/mtrr.h +++ b/xen/arch/x86/cpu/mtrr/mtrr.h @@ -1,8 +1,8 @@ /* * local mtrr defines. */ -#ifndef X86_CPU_MTRR_MTRR_H -#define X86_CPU_MTRR_MTRR_H +#ifndef X86__CPU__MTRR__MTRR_H +#define X86__CPU__MTRR__MTRR_H =20 #define MTRR_CHANGE_MASK_FIXED 0x01 #define MTRR_CHANGE_MASK_VARIABLE 0x02 @@ -28,4 +28,4 @@ extern unsigned int num_var_ranges; =20 void mtrr_state_warn(void); =20 -#endif /* X86_CPU_MTRR_MTRR_H */ +#endif /* X86__CPU__MTRR__MTRR_H */ diff --git a/xen/arch/x86/guest/hyperv/private.h b/xen/arch/x86/guest/hyper= v/private.h index 0277e8314c..790872e3c9 100644 --- a/xen/arch/x86/guest/hyperv/private.h +++ b/xen/arch/x86/guest/hyperv/private.h @@ -7,8 +7,8 @@ * Copyright (c) 2020 Microsoft. */ =20 -#ifndef __XEN_HYPERV_PRIVIATE_H__ -#define __XEN_HYPERV_PRIVIATE_H__ +#ifndef X86__GUEST__HYPERV__PRIVATE_H +#define X86__GUEST__HYPERV__PRIVATE_H =20 #include #include @@ -29,4 +29,4 @@ int hyperv_flush_tlb(const cpumask_t *mask, const void *v= a, /* Returns number of banks, -ev if error */ int cpumask_to_vpset(struct hv_vpset *vpset, const cpumask_t *mask); =20 -#endif /* __XEN_HYPERV_PRIVIATE_H__ */ +#endif /* X86__GUEST__HYPERV__PRIVATE_H */ diff --git a/xen/arch/x86/hvm/svm/nestedhvm.h b/xen/arch/x86/hvm/svm/nested= hvm.h index 43245e13de..dd3533c74b 100644 --- a/xen/arch/x86/hvm/svm/nestedhvm.h +++ b/xen/arch/x86/hvm/svm/nestedhvm.h @@ -5,8 +5,8 @@ * Copyright (c) 2011, Advanced Micro Devices, Inc */ =20 -#ifndef __X86_HVM_SVM_NESTEDHVM_PRIV_H__ -#define __X86_HVM_SVM_NESTEDHVM_PRIV_H__ +#ifndef X86__HVM__SVM__NESTEDHVM_H +#define X86__HVM__SVM__NESTEDHVM_H =20 #include #include @@ -64,7 +64,7 @@ int cf_check nsvm_hap_walk_L1_p2m( =20 int nestedsvm_vcpu_interrupt(struct vcpu *v, const struct hvm_intack intac= k); =20 -#endif /* __X86_HVM_SVM_NESTEDHVM_PRIV_H__ */ +#endif /* X86__HVM__SVM__NESTEDHVM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/hvm/svm/svm.h b/xen/arch/x86/hvm/svm/svm.h index 8dbf37ff49..159cc71943 100644 --- a/xen/arch/x86/hvm/svm/svm.h +++ b/xen/arch/x86/hvm/svm/svm.h @@ -6,8 +6,8 @@ * Copyright (c) 2004, Intel Corporation. */ =20 -#ifndef __X86_HVM_SVM_SVM_PRIV_H__ -#define __X86_HVM_SVM_SVM_PRIV_H__ +#ifndef X86__HVM__SVM__SVM_H +#define X86__HVM__SVM__SVM_H =20 #include =20 @@ -86,7 +86,7 @@ unsigned int svm_get_task_switch_insn_len(void); #define _NPT_PFEC_in_gpt 33 #define NPT_PFEC_in_gpt (1UL<<_NPT_PFEC_in_gpt) =20 -#endif /* __X86_HVM_SVM_SVM_PRIV_H__ */ +#endif /* X86__HVM__SVM__SVM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/hvm/viridian/private.h b/xen/arch/x86/hvm/viridia= n/private.h index 1bf65c761c..c10544842f 100644 --- a/xen/arch/x86/hvm/viridian/private.h +++ b/xen/arch/x86/hvm/viridian/private.h @@ -1,7 +1,7 @@ /* Copyright (c) 2018 Citrix Systems Inc. */ =20 -#ifndef X86_HVM_VIRIDIAN_PRIVATE_H -#define X86_HVM_VIRIDIAN_PRIVATE_H +#ifndef X86__HVM__VIRIDIAN__PRIVATE_H +#define X86__HVM__VIRIDIAN__PRIVATE_H =20 #include #include @@ -57,7 +57,7 @@ void viridian_dump_guest_page(const struct vcpu *v, const= char *name, void viridian_map_guest_page(struct domain *d, struct viridian_page *vp); void viridian_unmap_guest_page(struct viridian_page *vp); =20 -#endif /* X86_HVM_VIRIDIAN_PRIVATE_H */ +#endif /* X86__HVM__VIRIDIAN__PRIVATE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/acpi.h b/xen/arch/x86/include/asm/acp= i.h index 217819dd61..5784b10b1f 100644 --- a/xen/arch/x86/include/asm/acpi.h +++ b/xen/arch/x86/include/asm/acpi.h @@ -1,5 +1,5 @@ -#ifndef _ASM_X86_ACPI_H -#define _ASM_X86_ACPI_H +#ifndef ASM__X86__ACPI_H +#define ASM__X86__ACPI_H =20 /* * Copyright (C) 2001 Paul Diefenbaugh diff --git a/xen/arch/x86/include/asm/alternative-asm.h b/xen/arch/x86/incl= ude/asm/alternative-asm.h index 83e8594f0e..9ad8fb9213 100644 --- a/xen/arch/x86/include/asm/alternative-asm.h +++ b/xen/arch/x86/include/asm/alternative-asm.h @@ -1,5 +1,5 @@ -#ifndef _ASM_X86_ALTERNATIVE_ASM_H_ -#define _ASM_X86_ALTERNATIVE_ASM_H_ +#ifndef ASM__X86__ALTERNATIVE_ASM_H +#define ASM__X86__ALTERNATIVE_ASM_H =20 #include =20 @@ -115,7 +115,7 @@ #undef as_true =20 #endif /* __ASSEMBLY__ */ -#endif /* _ASM_X86_ALTERNATIVE_ASM_H_ */ +#endif /* ASM__X86__ALTERNATIVE_ASM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/alternative.h b/xen/arch/x86/include/= asm/alternative.h index 38472fb58e..d4c0fb014c 100644 --- a/xen/arch/x86/include/asm/alternative.h +++ b/xen/arch/x86/include/asm/alternative.h @@ -1,5 +1,5 @@ -#ifndef __X86_ALTERNATIVE_H__ -#define __X86_ALTERNATIVE_H__ +#ifndef ASM__X86__ALTERNATIVE_H +#define ASM__X86__ALTERNATIVE_H =20 #ifdef __ASSEMBLY__ #include @@ -423,4 +423,4 @@ extern void alternative_branches(void); =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __X86_ALTERNATIVE_H__ */ +#endif /* ASM__X86__ALTERNATIVE_H */ diff --git a/xen/arch/x86/include/asm/altp2m.h b/xen/arch/x86/include/asm/a= ltp2m.h index c57a8c5588..f43b075ed0 100644 --- a/xen/arch/x86/include/asm/altp2m.h +++ b/xen/arch/x86/include/asm/altp2m.h @@ -4,8 +4,8 @@ * Copyright (c) 2014, Intel Corporation. */ =20 -#ifndef __ASM_X86_ALTP2M_H -#define __ASM_X86_ALTP2M_H +#ifndef ASM__X86__ALTP2M_H +#define ASM__X86__ALTP2M_H =20 #ifdef CONFIG_ALTP2M =20 @@ -46,4 +46,4 @@ void altp2m_vcpu_disable_ve(struct vcpu *v); =20 #endif =20 -#endif /* __ASM_X86_ALTP2M_H */ +#endif /* ASM__X86__ALTP2M_H */ diff --git a/xen/arch/x86/include/asm/amd.h b/xen/arch/x86/include/asm/amd.h index 9c9599a622..7dbd8fae06 100644 --- a/xen/arch/x86/include/asm/amd.h +++ b/xen/arch/x86/include/asm/amd.h @@ -2,8 +2,8 @@ * amd.h - AMD processor specific definitions */ =20 -#ifndef __AMD_H__ -#define __AMD_H__ +#ifndef ASM__X86__AMD_H +#define ASM__X86__AMD_H =20 #include =20 @@ -174,4 +174,4 @@ bool amd_setup_legacy_ssbd(void); void amd_set_legacy_ssbd(bool enable); void amd_set_cpuid_user_dis(bool enable); =20 -#endif /* __AMD_H__ */ +#endif /* ASM__X86__AMD_H */ diff --git a/xen/arch/x86/include/asm/apic.h b/xen/arch/x86/include/asm/api= c.h index d8eda6df6d..87970cfce7 100644 --- a/xen/arch/x86/include/asm/apic.h +++ b/xen/arch/x86/include/asm/apic.h @@ -1,5 +1,5 @@ -#ifndef __ASM_APIC_H -#define __ASM_APIC_H +#ifndef ASM__X86__APIC_H +#define ASM__X86__APIC_H =20 #include #include @@ -201,4 +201,4 @@ extern unsigned int nmi_watchdog; #define NMI_NONE 0 #define NMI_LOCAL_APIC 1 =20 -#endif /* __ASM_APIC_H */ +#endif /* ASM__X86__APIC_H */ diff --git a/xen/arch/x86/include/asm/apicdef.h b/xen/arch/x86/include/asm/= apicdef.h index 49e29ec801..8d9a29d488 100644 --- a/xen/arch/x86/include/asm/apicdef.h +++ b/xen/arch/x86/include/asm/apicdef.h @@ -1,5 +1,5 @@ -#ifndef __ASM_APICDEF_H -#define __ASM_APICDEF_H +#ifndef ASM__X86__APICDEF_H +#define ASM__X86__APICDEF_H =20 /* * Constants for various Intel APICs. (local APIC, IOAPIC, etc.) diff --git a/xen/arch/x86/include/asm/asm_defns.h b/xen/arch/x86/include/as= m/asm_defns.h index 92b4116a15..812bd5c52a 100644 --- a/xen/arch/x86/include/asm/asm_defns.h +++ b/xen/arch/x86/include/asm/asm_defns.h @@ -1,6 +1,6 @@ =20 -#ifndef __X86_ASM_DEFNS_H__ -#define __X86_ASM_DEFNS_H__ +#ifndef ASM__X86__ASM_DEFNS_H +#define ASM__X86__ASM_DEFNS_H =20 #ifndef COMPILE_OFFSETS /* NB. Auto-generated from arch/.../asm-offsets.c */ @@ -346,4 +346,4 @@ static always_inline void stac(void) #define ASM_CONSTANT(name, value) \ asm ( ".equ " #name ", %P0; .global " #name \ :: "i" ((value)) ); -#endif /* __X86_ASM_DEFNS_H__ */ +#endif /* ASM__X86__ASM_DEFNS_H */ diff --git a/xen/arch/x86/include/asm/atomic.h b/xen/arch/x86/include/asm/a= tomic.h index 16bd0ebfd7..f852b154ef 100644 --- a/xen/arch/x86/include/asm/atomic.h +++ b/xen/arch/x86/include/asm/atomic.h @@ -1,5 +1,5 @@ -#ifndef __ARCH_X86_ATOMIC__ -#define __ARCH_X86_ATOMIC__ +#ifndef ASM__X86__ATOMIC_H +#define ASM__X86__ATOMIC_H =20 #include #include @@ -236,4 +236,4 @@ static inline void atomic_and(int m, atomic_t *v) =20 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) =20 -#endif /* __ARCH_X86_ATOMIC__ */ +#endif /* ASM__X86__ATOMIC_H */ diff --git a/xen/arch/x86/include/asm/bitops.h b/xen/arch/x86/include/asm/b= itops.h index 39e37f1cbe..613310c1e2 100644 --- a/xen/arch/x86/include/asm/bitops.h +++ b/xen/arch/x86/include/asm/bitops.h @@ -1,5 +1,5 @@ -#ifndef _X86_BITOPS_H -#define _X86_BITOPS_H +#ifndef ASM__X86__BITOPS_H +#define ASM__X86__BITOPS_H =20 /* * Copyright 1992, Linus Torvalds. @@ -498,4 +498,4 @@ static always_inline unsigned int arch_hweightl(unsigne= d long x) } #define arch_hweightl arch_hweightl =20 -#endif /* _X86_BITOPS_H */ +#endif /* ASM__X86__BITOPS_H */ diff --git a/xen/arch/x86/include/asm/bug.h b/xen/arch/x86/include/asm/bug.h index e748b6c2f2..59a9871cba 100644 --- a/xen/arch/x86/include/asm/bug.h +++ b/xen/arch/x86/include/asm/bug.h @@ -1,5 +1,5 @@ -#ifndef __X86_BUG_H__ -#define __X86_BUG_H__ +#ifndef ASM__X86__BUG_H +#define ASM__X86__BUG_H =20 /* * Please do not include in the header any header that might @@ -68,4 +68,4 @@ =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __X86_BUG_H__ */ +#endif /* ASM__X86__BUG_H */ diff --git a/xen/arch/x86/include/asm/byteorder.h b/xen/arch/x86/include/as= m/byteorder.h index a877c07f67..802d50e3fc 100644 --- a/xen/arch/x86/include/asm/byteorder.h +++ b/xen/arch/x86/include/asm/byteorder.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_BYTEORDER_H__ -#define __ASM_X86_BYTEORDER_H__ +#ifndef ASM__X86__BYTEORDER_H +#define ASM__X86__BYTEORDER_H =20 #include #include @@ -33,4 +33,4 @@ static inline attr_const __u64 ___arch__swab64(__u64 val) =20 #include =20 -#endif /* __ASM_X86_BYTEORDER_H__ */ +#endif /* ASM__X86__BYTEORDER_H */ diff --git a/xen/arch/x86/include/asm/bzimage.h b/xen/arch/x86/include/asm/= bzimage.h index 7ed69d3910..53c86f0d5b 100644 --- a/xen/arch/x86/include/asm/bzimage.h +++ b/xen/arch/x86/include/asm/bzimage.h @@ -1,5 +1,5 @@ -#ifndef __X86_BZIMAGE_H__ -#define __X86_BZIMAGE_H__ +#ifndef ASM__X86__BZIMAGE_H +#define ASM__X86__BZIMAGE_H =20 #include =20 @@ -8,4 +8,4 @@ unsigned long bzimage_headroom(void *image_start, unsigned = long image_length); int bzimage_parse(void *image_base, void **image_start, unsigned long *image_len); =20 -#endif /* __X86_BZIMAGE_H__ */ +#endif /* ASM__X86__BZIMAGE_H */ diff --git a/xen/arch/x86/include/asm/cache.h b/xen/arch/x86/include/asm/ca= che.h index f15d10dc7f..8683cecee2 100644 --- a/xen/arch/x86/include/asm/cache.h +++ b/xen/arch/x86/include/asm/cache.h @@ -1,8 +1,8 @@ /* * include/asm-x86/cache.h */ -#ifndef __ARCH_X86_CACHE_H -#define __ARCH_X86_CACHE_H +#ifndef ASM__X86__CACHE_H +#define ASM__X86__CACHE_H =20 =20 /* L1 cache line size */ diff --git a/xen/arch/x86/include/asm/config.h b/xen/arch/x86/include/asm/c= onfig.h index f8a5a4913b..9d931f4ace 100644 --- a/xen/arch/x86/include/asm/config.h +++ b/xen/arch/x86/include/asm/config.h @@ -4,8 +4,8 @@ * A Linux-style configuration list. */ =20 -#ifndef __X86_CONFIG_H__ -#define __X86_CONFIG_H__ +#ifndef ASM__X86__CONFIG_H +#define ASM__X86__CONFIG_H =20 #define LONG_BYTEORDER 3 #define CONFIG_PAGING_LEVELS 4 @@ -292,4 +292,4 @@ extern unsigned long xen_phys_start; =20 #define ARCH_CRASH_SAVE_VMCOREINFO =20 -#endif /* __X86_CONFIG_H__ */ +#endif /* ASM__X86__CONFIG_H */ diff --git a/xen/arch/x86/include/asm/cpu-policy.h b/xen/arch/x86/include/a= sm/cpu-policy.h index 99d5a8e67e..c69df4526f 100644 --- a/xen/arch/x86/include/asm/cpu-policy.h +++ b/xen/arch/x86/include/asm/cpu-policy.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef X86_CPU_POLICY_H -#define X86_CPU_POLICY_H +#ifndef ASM__X86__CPU_POLICY_H +#define ASM__X86__CPU_POLICY_H =20 struct cpu_policy; struct domain; @@ -30,4 +30,4 @@ void recalculate_cpuid_policy(struct domain *d); */ void calculate_raw_cpu_policy(void); =20 -#endif /* X86_CPU_POLICY_H */ +#endif /* ASM__X86__CPU_POLICY_H */ diff --git a/xen/arch/x86/include/asm/cpufeature.h b/xen/arch/x86/include/a= sm/cpufeature.h index 3a06b6f297..478b9cd2bd 100644 --- a/xen/arch/x86/include/asm/cpufeature.h +++ b/xen/arch/x86/include/asm/cpufeature.h @@ -3,8 +3,8 @@ * * Defines x86 CPU feature bits */ -#ifndef __ASM_I386_CPUFEATURE_H -#define __ASM_I386_CPUFEATURE_H +#ifndef ASM__X86__CPUFEATURE_H +#define ASM__X86__CPUFEATURE_H =20 #include #include @@ -281,7 +281,7 @@ struct cpuid4_info { int cpuid4_cache_lookup(int index, struct cpuid4_info *this_leaf); #endif /* !__ASSEMBLY__ */ =20 -#endif /* __ASM_I386_CPUFEATURE_H */ +#endif /* ASM__X86__CPUFEATURE_H */ =20 /*=20 * Local Variables: diff --git a/xen/arch/x86/include/asm/cpufeatureset.h b/xen/arch/x86/includ= e/asm/cpufeatureset.h index a9c51bc514..037b4b6997 100644 --- a/xen/arch/x86/include/asm/cpufeatureset.h +++ b/xen/arch/x86/include/asm/cpufeatureset.h @@ -1,5 +1,5 @@ -#ifndef __XEN_X86_CPUFEATURESET_H__ -#define __XEN_X86_CPUFEATURESET_H__ +#ifndef ASM__X86__CPUFEATURESET_H +#define ASM__X86__CPUFEATURESET_H =20 #ifndef __ASSEMBLY__ =20 @@ -27,7 +27,7 @@ enum { =20 #undef XEN_CPUFEATURE =20 -#endif /* !__XEN_X86_CPUFEATURESET_H__ */ +#endif /* !ASM__X86__CPUFEATURESET_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/cpuid.h b/xen/arch/x86/include/asm/cp= uid.h index b32ba0bbfe..6cfebbb4eb 100644 --- a/xen/arch/x86/include/asm/cpuid.h +++ b/xen/arch/x86/include/asm/cpuid.h @@ -1,5 +1,5 @@ -#ifndef __X86_CPUID_H__ -#define __X86_CPUID_H__ +#ifndef ASM__X86__CPUID_H +#define ASM__X86__CPUID_H =20 #include =20 @@ -51,7 +51,7 @@ void guest_cpuid(const struct vcpu *v, uint32_t leaf, uint32_t subleaf, struct cpuid_leaf *res); =20 #endif /* __ASSEMBLY__ */ -#endif /* !__X86_CPUID_H__ */ +#endif /* !ASM__X86__CPUID_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/cpuidle.h b/xen/arch/x86/include/asm/= cpuidle.h index 3a6b73142b..bfa11d1451 100644 --- a/xen/arch/x86/include/asm/cpuidle.h +++ b/xen/arch/x86/include/asm/cpuidle.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_CPUIDLE_H__ -#define __ASM_X86_CPUIDLE_H__ +#ifndef ASM__X86__CPUIDLE_H +#define ASM__X86__CPUIDLE_H =20 #include #include diff --git a/xen/arch/x86/include/asm/current.h b/xen/arch/x86/include/asm/= current.h index bcec328c98..1aebbf991b 100644 --- a/xen/arch/x86/include/asm/current.h +++ b/xen/arch/x86/include/asm/current.h @@ -4,8 +4,8 @@ * Information structure that lives at the bottom of the per-cpu Xen stack. */ =20 -#ifndef __X86_CURRENT_H__ -#define __X86_CURRENT_H__ +#ifndef ASM__X86__CURRENT_H +#define ASM__X86__CURRENT_H =20 #include #include @@ -211,4 +211,4 @@ unsigned long get_stack_dump_bottom (unsigned long sp); */ DECLARE_PER_CPU(struct vcpu *, curr_vcpu); =20 -#endif /* __X86_CURRENT_H__ */ +#endif /* ASM__X86__CURRENT_H */ diff --git a/xen/arch/x86/include/asm/debugreg.h b/xen/arch/x86/include/asm= /debugreg.h index 23aa592e40..05f1925f9b 100644 --- a/xen/arch/x86/include/asm/debugreg.h +++ b/xen/arch/x86/include/asm/debugreg.h @@ -1,5 +1,5 @@ -#ifndef _X86_DEBUGREG_H -#define _X86_DEBUGREG_H +#ifndef ASM__X86__DEBUGREG_H +#define ASM__X86__DEBUGREG_H =20 #include =20 @@ -140,4 +140,4 @@ static inline unsigned int x86_bp_width(unsigned int dr= 7, unsigned int bp) return 1U << raw; } =20 -#endif /* _X86_DEBUGREG_H */ +#endif /* ASM__X86__DEBUGREG_H */ diff --git a/xen/arch/x86/include/asm/desc.h b/xen/arch/x86/include/asm/des= c.h index a1e0807d97..1598205ab0 100644 --- a/xen/arch/x86/include/asm/desc.h +++ b/xen/arch/x86/include/asm/desc.h @@ -1,5 +1,5 @@ -#ifndef __ARCH_DESC_H -#define __ARCH_DESC_H +#ifndef ASM__X86__DESC_H +#define ASM__X86__DESC_H =20 #include =20 @@ -240,4 +240,4 @@ static inline void ltr(unsigned int sel) =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __ARCH_DESC_H */ +#endif /* ASM__X86__DESC_H */ diff --git a/xen/arch/x86/include/asm/device.h b/xen/arch/x86/include/asm/d= evice.h index f2acc7effd..32a71e35b0 100644 --- a/xen/arch/x86/include/asm/device.h +++ b/xen/arch/x86/include/asm/device.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_DEVICE_H -#define __ASM_X86_DEVICE_H +#ifndef ASM__X86__DEVICE_H +#define ASM__X86__DEVICE_H =20 #include =20 @@ -13,7 +13,7 @@ typedef struct pci_dev device_t; #define dev_is_pci(dev) ((void)(dev), 1) #define pci_to_dev(pci) (pci) =20 -#endif /* __ASM_X86_DEVICE_H */ +#endif /* ASM__X86__DEVICE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/dom0_build.h b/xen/arch/x86/include/a= sm/dom0_build.h index 107c1ff983..8fafa7e3a4 100644 --- a/xen/arch/x86/include/asm/dom0_build.h +++ b/xen/arch/x86/include/asm/dom0_build.h @@ -1,5 +1,5 @@ -#ifndef _DOM0_BUILD_H_ -#define _DOM0_BUILD_H_ +#ifndef ASM__X86__DOM0_BUILD_H +#define ASM__X86__DOM0_BUILD_H =20 #include #include @@ -29,7 +29,7 @@ unsigned long dom0_paging_pages(const struct domain *d, void dom0_update_physmap(bool compat, unsigned long pfn, unsigned long mfn, unsigned long vphysmap_s); =20 -#endif /* _DOM0_BUILD_H_ */ +#endif /* ASM__X86__DOM0_BUILD_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/domain.h b/xen/arch/x86/include/asm/d= omain.h index bdcdb8de09..188b063788 100644 --- a/xen/arch/x86/include/asm/domain.h +++ b/xen/arch/x86/include/asm/domain.h @@ -1,5 +1,5 @@ -#ifndef __ASM_DOMAIN_H__ -#define __ASM_DOMAIN_H__ +#ifndef ASM__X86__DOMAIN_H +#define ASM__X86__DOMAIN_H =20 #include #include @@ -796,7 +796,7 @@ unsigned int domain_max_paddr_bits(const struct domain = *d); #define arch_init_idle_domain arch_init_idle_domain void arch_init_idle_domain(struct domain *d); =20 -#endif /* __ASM_DOMAIN_H__ */ +#endif /* ASM__X86__DOMAIN_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/e820.h b/xen/arch/x86/include/asm/e82= 0.h index af90085d65..bda19aab2c 100644 --- a/xen/arch/x86/include/asm/e820.h +++ b/xen/arch/x86/include/asm/e820.h @@ -1,5 +1,5 @@ -#ifndef __E820_HEADER -#define __E820_HEADER +#ifndef ASM__X86__E820_H +#define ASM__X86__E820_H =20 /* * PC BIOS standard E820 types and structure. @@ -40,4 +40,4 @@ extern struct e820map e820_raw; extern struct e820map bios_e820map[]; extern unsigned int bios_e820nr; =20 -#endif /*__E820_HEADER*/ +#endif /*ASM__X86__E820_H*/ diff --git a/xen/arch/x86/include/asm/edd.h b/xen/arch/x86/include/asm/edd.h index afaa23732a..f3cda0c1d7 100644 --- a/xen/arch/x86/include/asm/edd.h +++ b/xen/arch/x86/include/asm/edd.h @@ -20,8 +20,8 @@ * GNU General Public License for more details. */ =20 -#ifndef __XEN_EDD_H__ -#define __XEN_EDD_H__ +#ifndef ASM__X86__EDD_H +#define ASM__X86__EDD_H =20 #ifndef __ASSEMBLY__ =20 @@ -161,4 +161,4 @@ extern u8 boot_edd_info_nr; #define EDDEXTSIZE 8 #define EDDPARMSIZE 74 =20 -#endif /* __XEN_EDD_H__ */ +#endif /* ASM__X86__EDD_H */ diff --git a/xen/arch/x86/include/asm/elf.h b/xen/arch/x86/include/asm/elf.h index 1d7ea96e22..9ce6f69830 100644 --- a/xen/arch/x86/include/asm/elf.h +++ b/xen/arch/x86/include/asm/elf.h @@ -1,5 +1,5 @@ -#ifndef __X86_ELF_H__ -#define __X86_ELF_H__ +#ifndef ASM__X86__ELF_H +#define ASM__X86__ELF_H =20 typedef struct { unsigned long cr0, cr2, cr3, cr4; @@ -7,7 +7,7 @@ typedef struct { =20 #include =20 -#endif /* __X86_ELF_H__ */ +#endif /* ASM__X86__ELF_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/endbr.h b/xen/arch/x86/include/asm/en= dbr.h index ba3bae7147..f6b8b9435e 100644 --- a/xen/arch/x86/include/asm/endbr.h +++ b/xen/arch/x86/include/asm/endbr.h @@ -2,8 +2,8 @@ /*************************************************************************= ***** * Copyright (c) 2021-2022 Citrix Systems Ltd. */ -#ifndef XEN_ASM_ENDBR_H -#define XEN_ASM_ENDBR_H +#ifndef ASM__X86__ENDBR_H +#define ASM__X86__ENDBR_H =20 #include =20 @@ -66,4 +66,4 @@ static inline void place_endbr64_poison(void *ptr) *(uint32_t *)ptr =3D gen_endbr64_poison(); } =20 -#endif /* XEN_ASM_ENDBR_H */ +#endif /* ASM__X86__ENDBR_H */ diff --git a/xen/arch/x86/include/asm/event.h b/xen/arch/x86/include/asm/ev= ent.h index 5e09ede6d7..eb91d3345a 100644 --- a/xen/arch/x86/include/asm/event.h +++ b/xen/arch/x86/include/asm/event.h @@ -6,8 +6,8 @@ * */ =20 -#ifndef __ASM_EVENT_H__ -#define __ASM_EVENT_H__ +#ifndef ASM__X86__EVENT_H +#define ASM__X86__EVENT_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/fixmap.h b/xen/arch/x86/include/asm/f= ixmap.h index 516ec3fa6c..53eb149d1a 100644 --- a/xen/arch/x86/include/asm/fixmap.h +++ b/xen/arch/x86/include/asm/fixmap.h @@ -9,8 +9,8 @@ * Modifications for Xen are copyright (c) 2002-2004, K A Fraser */ =20 -#ifndef _ASM_FIXMAP_H -#define _ASM_FIXMAP_H +#ifndef ASM__X86__FIXMAP_H +#define ASM__X86__FIXMAP_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/flushtlb.h b/xen/arch/x86/include/asm= /flushtlb.h index bb0ad58db4..7f60cca86c 100644 --- a/xen/arch/x86/include/asm/flushtlb.h +++ b/xen/arch/x86/include/asm/flushtlb.h @@ -7,8 +7,8 @@ * Copyright (c) 2003-2004, K A Fraser */ =20 -#ifndef __FLUSHTLB_H__ -#define __FLUSHTLB_H__ +#ifndef ASM__X86__FLUSHTLB_H +#define ASM__X86__FLUSHTLB_H =20 #include #include @@ -201,4 +201,4 @@ static inline int clean_dcache_va_range(const void *p, = unsigned long size) unsigned int guest_flush_tlb_flags(const struct domain *d); void guest_flush_tlb_mask(const struct domain *d, const cpumask_t *mask); =20 -#endif /* __FLUSHTLB_H__ */ +#endif /* ASM__X86__FLUSHTLB_H */ diff --git a/xen/arch/x86/include/asm/gdbsx.h b/xen/arch/x86/include/asm/gd= bsx.h index e906be9ea3..d22e5ad361 100644 --- a/xen/arch/x86/include/asm/gdbsx.h +++ b/xen/arch/x86/include/asm/gdbsx.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __X86_GDBX_H__ -#define __X86_GDBX_H__ +#ifndef ASM__X86__GDBSX_H +#define ASM__X86__GDBSX_H =20 #include =20 @@ -26,4 +26,4 @@ static inline int gdbsx_domctl( } =20 #endif /* CONFIG_GDBSX */ -#endif /* __X86_GDBX_H__ */ +#endif /* ASM__X86__GDBSX_H */ diff --git a/xen/arch/x86/include/asm/genapic.h b/xen/arch/x86/include/asm/= genapic.h index a694371c6d..9e6b7c7530 100644 --- a/xen/arch/x86/include/asm/genapic.h +++ b/xen/arch/x86/include/asm/genapic.h @@ -1,5 +1,5 @@ -#ifndef _ASM_GENAPIC_H -#define _ASM_GENAPIC_H 1 +#ifndef ASM__X86__GENAPIC_H +#define ASM__X86__GENAPIC_H 1 =20 #include =20 diff --git a/xen/arch/x86/include/asm/grant_table.h b/xen/arch/x86/include/= asm/grant_table.h index 5c23cec90c..67a4f84cbb 100644 --- a/xen/arch/x86/include/asm/grant_table.h +++ b/xen/arch/x86/include/asm/grant_table.h @@ -4,8 +4,8 @@ * Copyright (c) 2004-2005 K A Fraser */ =20 -#ifndef __ASM_GRANT_TABLE_H__ -#define __ASM_GRANT_TABLE_H__ +#ifndef ASM__X86__GRANT_TABLE_H +#define ASM__X86__GRANT_TABLE_H =20 #include =20 @@ -72,4 +72,4 @@ static inline void gnttab_clear_flags(struct domain *d, #define gnttab_need_iommu_mapping(d) \ (!paging_mode_translate(d) && need_iommu_pt_sync(d)) =20 -#endif /* __ASM_GRANT_TABLE_H__ */ +#endif /* ASM__X86__GRANT_TABLE_H */ diff --git a/xen/arch/x86/include/asm/guest.h b/xen/arch/x86/include/asm/gu= est.h index c3124c7b8d..826000261c 100644 --- a/xen/arch/x86/include/asm/guest.h +++ b/xen/arch/x86/include/asm/guest.h @@ -5,8 +5,8 @@ * Copyright (c) 2017 Citrix Systems Ltd. */ =20 -#ifndef __X86_GUEST_H__ -#define __X86_GUEST_H__ +#ifndef ASM__X86__GUEST_H +#define ASM__X86__GUEST_H =20 #include #include @@ -15,7 +15,7 @@ #include #include =20 -#endif /* __X86_GUEST_H__ */ +#endif /* ASM__X86__GUEST_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/hyperv-hcall.h b/xen/arch/x86/i= nclude/asm/guest/hyperv-hcall.h index b76dbf9ccc..2fdf6d5143 100644 --- a/xen/arch/x86/include/asm/guest/hyperv-hcall.h +++ b/xen/arch/x86/include/asm/guest/hyperv-hcall.h @@ -5,8 +5,8 @@ * Copyright (c) 2019 Microsoft. */ =20 -#ifndef __X86_HYPERV_HCALL_H__ -#define __X86_HYPERV_HCALL_H__ +#ifndef ASM__X86__GUEST__HYPERV_HCALL_H +#define ASM__X86__GUEST__HYPERV_HCALL_H =20 #include #include @@ -73,7 +73,7 @@ static inline uint64_t hv_do_rep_hypercall(uint16_t code,= uint16_t rep_count, return status; } =20 -#endif /* __X86_HYPERV_HCALL_H__ */ +#endif /* ASM__X86__GUEST__HYPERV_HCALL_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/hyperv-tlfs.h b/xen/arch/x86/in= clude/asm/guest/hyperv-tlfs.h index a6915ad731..ba7ca0e450 100644 --- a/xen/arch/x86/include/asm/guest/hyperv-tlfs.h +++ b/xen/arch/x86/include/asm/guest/hyperv-tlfs.h @@ -6,8 +6,8 @@ * https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/refe= rence/tlfs */ =20 -#ifndef _ASM_X86_HYPERV_TLFS_H -#define _ASM_X86_HYPERV_TLFS_H +#ifndef ASM__X86__GUEST__HYPERV_TLFS_H +#define ASM__X86__GUEST__HYPERV_TLFS_H =20 #include #include diff --git a/xen/arch/x86/include/asm/guest/hyperv.h b/xen/arch/x86/include= /asm/guest/hyperv.h index c05efdce71..fe0c2c485c 100644 --- a/xen/arch/x86/include/asm/guest/hyperv.h +++ b/xen/arch/x86/include/asm/guest/hyperv.h @@ -5,8 +5,8 @@ * Copyright (c) 2019 Microsoft. */ =20 -#ifndef __X86_GUEST_HYPERV_H__ -#define __X86_GUEST_HYPERV_H__ +#ifndef ASM__X86__GUEST__HYPERV_H +#define ASM__X86__GUEST__HYPERV_H =20 #include =20 @@ -62,7 +62,7 @@ const struct hypervisor_ops *hyperv_probe(void); static inline const struct hypervisor_ops *hyperv_probe(void) { return NUL= L; } =20 #endif /* CONFIG_HYPERV_GUEST */ -#endif /* __X86_GUEST_HYPERV_H__ */ +#endif /* ASM__X86__GUEST__HYPERV_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/hypervisor.h b/xen/arch/x86/inc= lude/asm/guest/hypervisor.h index c8f18a035e..5ab900e14c 100644 --- a/xen/arch/x86/include/asm/guest/hypervisor.h +++ b/xen/arch/x86/include/asm/guest/hypervisor.h @@ -5,8 +5,8 @@ * Copyright (c) 2019 Microsoft. */ =20 -#ifndef __X86_HYPERVISOR_H__ -#define __X86_HYPERVISOR_H__ +#ifndef ASM__X86__GUEST__HYPERVISOR_H +#define ASM__X86__GUEST__HYPERVISOR_H =20 #include =20 @@ -61,7 +61,7 @@ static inline int hypervisor_flush_tlb(const cpumask_t *m= ask, const void *va, =20 #endif /* CONFIG_GUEST */ =20 -#endif /* __X86_HYPERVISOR_H__ */ +#endif /* ASM__X86__GUEST__HYPERVISOR_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/pvh-boot.h b/xen/arch/x86/inclu= de/asm/guest/pvh-boot.h index 247ba6899e..77f1fb7190 100644 --- a/xen/arch/x86/include/asm/guest/pvh-boot.h +++ b/xen/arch/x86/include/asm/guest/pvh-boot.h @@ -5,8 +5,8 @@ * Copyright (c) 2017 Citrix Systems Ltd. */ =20 -#ifndef __X86_PVH_BOOT_H__ -#define __X86_PVH_BOOT_H__ +#ifndef ASM__X86__GUEST__PVH_BOOT_H +#define ASM__X86__GUEST__PVH_BOOT_H =20 #include =20 @@ -34,7 +34,7 @@ static inline void pvh_print_info(void) } =20 #endif /* CONFIG_PVH_GUEST */ -#endif /* __X86_PVH_BOOT_H__ */ +#endif /* ASM__X86__GUEST__PVH_BOOT_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/xen-hcall.h b/xen/arch/x86/incl= ude/asm/guest/xen-hcall.h index 665b472d05..c078ade2a7 100644 --- a/xen/arch/x86/include/asm/guest/xen-hcall.h +++ b/xen/arch/x86/include/asm/guest/xen-hcall.h @@ -5,8 +5,8 @@ * Copyright (c) 2017 Citrix Systems Ltd. */ =20 -#ifndef __X86_XEN_HYPERCALL_H__ -#define __X86_XEN_HYPERCALL_H__ +#ifndef ASM__X86__GUEST__XEN_HCALL_H +#define ASM__X86__GUEST__XEN_HCALL_H =20 #ifdef CONFIG_XEN_GUEST =20 @@ -188,7 +188,7 @@ static inline long xen_hypercall_shutdown(unsigned int = reason) } =20 #endif /* CONFIG_XEN_GUEST */ -#endif /* __X86_XEN_HYPERCALL_H__ */ +#endif /* ASM__X86__GUEST__XEN_HCALL_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest/xen.h b/xen/arch/x86/include/as= m/guest/xen.h index c330c4d400..1e46fbf0d3 100644 --- a/xen/arch/x86/include/asm/guest/xen.h +++ b/xen/arch/x86/include/asm/guest/xen.h @@ -5,8 +5,8 @@ * Copyright (c) 2017 Citrix Systems Ltd. */ =20 -#ifndef __X86_GUEST_XEN_H__ -#define __X86_GUEST_XEN_H__ +#ifndef ASM__X86__GUEST__XEN_H +#define ASM__X86__GUEST__XEN_H =20 #include =20 @@ -37,7 +37,7 @@ DECLARE_PER_CPU(struct vcpu_info *, vcpu_info); static inline const struct hypervisor_ops *xg_probe(void) { return NULL; } =20 #endif /* CONFIG_XEN_GUEST */ -#endif /* __X86_GUEST_XEN_H__ */ +#endif /* ASM__X86__GUEST__XEN_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest_access.h b/xen/arch/x86/include= /asm/guest_access.h index 69716c8b41..e42d2c59ba 100644 --- a/xen/arch/x86/include/asm/guest_access.h +++ b/xen/arch/x86/include/asm/guest_access.h @@ -4,8 +4,8 @@ * Copyright (c) 2006, K A Fraser */ =20 -#ifndef __ASM_X86_GUEST_ACCESS_H__ -#define __ASM_X86_GUEST_ACCESS_H__ +#ifndef ASM__X86__GUEST_ACCESS_H +#define ASM__X86__GUEST_ACCESS_H =20 #include #include @@ -47,7 +47,7 @@ (last)-(first)+1, \ sizeof(*(hnd).p))) =20 -#endif /* __ASM_X86_GUEST_ACCESS_H__ */ +#endif /* ASM__X86__GUEST_ACCESS_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/guest_atomics.h b/xen/arch/x86/includ= e/asm/guest_atomics.h index c2dec0d650..99f861fc39 100644 --- a/xen/arch/x86/include/asm/guest_atomics.h +++ b/xen/arch/x86/include/asm/guest_atomics.h @@ -1,5 +1,5 @@ -#ifndef _X86_GUEST_ATOMICS_H -#define _X86_GUEST_ATOMICS_H +#ifndef ASM__X86__GUEST_ATOMICS_H +#define ASM__X86__GUEST_ATOMICS_H =20 #include =20 @@ -22,7 +22,7 @@ #define guest_cmpxchg(d, ptr, o, n) ((void)(d), cmpxchg(ptr, o, n)) #define guest_cmpxchg64 guest_cmpxchg =20 -#endif /* _X86_GUEST_ATOMICS_H */ +#endif /* ASM__X86__GUEST_ATOMICS_H */ /* * Local variables: * mode: C diff --git a/xen/arch/x86/include/asm/guest_pt.h b/xen/arch/x86/include/asm= /guest_pt.h index 21473f9bbc..943504dc76 100644 --- a/xen/arch/x86/include/asm/guest_pt.h +++ b/xen/arch/x86/include/asm/guest_pt.h @@ -13,8 +13,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_ASM_GUEST_PT_H -#define _XEN_ASM_GUEST_PT_H +#ifndef ASM__X86__GUEST_PT_H +#define ASM__X86__GUEST_PT_H =20 #if !defined(GUEST_PAGING_LEVELS) #error GUEST_PAGING_LEVELS not defined @@ -452,4 +452,4 @@ static inline void print_gw(const walk_t *gw) ); } =20 -#endif /* _XEN_ASM_GUEST_PT_H */ +#endif /* ASM__X86__GUEST_PT_H */ diff --git a/xen/arch/x86/include/asm/hap.h b/xen/arch/x86/include/asm/hap.h index f01ce73fb4..cf1a7584f3 100644 --- a/xen/arch/x86/include/asm/hap.h +++ b/xen/arch/x86/include/asm/hap.h @@ -10,8 +10,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_HAP_H -#define _XEN_HAP_H +#ifndef ASM__X86__HAP_H +#define ASM__X86__HAP_H =20 #define HAP_PRINTK(_f, _a...) \ debugtrace_printk("hap: %s(): " _f, __func__, ##_a) diff --git a/xen/arch/x86/include/asm/hardirq.h b/xen/arch/x86/include/asm/= hardirq.h index 342361cb6f..9385d220fc 100644 --- a/xen/arch/x86/include/asm/hardirq.h +++ b/xen/arch/x86/include/asm/hardirq.h @@ -1,5 +1,5 @@ -#ifndef __ASM_HARDIRQ_H -#define __ASM_HARDIRQ_H +#ifndef ASM__X86__HARDIRQ_H +#define ASM__X86__HARDIRQ_H =20 #include #include @@ -34,4 +34,4 @@ void ack_bad_irq(unsigned int irq); extern void apic_intr_init(void); extern void smp_intr_init(void); =20 -#endif /* __ASM_HARDIRQ_H */ +#endif /* ASM__X86__HARDIRQ_H */ diff --git a/xen/arch/x86/include/asm/hpet.h b/xen/arch/x86/include/asm/hpe= t.h index c402c63168..66c5867b96 100644 --- a/xen/arch/x86/include/asm/hpet.h +++ b/xen/arch/x86/include/asm/hpet.h @@ -1,5 +1,5 @@ -#ifndef __X86_HPET_H__ -#define __X86_HPET_H__ +#ifndef ASM__X86__HPET_H +#define ASM__X86__HPET_H =20 /* * Documentation on HPET can be found at: @@ -98,4 +98,4 @@ void hpet_disable_legacy_broadcast(void); =20 extern void (*pv_rtc_handler)(uint8_t reg, uint8_t value); =20 -#endif /* __X86_HPET_H__ */ +#endif /* ASM__X86__HPET_H */ diff --git a/xen/arch/x86/include/asm/hvm/asid.h b/xen/arch/x86/include/asm= /hvm/asid.h index 17c58353d1..dff25733ed 100644 --- a/xen/arch/x86/include/asm/hvm/asid.h +++ b/xen/arch/x86/include/asm/hvm/asid.h @@ -5,8 +5,8 @@ * Copyright (c) 2009, Citrix Systems, Inc. */ =20 -#ifndef __ASM_X86_HVM_ASID_H__ -#define __ASM_X86_HVM_ASID_H__ +#ifndef ASM__X86__HVM__ASID_H +#define ASM__X86__HVM__ASID_H =20 =20 struct vcpu; @@ -28,7 +28,7 @@ void hvm_asid_flush_core(void); * boolean indicating whether all ASIDs must be flushed. */ bool hvm_asid_handle_vmenter(struct hvm_vcpu_asid *asid); =20 -#endif /* __ASM_X86_HVM_ASID_H__ */ +#endif /* ASM__X86__HVM__ASID_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/cacheattr.h b/xen/arch/x86/includ= e/asm/hvm/cacheattr.h index 79e721d074..fe7bb8d54f 100644 --- a/xen/arch/x86/include/asm/hvm/cacheattr.h +++ b/xen/arch/x86/include/asm/hvm/cacheattr.h @@ -1,5 +1,5 @@ -#ifndef __HVM_CACHEATTR_H__ -#define __HVM_CACHEATTR_H__ +#ifndef ASM__X86__HVM__CACHEATTR_H +#define ASM__X86__HVM__CACHEATTR_H =20 #include =20 @@ -20,4 +20,4 @@ int hvm_get_mem_pinned_cacheattr(struct domain *d, gfn_t = gfn, int hvm_set_mem_pinned_cacheattr(struct domain *d, uint64_t gfn_start, uint64_t gfn_end, uint32_t type); =20 -#endif /* __HVM_CACHEATTR_H__ */ +#endif /* ASM__X86__HVM__CACHEATTR_H */ diff --git a/xen/arch/x86/include/asm/hvm/domain.h b/xen/arch/x86/include/a= sm/hvm/domain.h index 333501d5f2..9d4137c43a 100644 --- a/xen/arch/x86/include/asm/hvm/domain.h +++ b/xen/arch/x86/include/asm/hvm/domain.h @@ -6,8 +6,8 @@ * Copyright (c) 2005, International Business Machines Corporation */ =20 -#ifndef __ASM_X86_HVM_DOMAIN_H__ -#define __ASM_X86_HVM_DOMAIN_H__ +#ifndef ASM__X86__HVM__DOMAIN_H +#define ASM__X86__HVM__DOMAIN_H =20 #include #include @@ -151,7 +151,7 @@ struct hvm_domain { #endif }; =20 -#endif /* __ASM_X86_HVM_DOMAIN_H__ */ +#endif /* ASM__X86__HVM__DOMAIN_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/emulate.h b/xen/arch/x86/include/= asm/hvm/emulate.h index 29d679442e..9e382803ef 100644 --- a/xen/arch/x86/include/asm/hvm/emulate.h +++ b/xen/arch/x86/include/asm/hvm/emulate.h @@ -9,8 +9,8 @@ * Keir Fraser */ =20 -#ifndef __ASM_X86_HVM_EMULATE_H__ -#define __ASM_X86_HVM_EMULATE_H__ +#ifndef ASM__X86__HVM__EMULATE_H +#define ASM__X86__HVM__EMULATE_H =20 #include #include @@ -143,7 +143,7 @@ static inline void hvmemul_write_cache(const struct vcp= u *v, paddr_t gpa, void hvm_dump_emulation_state(const char *loglvl, const char *prefix, struct hvm_emulate_ctxt *hvmemul_ctxt, int r= c); =20 -#endif /* __ASM_X86_HVM_EMULATE_H__ */ +#endif /* ASM__X86__HVM__EMULATE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/grant_table.h b/xen/arch/x86/incl= ude/asm/hvm/grant_table.h index 01e23f79b8..ec6c6251d3 100644 --- a/xen/arch/x86/include/asm/hvm/grant_table.h +++ b/xen/arch/x86/include/asm/hvm/grant_table.h @@ -7,8 +7,8 @@ * Copyright (C) 2017 Wei Liu */ =20 -#ifndef __X86_HVM_GRANT_TABLE_H__ -#define __X86_HVM_GRANT_TABLE_H__ +#ifndef ASM__X86__HVM__GRANT_TABLE_H +#define ASM__X86__HVM__GRANT_TABLE_H =20 #include =20 @@ -39,7 +39,7 @@ static inline int replace_grant_p2m_mapping(uint64_t addr= , mfn_t frame, =20 #endif =20 -#endif /* __X86_HVM_GRANT_TABLE_H__ */ +#endif /* ASM__X86__HVM__GRANT_TABLE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/guest_access.h b/xen/arch/x86/inc= lude/asm/hvm/guest_access.h index edacba75db..007d1ff70b 100644 --- a/xen/arch/x86/include/asm/hvm/guest_access.h +++ b/xen/arch/x86/include/asm/hvm/guest_access.h @@ -1,8 +1,8 @@ -#ifndef __ASM_X86_HVM_GUEST_ACCESS_H__ -#define __ASM_X86_HVM_GUEST_ACCESS_H__ +#ifndef ASM__X86__HVM__GUEST_ACCESS_H +#define ASM__X86__HVM__GUEST_ACCESS_H =20 unsigned int copy_to_user_hvm(void *to, const void *from, unsigned int len= ); unsigned int clear_user_hvm(void *to, unsigned int len); unsigned int copy_from_user_hvm(void *to, const void *from, unsigned int l= en); =20 -#endif /* __ASM_X86_HVM_GUEST_ACCESS_H__ */ +#endif /* ASM__X86__HVM__GUEST_ACCESS_H */ diff --git a/xen/arch/x86/include/asm/hvm/hvm.h b/xen/arch/x86/include/asm/= hvm/hvm.h index dd7d4872b5..1a320fe5c8 100644 --- a/xen/arch/x86/include/asm/hvm/hvm.h +++ b/xen/arch/x86/include/asm/hvm/hvm.h @@ -6,8 +6,8 @@ * Copyright (c) 2005, International Business Machines Corporation. */ =20 -#ifndef __ASM_X86_HVM_HVM_H__ -#define __ASM_X86_HVM_HVM_H__ +#ifndef ASM__X86__HVM__HVM_H +#define ASM__X86__HVM__HVM_H =20 #include =20 @@ -967,7 +967,7 @@ static inline void hvm_set_reg(struct vcpu *v, unsigned= int reg, uint64_t val) =20 #endif /* CONFIG_HVM */ =20 -#endif /* __ASM_X86_HVM_HVM_H__ */ +#endif /* ASM__X86__HVM__HVM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/io.h b/xen/arch/x86/include/asm/h= vm/io.h index f2b8431fac..f7e4550f0a 100644 --- a/xen/arch/x86/include/asm/hvm/io.h +++ b/xen/arch/x86/include/asm/hvm/io.h @@ -5,8 +5,8 @@ * Copyright (c) 2004, Intel Corporation. */ =20 -#ifndef __ASM_X86_HVM_IO_H__ -#define __ASM_X86_HVM_IO_H__ +#ifndef ASM__X86__HVM__IO_H +#define ASM__X86__HVM__IO_H =20 #include #include @@ -135,7 +135,7 @@ void destroy_vpci_mmcfg(struct domain *d); /* Remove MMCFG regions from a given rangeset. */ int vpci_subtract_mmcfg(const struct domain *d, struct rangeset *r); =20 -#endif /* __ASM_X86_HVM_IO_H__ */ +#endif /* ASM__X86__HVM__IO_H */ =20 =20 /* diff --git a/xen/arch/x86/include/asm/hvm/ioreq.h b/xen/arch/x86/include/as= m/hvm/ioreq.h index 84be14fd08..2e7254d640 100644 --- a/xen/arch/x86/include/asm/hvm/ioreq.h +++ b/xen/arch/x86/include/asm/hvm/ioreq.h @@ -5,15 +5,15 @@ * Copyright (c) 2016 Citrix Systems Inc. */ =20 -#ifndef __ASM_X86_HVM_IOREQ_H__ -#define __ASM_X86_HVM_IOREQ_H__ +#ifndef ASM__X86__HVM__IOREQ_H +#define ASM__X86__HVM__IOREQ_H =20 /* This correlation must not be altered */ #define IOREQ_STATUS_HANDLED X86EMUL_OKAY #define IOREQ_STATUS_UNHANDLED X86EMUL_UNHANDLEABLE #define IOREQ_STATUS_RETRY X86EMUL_RETRY =20 -#endif /* __ASM_X86_HVM_IOREQ_H__ */ +#endif /* ASM__X86__HVM__IOREQ_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/irq.h b/xen/arch/x86/include/asm/= hvm/irq.h index 87e89993a4..41ae7eef8d 100644 --- a/xen/arch/x86/include/asm/hvm/irq.h +++ b/xen/arch/x86/include/asm/hvm/irq.h @@ -7,8 +7,8 @@ * Copyright (c) 2006, K A Fraser, XenSource Inc. */ =20 -#ifndef __ASM_X86_HVM_IRQ_H__ -#define __ASM_X86_HVM_IRQ_H__ +#ifndef ASM__X86__HVM__IRQ_H +#define ASM__X86__HVM__IRQ_H =20 #include =20 @@ -213,4 +213,4 @@ void hvm_set_callback_via(struct domain *d, uint64_t vi= a); struct pirq; bool hvm_domain_use_pirq(const struct domain *d, const struct pirq *pirq); =20 -#endif /* __ASM_X86_HVM_IRQ_H__ */ +#endif /* ASM__X86__HVM__IRQ_H */ diff --git a/xen/arch/x86/include/asm/hvm/nestedhvm.h b/xen/arch/x86/includ= e/asm/hvm/nestedhvm.h index ea2c1bc328..323d749a73 100644 --- a/xen/arch/x86/include/asm/hvm/nestedhvm.h +++ b/xen/arch/x86/include/asm/hvm/nestedhvm.h @@ -5,8 +5,8 @@ * Author: Christoph Egger */ =20 -#ifndef _HVM_NESTEDHVM_H -#define _HVM_NESTEDHVM_H +#ifndef ASM__X86__HVM__NESTEDHVM_H +#define ASM__X86__HVM__NESTEDHVM_H =20 #include /* for uintNN_t */ #include /* for struct vcpu, struct domain */ @@ -86,4 +86,4 @@ static inline bool vvmcx_valid(const struct vcpu *v) void start_nested_svm(struct hvm_function_table *hvm_function_table); void start_nested_vmx(struct hvm_function_table *hvm_function_table); =20 -#endif /* _HVM_NESTEDHVM_H */ +#endif /* ASM__X86__HVM__NESTEDHVM_H */ diff --git a/xen/arch/x86/include/asm/hvm/save.h b/xen/arch/x86/include/asm= /hvm/save.h index ec8de02931..fc1e81fd28 100644 --- a/xen/arch/x86/include/asm/hvm/save.h +++ b/xen/arch/x86/include/asm/hvm/save.h @@ -3,8 +3,8 @@ * save.h: HVM support routines for save/restore */ =20 -#ifndef __XEN_HVM_SAVE_H__ -#define __XEN_HVM_SAVE_H__ +#ifndef ASM__X86__HVM__SAVE_H +#define ASM__X86__HVM__SAVE_H =20 #include #include @@ -146,4 +146,4 @@ int hvm_save_one(struct domain *d, unsigned int typecod= e, unsigned int instance, XEN_GUEST_HANDLE_64(uint8) handle, uint64_t *bufsz); int hvm_load(struct domain *d, bool real, hvm_domain_context_t *h); =20 -#endif /* __XEN_HVM_SAVE_H__ */ +#endif /* ASM__X86__HVM__SAVE_H */ diff --git a/xen/arch/x86/include/asm/hvm/support.h b/xen/arch/x86/include/= asm/hvm/support.h index 2a7ba36af0..f2d77b9268 100644 --- a/xen/arch/x86/include/asm/hvm/support.h +++ b/xen/arch/x86/include/asm/hvm/support.h @@ -6,8 +6,8 @@ * Copyright (c) 2005, International Business Machines Corporation. */ =20 -#ifndef __ASM_X86_HVM_SUPPORT_H__ -#define __ASM_X86_HVM_SUPPORT_H__ +#ifndef ASM__X86__HVM__SUPPORT_H +#define ASM__X86__HVM__SUPPORT_H =20 #include #include @@ -146,7 +146,7 @@ int __must_check hvm_msr_read_intercept( int __must_check hvm_msr_write_intercept( unsigned int msr, uint64_t msr_content, bool may_defer); =20 -#endif /* __ASM_X86_HVM_SUPPORT_H__ */ +#endif /* ASM__X86__HVM__SUPPORT_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/svm/nestedsvm.h b/xen/arch/x86/in= clude/asm/hvm/svm/nestedsvm.h index 205989e800..6c9f29f06c 100644 --- a/xen/arch/x86/include/asm/hvm/svm/nestedsvm.h +++ b/xen/arch/x86/include/asm/hvm/svm/nestedsvm.h @@ -4,8 +4,8 @@ * Copyright (c) 2011, Advanced Micro Devices, Inc * */ -#ifndef __ASM_X86_HVM_SVM_NESTEDSVM_H__ -#define __ASM_X86_HVM_SVM_NESTEDSVM_H__ +#ifndef ASM__X86__HVM__SVM__NESTEDSVM_H +#define ASM__X86__HVM__SVM__NESTEDSVM_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/hvm/svm/svm.h b/xen/arch/x86/include/= asm/hvm/svm/svm.h index 4eeeb25da9..f35126cc40 100644 --- a/xen/arch/x86/include/asm/hvm/svm/svm.h +++ b/xen/arch/x86/include/asm/hvm/svm/svm.h @@ -6,8 +6,8 @@ * */ =20 -#ifndef __ASM_X86_HVM_SVM_H__ -#define __ASM_X86_HVM_SVM_H__ +#ifndef ASM__X86__HVM__SVM__SVM_H +#define ASM__X86__HVM__SVM__SVM_H =20 /* * PV context switch helpers. Prefetching the VMCB area itself has been s= hown @@ -57,4 +57,4 @@ static inline bool cpu_has_svm_feature(unsigned int feat) #define cpu_has_svm_sss cpu_has_svm_feature(SVM_FEATURE_SSS) #define cpu_has_svm_spec_ctrl cpu_has_svm_feature(SVM_FEATURE_SPEC_CTRL) =20 -#endif /* __ASM_X86_HVM_SVM_H__ */ +#endif /* ASM__X86__HVM__SVM__SVM_H */ diff --git a/xen/arch/x86/include/asm/hvm/svm/svmdebug.h b/xen/arch/x86/inc= lude/asm/hvm/svm/svmdebug.h index 2fb76ec24c..4db4203f6a 100644 --- a/xen/arch/x86/include/asm/hvm/svm/svmdebug.h +++ b/xen/arch/x86/include/asm/hvm/svm/svmdebug.h @@ -5,8 +5,8 @@ * */ =20 -#ifndef __ASM_X86_HVM_SVM_SVMDEBUG_H__ -#define __ASM_X86_HVM_SVM_SVMDEBUG_H__ +#ifndef ASM__X86__HVM__SVM__SVMDEBUG_H +#define ASM__X86__HVM__SVM__SVMDEBUG_H =20 #include #include @@ -16,4 +16,4 @@ void svm_vmcb_dump(const char *from, const struct vmcb_st= ruct *vmcb); bool svm_vmcb_isvalid(const char *from, const struct vmcb_struct *vmcb, const struct vcpu *v, bool verbose); =20 -#endif /* __ASM_X86_HVM_SVM_SVMDEBUG_H__ */ +#endif /* ASM__X86__HVM__SVM__SVMDEBUG_H */ diff --git a/xen/arch/x86/include/asm/hvm/svm/vmcb.h b/xen/arch/x86/include= /asm/hvm/svm/vmcb.h index 28f715e376..ed937480ae 100644 --- a/xen/arch/x86/include/asm/hvm/svm/vmcb.h +++ b/xen/arch/x86/include/asm/hvm/svm/vmcb.h @@ -5,8 +5,8 @@ * Copyright (c) 2004, Intel Corporation. * */ -#ifndef __ASM_X86_HVM_SVM_VMCB_H__ -#define __ASM_X86_HVM_SVM_VMCB_H__ +#ifndef ASM__X86__HVM__SVM__VMCB_H +#define ASM__X86__HVM__SVM__VMCB_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/hvm/vcpu.h b/xen/arch/x86/include/asm= /hvm/vcpu.h index 64c7a6fede..866516aae9 100644 --- a/xen/arch/x86/include/asm/hvm/vcpu.h +++ b/xen/arch/x86/include/asm/hvm/vcpu.h @@ -5,8 +5,8 @@ * Copyright (c) 2005, International Business Machines Corporation. */ =20 -#ifndef __ASM_X86_HVM_VCPU_H__ -#define __ASM_X86_HVM_VCPU_H__ +#ifndef ASM__X86__HVM__VCPU_H +#define ASM__X86__HVM__VCPU_H =20 #include #include @@ -186,7 +186,7 @@ struct hvm_vcpu { struct viridian_vcpu *viridian; }; =20 -#endif /* __ASM_X86_HVM_VCPU_H__ */ +#endif /* ASM__X86__HVM__VCPU_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/vioapic.h b/xen/arch/x86/include/= asm/hvm/vioapic.h index 68af6dce79..5020bb9d2f 100644 --- a/xen/arch/x86/include/asm/hvm/vioapic.h +++ b/xen/arch/x86/include/asm/hvm/vioapic.h @@ -21,8 +21,8 @@ * License along with this library; If not, see . */ =20 -#ifndef __ASM_X86_HVM_VIOAPIC_H__ -#define __ASM_X86_HVM_VIOAPIC_H__ +#ifndef ASM__X86__HVM__VIOAPIC_H +#define ASM__X86__HVM__VIOAPIC_H =20 #include #include @@ -69,4 +69,4 @@ int vioapic_get_mask(const struct domain *d, unsigned int= gsi); int cf_check vioapic_get_vector(const struct domain *d, unsigned int gsi); int vioapic_get_trigger_mode(const struct domain *d, unsigned int gsi); =20 -#endif /* __ASM_X86_HVM_VIOAPIC_H__ */ +#endif /* ASM__X86__HVM__VIOAPIC_H */ diff --git a/xen/arch/x86/include/asm/hvm/viridian.h b/xen/arch/x86/include= /asm/hvm/viridian.h index 4c8ff6e80b..07854a95de 100644 --- a/xen/arch/x86/include/asm/hvm/viridian.h +++ b/xen/arch/x86/include/asm/hvm/viridian.h @@ -6,8 +6,8 @@ * */ =20 -#ifndef __ASM_X86_HVM_VIRIDIAN_H__ -#define __ASM_X86_HVM_VIRIDIAN_H__ +#ifndef ASM__X86__HVM__VIRIDIAN_H +#define ASM__X86__HVM__VIRIDIAN_H =20 #include =20 @@ -99,7 +99,7 @@ void viridian_synic_poll(struct vcpu *v); bool viridian_synic_is_auto_eoi_sint(const struct vcpu *v, unsigned int vector); =20 -#endif /* __ASM_X86_HVM_VIRIDIAN_H__ */ +#endif /* ASM__X86__HVM__VIRIDIAN_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/hvm/vlapic.h b/xen/arch/x86/include/a= sm/hvm/vlapic.h index 2c4ff94ae7..3e729cd146 100644 --- a/xen/arch/x86/include/asm/hvm/vlapic.h +++ b/xen/arch/x86/include/asm/hvm/vlapic.h @@ -6,8 +6,8 @@ * Copyright (c) 2006 Keir Fraser, XenSource Inc. */ =20 -#ifndef __ASM_X86_HVM_VLAPIC_H__ -#define __ASM_X86_HVM_VLAPIC_H__ +#ifndef ASM__X86__HVM__VLAPIC_H +#define ASM__X86__HVM__VLAPIC_H =20 #include #include @@ -137,4 +137,4 @@ bool vlapic_match_dest( const struct vlapic *target, const struct vlapic *source, int short_hand, uint32_t dest, bool dest_mode); =20 -#endif /* __ASM_X86_HVM_VLAPIC_H__ */ +#endif /* ASM__X86__HVM__VLAPIC_H */ diff --git a/xen/arch/x86/include/asm/hvm/vmx/vmcs.h b/xen/arch/x86/include= /asm/hvm/vmx/vmcs.h index 939b87eb50..d96007838e 100644 --- a/xen/arch/x86/include/asm/hvm/vmx/vmcs.h +++ b/xen/arch/x86/include/asm/hvm/vmx/vmcs.h @@ -4,8 +4,8 @@ * Copyright (c) 2004, Intel Corporation. * */ -#ifndef __ASM_X86_HVM_VMX_VMCS_H__ -#define __ASM_X86_HVM_VMX_VMCS_H__ +#ifndef ASM__X86__HVM__VMX__VMCS_H +#define ASM__X86__HVM__VMX__VMCS_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/hvm/vmx/vmx.h b/xen/arch/x86/include/= asm/hvm/vmx/vmx.h index f0ec459622..d8e23d313b 100644 --- a/xen/arch/x86/include/asm/hvm/vmx/vmx.h +++ b/xen/arch/x86/include/asm/hvm/vmx/vmx.h @@ -4,8 +4,8 @@ * Copyright (c) 2004, Intel Corporation. * */ -#ifndef __ASM_X86_HVM_VMX_VMX_H__ -#define __ASM_X86_HVM_VMX_VMX_H__ +#ifndef ASM__X86__HVM__VMX__VMX_H +#define ASM__X86__HVM__VMX__VMX_H =20 #include #include @@ -676,4 +676,4 @@ typedef union ldt_or_tr_instr_info { }; } ldt_or_tr_instr_info_t; =20 -#endif /* __ASM_X86_HVM_VMX_VMX_H__ */ +#endif /* ASM__X86__HVM__VMX__VMX_H */ diff --git a/xen/arch/x86/include/asm/hvm/vmx/vvmx.h b/xen/arch/x86/include= /asm/hvm/vmx/vvmx.h index da10d3fa96..551390e245 100644 --- a/xen/arch/x86/include/asm/hvm/vmx/vvmx.h +++ b/xen/arch/x86/include/asm/hvm/vmx/vvmx.h @@ -8,8 +8,8 @@ * Eddie Dong * */ -#ifndef __ASM_X86_HVM_VVMX_H__ -#define __ASM_X86_HVM_VVMX_H__ +#ifndef ASM__X86__HVM__VMX__VVMX_H +#define ASM__X86__HVM__VMX__VVMX_H =20 struct vvmcs_list { unsigned long vvmcs_mfn; @@ -199,5 +199,5 @@ int nept_translate_l2ga(struct vcpu *v, paddr_t l2ga, uint64_t *exit_qual, uint32_t *exit_reason); int nvmx_cpu_up_prepare(unsigned int cpu); void nvmx_cpu_dead(unsigned int cpu); -#endif /* __ASM_X86_HVM_VVMX_H__ */ +#endif /* ASM__X86__HVM__VMX__VVMX_H */ =20 diff --git a/xen/arch/x86/include/asm/hvm/vpic.h b/xen/arch/x86/include/asm= /hvm/vpic.h index d71b270193..6dfbd3ef9e 100644 --- a/xen/arch/x86/include/asm/hvm/vpic.h +++ b/xen/arch/x86/include/asm/hvm/vpic.h @@ -24,8 +24,8 @@ * IN THE SOFTWARE. */ =20 -#ifndef __ASM_X86_HVM_VPIC_H__ -#define __ASM_X86_HVM_VPIC_H__ +#ifndef ASM__X86__HVM__VPIC_H +#define ASM__X86__HVM__VPIC_H =20 struct domain; struct vcpu; @@ -37,4 +37,4 @@ void vpic_reset(struct domain *d); int vpic_ack_pending_irq(struct vcpu *v); int is_periodic_irq(struct vcpu *v, int irq, int type); =20 -#endif /* __ASM_X86_HVM_VPIC_H__ */ =20 +#endif /* ASM__X86__HVM__VPIC_H */ =20 diff --git a/xen/arch/x86/include/asm/hvm/vpt.h b/xen/arch/x86/include/asm/= hvm/vpt.h index 0b92b28625..61abea565f 100644 --- a/xen/arch/x86/include/asm/hvm/vpt.h +++ b/xen/arch/x86/include/asm/hvm/vpt.h @@ -5,8 +5,8 @@ * Copyright (c) 2004, Intel Corporation. */ =20 -#ifndef __ASM_X86_HVM_VPT_H__ -#define __ASM_X86_HVM_VPT_H__ +#ifndef ASM__X86__HVM__VPT_H +#define ASM__X86__HVM__VPT_H =20 #include #include @@ -196,4 +196,4 @@ void hpet_init(struct domain *d); void hpet_deinit(struct domain *d); void hpet_reset(struct domain *d); =20 -#endif /* __ASM_X86_HVM_VPT_H__ */ +#endif /* ASM__X86__HVM__VPT_H */ diff --git a/xen/arch/x86/include/asm/hypercall.h b/xen/arch/x86/include/as= m/hypercall.h index f6e9e2313b..7ff9609589 100644 --- a/xen/arch/x86/include/asm/hypercall.h +++ b/xen/arch/x86/include/asm/hypercall.h @@ -3,12 +3,12 @@ */ =20 /* SAF-10-safe direct inclusion guard before */ -#ifndef __XEN_HYPERCALL_H__ +#ifndef XEN__HYPERCALL_H #error "asm/hypercall.h should not be included directly - include xen/hype= rcall.h instead" #endif =20 -#ifndef __ASM_X86_HYPERCALL_H__ -#define __ASM_X86_HYPERCALL_H__ +#ifndef ASM__X86__HYPERCALL_H +#define ASM__X86__HYPERCALL_H =20 #include #include @@ -81,4 +81,4 @@ static inline void clobber_regs32(struct cpu_user_regs *r= egs, clobber_regs ## b(r, array_access_nospec(t ## b, n)); \ }) =20 -#endif /* __ASM_X86_HYPERCALL_H__ */ +#endif /* ASM__X86__HYPERCALL_H */ diff --git a/xen/arch/x86/include/asm/i387.h b/xen/arch/x86/include/asm/i38= 7.h index a783549db9..452b0e4135 100644 --- a/xen/arch/x86/include/asm/i387.h +++ b/xen/arch/x86/include/asm/i387.h @@ -8,8 +8,8 @@ * Gareth Hughes , May 2000 */ =20 -#ifndef __ASM_I386_I387_H -#define __ASM_I386_I387_H +#ifndef ASM__X86__I387_H +#define ASM__X86__I387_H =20 #include =20 @@ -37,4 +37,4 @@ struct xsave_struct; void vcpu_setup_fpu(struct vcpu *v, struct xsave_struct *xsave_area, const void *data, unsigned int fcw_default); void vcpu_destroy_fpu(struct vcpu *v); -#endif /* __ASM_I386_I387_H */ +#endif /* ASM__X86__I387_H */ diff --git a/xen/arch/x86/include/asm/intel-family.h b/xen/arch/x86/include= /asm/intel-family.h index d44dd3f69f..d53d860753 100644 --- a/xen/arch/x86/include/asm/intel-family.h +++ b/xen/arch/x86/include/asm/intel-family.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_X86_INTEL_FAMILY_H -#define _ASM_X86_INTEL_FAMILY_H +#ifndef ASM__X86__INTEL_FAMILY_H +#define ASM__X86__INTEL_FAMILY_H =20 /* * "Big Core" Processors (Branded as Core, Xeon, etc...) @@ -167,4 +167,4 @@ /* Family 5 */ #define INTEL_FAM5_QUARK_X1000 0x09 /* Quark X1000 SoC */ =20 -#endif /* _ASM_X86_INTEL_FAMILY_H */ +#endif /* ASM__X86__INTEL_FAMILY_H */ diff --git a/xen/arch/x86/include/asm/invpcid.h b/xen/arch/x86/include/asm/= invpcid.h index bf5c30313a..670d69bae8 100644 --- a/xen/arch/x86/include/asm/invpcid.h +++ b/xen/arch/x86/include/asm/invpcid.h @@ -1,5 +1,5 @@ -#ifndef _ASM_X86_INVPCID_H_ -#define _ASM_X86_INVPCID_H_ +#ifndef ASM__X86__INVPCID_H +#define ASM__X86__INVPCID_H =20 #include =20 @@ -54,7 +54,7 @@ static inline void invpcid_flush_all_nonglobals(void) invpcid(0, 0, X86_INVPCID_ALL_NON_GLOBAL); } =20 -#endif /* _ASM_X86_INVPCID_H_ */ +#endif /* ASM__X86__INVPCID_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/io.h b/xen/arch/x86/include/asm/io.h index 1cb4217cff..f2f9bb3247 100644 --- a/xen/arch/x86/include/asm/io.h +++ b/xen/arch/x86/include/asm/io.h @@ -1,5 +1,5 @@ -#ifndef _ASM_IO_H -#define _ASM_IO_H +#ifndef ASM__X86__IO_H +#define ASM__X86__IO_H =20 #include #include diff --git a/xen/arch/x86/include/asm/io_apic.h b/xen/arch/x86/include/asm/= io_apic.h index 62456806c7..4446e768c2 100644 --- a/xen/arch/x86/include/asm/io_apic.h +++ b/xen/arch/x86/include/asm/io_apic.h @@ -1,5 +1,5 @@ -#ifndef __ASM_IO_APIC_H -#define __ASM_IO_APIC_H +#ifndef ASM__X86__IO_APIC_H +#define ASM__X86__IO_APIC_H =20 #include =20 diff --git a/xen/arch/x86/include/asm/iocap.h b/xen/arch/x86/include/asm/io= cap.h index 53d87ae8a3..15a0c42ccd 100644 --- a/xen/arch/x86/include/asm/iocap.h +++ b/xen/arch/x86/include/asm/iocap.h @@ -4,8 +4,8 @@ * Architecture-specific per-domain I/O capabilities. */ =20 -#ifndef __X86_IOCAP_H__ -#define __X86_IOCAP_H__ +#ifndef ASM__X86__IOCAP_H +#define ASM__X86__IOCAP_H =20 #include #include @@ -44,4 +44,4 @@ static inline int ioports_deny_access(struct domain *d, u= nsigned long s, return ret; } =20 -#endif /* __X86_IOCAP_H__ */ +#endif /* ASM__X86__IOCAP_H */ diff --git a/xen/arch/x86/include/asm/iommu.h b/xen/arch/x86/include/asm/io= mmu.h index 8dc464fbd3..6d7f876080 100644 --- a/xen/arch/x86/include/asm/iommu.h +++ b/xen/arch/x86/include/asm/iommu.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ARCH_X86_IOMMU_H__ -#define __ARCH_X86_IOMMU_H__ +#ifndef ASM__X86__IOMMU_H +#define ASM__X86__IOMMU_H =20 #include #include @@ -137,7 +137,7 @@ void iommu_queue_free_pgtable(struct domain_iommu *hd, = struct page_info *pg); /* Check [start, end] unity map range for correctness. */ bool iommu_unity_region_ok(const char *prefix, mfn_t start, mfn_t end); =20 -#endif /* !__ARCH_X86_IOMMU_H__ */ +#endif /* !ASM__X86__IOMMU_H */ /* * Local variables: * mode: C diff --git a/xen/arch/x86/include/asm/ioreq.h b/xen/arch/x86/include/asm/io= req.h index 5fe811eff5..065efcbe24 100644 --- a/xen/arch/x86/include/asm/ioreq.h +++ b/xen/arch/x86/include/asm/ioreq.h @@ -8,14 +8,14 @@ * Copyright (c) 2016 Citrix Systems Inc. */ =20 -#ifndef __ASM_X86_IOREQ_H__ -#define __ASM_X86_IOREQ_H__ +#ifndef ASM__X86__IOREQ_H +#define ASM__X86__IOREQ_H =20 #ifdef CONFIG_HVM #include #endif =20 -#endif /* __ASM_X86_IOREQ_H__ */ +#endif /* ASM__X86__IOREQ_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/irq.h b/xen/arch/x86/include/asm/irq.h index d3bc768068..86c2266578 100644 --- a/xen/arch/x86/include/asm/irq.h +++ b/xen/arch/x86/include/asm/irq.h @@ -1,5 +1,5 @@ -#ifndef _ASM_HW_IRQ_H -#define _ASM_HW_IRQ_H +#ifndef ASM__X86__IRQ_H +#define ASM__X86__IRQ_H =20 /* (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar */ =20 @@ -231,4 +231,4 @@ int allocate_and_map_gsi_pirq(struct domain *d, int ind= ex, int *pirq_p); int allocate_and_map_msi_pirq(struct domain *d, int index, int *pirq_p, int type, struct msi_info *msi); =20 -#endif /* _ASM_HW_IRQ_H */ +#endif /* ASM__X86__IRQ_H */ diff --git a/xen/arch/x86/include/asm/ldt.h b/xen/arch/x86/include/asm/ldt.h index 58e3e042fc..b77b53c1b8 100644 --- a/xen/arch/x86/include/asm/ldt.h +++ b/xen/arch/x86/include/asm/ldt.h @@ -1,6 +1,6 @@ =20 -#ifndef __ARCH_LDT_H -#define __ARCH_LDT_H +#ifndef ASM__X86__LDT_H +#define ASM__X86__LDT_H =20 #ifndef __ASSEMBLY__ =20 diff --git a/xen/arch/x86/include/asm/mach-default/bios_ebda.h b/xen/arch/x= 86/include/asm/mach-default/bios_ebda.h index 42de6b2a5b..b1daf7fa69 100644 --- a/xen/arch/x86/include/asm/mach-default/bios_ebda.h +++ b/xen/arch/x86/include/asm/mach-default/bios_ebda.h @@ -1,5 +1,5 @@ -#ifndef _MACH_BIOS_EBDA_H -#define _MACH_BIOS_EBDA_H +#ifndef ASM__X86__MACH_DEFAULT__BIOS_EBDA_H +#define ASM__X86__MACH_DEFAULT__BIOS_EBDA_H =20 /* * there is a real-mode segmented pointer pointing to the @@ -12,4 +12,4 @@ static inline unsigned int get_bios_ebda(void) return address; /* 0 means none */ } =20 -#endif /* _MACH_BIOS_EBDA_H */ +#endif /* ASM__X86__MACH_DEFAULT__BIOS_EBDA_H */ diff --git a/xen/arch/x86/include/asm/mach-default/io_ports.h b/xen/arch/x8= 6/include/asm/mach-default/io_ports.h index a96d9f6604..d8daaade5c 100644 --- a/xen/arch/x86/include/asm/mach-default/io_ports.h +++ b/xen/arch/x86/include/asm/mach-default/io_ports.h @@ -4,8 +4,8 @@ * Machine specific IO port address definition for generic. * Written by Osamu Tomita */ -#ifndef _MACH_IO_PORTS_H -#define _MACH_IO_PORTS_H +#ifndef ASM__X86__MACH_DEFAULT__IO_PORTS_H +#define ASM__X86__MACH_DEFAULT__IO_PORTS_H =20 /* i8253A PIT registers */ #define PIT_MODE 0x43 @@ -27,4 +27,4 @@ #define SLAVE_ICW4_DEFAULT 0x01 #define PIC_ICW4_AEOI 2 =20 -#endif /* !_MACH_IO_PORTS_H */ +#endif /* !ASM__X86__MACH_DEFAULT__IO_PORTS_H */ diff --git a/xen/arch/x86/include/asm/mach-default/irq_vectors.h b/xen/arch= /x86/include/asm/mach-default/irq_vectors.h index f546aedd87..52f7bec7c3 100644 --- a/xen/arch/x86/include/asm/mach-default/irq_vectors.h +++ b/xen/arch/x86/include/asm/mach-default/irq_vectors.h @@ -1,5 +1,5 @@ -#ifndef _ASM_IRQ_VECTORS_H -#define _ASM_IRQ_VECTORS_H +#ifndef ASM__X86__MACH_DEFAULT__IRQ_VECTORS_H +#define ASM__X86__MACH_DEFAULT__IRQ_VECTORS_H =20 /* Processor-initiated interrupts are all high priority. */ #define SPURIOUS_APIC_VECTOR 0xff @@ -43,4 +43,4 @@ #define FIRST_IRQ_VECTOR FIRST_DYNAMIC_VECTOR #define LAST_IRQ_VECTOR LAST_HIPRIORITY_VECTOR =20 -#endif /* _ASM_IRQ_VECTORS_H */ +#endif /* ASM__X86__MACH_DEFAULT__IRQ_VECTORS_H */ diff --git a/xen/arch/x86/include/asm/mach-default/mach_mpspec.h b/xen/arch= /x86/include/asm/mach-default/mach_mpspec.h index 1a4e3f8c4f..3027533052 100644 --- a/xen/arch/x86/include/asm/mach-default/mach_mpspec.h +++ b/xen/arch/x86/include/asm/mach-default/mach_mpspec.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MACH_MPSPEC_H -#define __ASM_MACH_MPSPEC_H +#ifndef ASM__X86__MACH_DEFAULT__MACH_MPSPEC_H +#define ASM__X86__MACH_DEFAULT__MACH_MPSPEC_H =20 #define MAX_IRQ_SOURCES 256 =20 @@ -7,4 +7,4 @@ /* Maximum 256 PCI busses, plus 1 ISA bus in each of 4 cabinets. */ #define MAX_MP_BUSSES 260 =20 -#endif /* __ASM_MACH_MPSPEC_H */ +#endif /* ASM__X86__MACH_DEFAULT__MACH_MPSPEC_H */ diff --git a/xen/arch/x86/include/asm/mach-generic/mach_apic.h b/xen/arch/x= 86/include/asm/mach-generic/mach_apic.h index c0d8b232c9..ae8b2372d8 100644 --- a/xen/arch/x86/include/asm/mach-generic/mach_apic.h +++ b/xen/arch/x86/include/asm/mach-generic/mach_apic.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MACH_APIC_H -#define __ASM_MACH_APIC_H +#ifndef ASM__X86__MACH_GENERIC__MACH_APIC_H +#define ASM__X86__MACH_GENERIC__MACH_APIC_H =20 #include #include @@ -74,4 +74,4 @@ static inline void set_apicid(int phys_apicid, physid_mas= k_t *map) physid_set(phys_apicid, *map); } =20 -#endif /* __ASM_MACH_APIC_H */ +#endif /* ASM__X86__MACH_GENERIC__MACH_APIC_H */ diff --git a/xen/arch/x86/include/asm/machine_kexec.h b/xen/arch/x86/includ= e/asm/machine_kexec.h index d4880818c1..78072325b2 100644 --- a/xen/arch/x86/include/asm/machine_kexec.h +++ b/xen/arch/x86/include/asm/machine_kexec.h @@ -1,5 +1,5 @@ -#ifndef __X86_MACHINE_KEXEC_H__ -#define __X86_MACHINE_KEXEC_H__ +#ifndef ASM__X86__MACHINE_KEXEC_H +#define ASM__X86__MACHINE_KEXEC_H =20 #define KEXEC_RELOC_FLAG_COMPAT 0x1 /* 32-bit image */ =20 @@ -13,4 +13,4 @@ extern const char kexec_reloc_end[]; =20 #endif =20 -#endif /* __X86_MACHINE_KEXEC_H__ */ +#endif /* ASM__X86__MACHINE_KEXEC_H */ diff --git a/xen/arch/x86/include/asm/mc146818rtc.h b/xen/arch/x86/include/= asm/mc146818rtc.h index 1a34512d29..5e796cda7e 100644 --- a/xen/arch/x86/include/asm/mc146818rtc.h +++ b/xen/arch/x86/include/asm/mc146818rtc.h @@ -1,8 +1,8 @@ /* * Machine dependent access functions for RTC registers. */ -#ifndef _ASM_MC146818RTC_H -#define _ASM_MC146818RTC_H +#ifndef ASM__X86__MC146818RTC_H +#define ASM__X86__MC146818RTC_H =20 #include #include @@ -117,4 +117,4 @@ outb_p((val),RTC_PORT(1)); \ unsigned int rtc_guest_read(unsigned int port); void rtc_guest_write(unsigned int port, unsigned int data); =20 -#endif /* _ASM_MC146818RTC_H */ +#endif /* ASM__X86__MC146818RTC_H */ diff --git a/xen/arch/x86/include/asm/mce.h b/xen/arch/x86/include/asm/mce.h index 2ec47a71ae..a70748da90 100644 --- a/xen/arch/x86/include/asm/mce.h +++ b/xen/arch/x86/include/asm/mce.h @@ -1,5 +1,5 @@ -#ifndef _XEN_X86_MCE_H -#define _XEN_X86_MCE_H +#ifndef ASM__X86__MCE_H +#define ASM__X86__MCE_H =20 #include #include diff --git a/xen/arch/x86/include/asm/mem_paging.h b/xen/arch/x86/include/a= sm/mem_paging.h index 5ae86669fb..c5ab2ee80e 100644 --- a/xen/arch/x86/include/asm/mem_paging.h +++ b/xen/arch/x86/include/asm/mem_paging.h @@ -7,8 +7,8 @@ * Copyright (c) 2009 Citrix Systems, Inc. (Patrick Colp) */ =20 -#ifndef __ASM_X86_MEM_PAGING_H__ -#define __ASM_X86_MEM_PAGING_H__ +#ifndef ASM__X86__MEM_PAGING_H +#define ASM__X86__MEM_PAGING_H =20 int mem_paging_memop(XEN_GUEST_HANDLE_PARAM(xen_mem_paging_op_t) arg); =20 @@ -18,7 +18,7 @@ int mem_paging_memop(XEN_GUEST_HANDLE_PARAM(xen_mem_pagin= g_op_t) arg); # define mem_paging_enabled(d) false #endif =20 -#endif /*__ASM_X86_MEM_PAGING_H__ */ +#endif /*ASM__X86__MEM_PAGING_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/mem_sharing.h b/xen/arch/x86/include/= asm/mem_sharing.h index 040962f690..c0e0beb727 100644 --- a/xen/arch/x86/include/asm/mem_sharing.h +++ b/xen/arch/x86/include/asm/mem_sharing.h @@ -6,8 +6,8 @@ * * Copyright (c) 2009 Citrix Systems, Inc. (Grzegorz Milos) */ -#ifndef __MEM_SHARING_H__ -#define __MEM_SHARING_H__ +#ifndef ASM__X86__MEM_SHARING_H +#define ASM__X86__MEM_SHARING_H =20 #include #include @@ -147,4 +147,4 @@ static inline int mem_sharing_fork_reset(struct domain = *d, bool reset_state, =20 #endif =20 -#endif /* __MEM_SHARING_H__ */ +#endif /* ASM__X86__MEM_SHARING_H */ diff --git a/xen/arch/x86/include/asm/microcode.h b/xen/arch/x86/include/as= m/microcode.h index 57c08205d4..55ca221c13 100644 --- a/xen/arch/x86/include/asm/microcode.h +++ b/xen/arch/x86/include/asm/microcode.h @@ -1,5 +1,5 @@ -#ifndef ASM_X86__MICROCODE_H -#define ASM_X86__MICROCODE_H +#ifndef ASM__X86__MICROCODE_H +#define ASM__X86__MICROCODE_H =20 #include #include @@ -30,4 +30,4 @@ int microcode_init_cache(unsigned long *module_map, const struct multiboot_info *mbi); int microcode_update_one(void); =20 -#endif /* ASM_X86__MICROCODE_H */ +#endif /* ASM__X86__MICROCODE_H */ diff --git a/xen/arch/x86/include/asm/mm.h b/xen/arch/x86/include/asm/mm.h index 2a837f3d59..81eb0bb8cd 100644 --- a/xen/arch/x86/include/asm/mm.h +++ b/xen/arch/x86/include/asm/mm.h @@ -1,6 +1,6 @@ =20 -#ifndef __ASM_X86_MM_H__ -#define __ASM_X86_MM_H__ +#ifndef ASM__X86__MM_H +#define ASM__X86__MM_H =20 #include #include @@ -628,4 +628,4 @@ static inline bool arch_mfns_in_directmap(unsigned long= mfn, unsigned long nr) return (mfn + nr) <=3D (virt_to_mfn(eva - 1) + 1); } =20 -#endif /* __ASM_X86_MM_H__ */ +#endif /* ASM__X86__MM_H */ diff --git a/xen/arch/x86/include/asm/mpspec.h b/xen/arch/x86/include/asm/m= pspec.h index 45e474dfd1..bcd9be54ac 100644 --- a/xen/arch/x86/include/asm/mpspec.h +++ b/xen/arch/x86/include/asm/mpspec.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MPSPEC_H -#define __ASM_MPSPEC_H +#ifndef ASM__X86__MPSPEC_H +#define ASM__X86__MPSPEC_H =20 #include #include diff --git a/xen/arch/x86/include/asm/mpspec_def.h b/xen/arch/x86/include/a= sm/mpspec_def.h index b17ec41426..79a9760be8 100644 --- a/xen/arch/x86/include/asm/mpspec_def.h +++ b/xen/arch/x86/include/asm/mpspec_def.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MPSPEC_DEF_H -#define __ASM_MPSPEC_DEF_H +#ifndef ASM__X86__MPSPEC_DEF_H +#define ASM__X86__MPSPEC_DEF_H =20 /* * Structure definitions for SMP machines following the diff --git a/xen/arch/x86/include/asm/msi.h b/xen/arch/x86/include/asm/msi.h index 748bc3cd6d..ad9b4c90a3 100644 --- a/xen/arch/x86/include/asm/msi.h +++ b/xen/arch/x86/include/asm/msi.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MSI_H -#define __ASM_MSI_H +#ifndef ASM__X86__MSI_H +#define ASM__X86__MSI_H =20 #include #include @@ -251,4 +251,4 @@ void guest_mask_msi_irq(struct irq_desc *desc, bool mas= k); void cf_check ack_nonmaskable_msi_irq(struct irq_desc *desc); void cf_check set_msi_affinity(struct irq_desc *desc, const cpumask_t *mas= k); =20 -#endif /* __ASM_MSI_H */ +#endif /* ASM__X86__MSI_H */ diff --git a/xen/arch/x86/include/asm/msr-index.h b/xen/arch/x86/include/as= m/msr-index.h index 9cdb5b2625..abde451b98 100644 --- a/xen/arch/x86/include/asm/msr-index.h +++ b/xen/arch/x86/include/asm/msr-index.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MSR_INDEX_H -#define __ASM_MSR_INDEX_H +#ifndef ASM__X86__MSR_INDEX_H +#define ASM__X86__MSR_INDEX_H =20 /* * CPU model specific register (MSR) numbers @@ -698,4 +698,4 @@ #define MSR_PKGC9_IRTL 0x00000634 #define MSR_PKGC10_IRTL 0x00000635 =20 -#endif /* __ASM_MSR_INDEX_H */ +#endif /* ASM__X86__MSR_INDEX_H */ diff --git a/xen/arch/x86/include/asm/msr.h b/xen/arch/x86/include/asm/msr.h index 355fb324ec..033bb9d6ff 100644 --- a/xen/arch/x86/include/asm/msr.h +++ b/xen/arch/x86/include/asm/msr.h @@ -1,5 +1,5 @@ -#ifndef __ASM_MSR_H -#define __ASM_MSR_H +#ifndef ASM__X86__MSR_H +#define ASM__X86__MSR_H =20 #include "msr-index.h" =20 @@ -441,4 +441,4 @@ int init_vcpu_msr_policy(struct vcpu *v); int guest_rdmsr(struct vcpu *v, uint32_t msr, uint64_t *val); int guest_wrmsr(struct vcpu *v, uint32_t msr, uint64_t val); =20 -#endif /* __ASM_MSR_H */ +#endif /* ASM__X86__MSR_H */ diff --git a/xen/arch/x86/include/asm/mtrr.h b/xen/arch/x86/include/asm/mtr= r.h index 36dac0a775..384c29f2a7 100644 --- a/xen/arch/x86/include/asm/mtrr.h +++ b/xen/arch/x86/include/asm/mtrr.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_MTRR_H__ -#define __ASM_X86_MTRR_H__ +#ifndef ASM__X86__MTRR_H +#define ASM__X86__MTRR_H =20 #include =20 @@ -85,4 +85,4 @@ extern bool pat_msr_set(uint64_t *pat, uint64_t msr); bool is_var_mtrr_overlapped(const struct mtrr_state *m); bool mtrr_pat_not_equal(const struct vcpu *vd, const struct vcpu *vs); =20 -#endif /* __ASM_X86_MTRR_H__ */ +#endif /* ASM__X86__MTRR_H */ diff --git a/xen/arch/x86/include/asm/multicall.h b/xen/arch/x86/include/as= m/multicall.h index 7e1d4c121a..9e9050dacd 100644 --- a/xen/arch/x86/include/asm/multicall.h +++ b/xen/arch/x86/include/asm/multicall.h @@ -2,11 +2,11 @@ * asm-x86/multicall.h */ =20 -#ifndef __ASM_X86_MULTICALL_H__ -#define __ASM_X86_MULTICALL_H__ +#ifndef ASM__X86__MULTICALL_H +#define ASM__X86__MULTICALL_H =20 #include =20 typeof(arch_do_multicall_call) pv_do_multicall_call, hvm_do_multicall_call; =20 -#endif /* __ASM_X86_MULTICALL_H__ */ +#endif /* ASM__X86__MULTICALL_H */ diff --git a/xen/arch/x86/include/asm/mwait.h b/xen/arch/x86/include/asm/mw= ait.h index 000a692f6d..90781aa035 100644 --- a/xen/arch/x86/include/asm/mwait.h +++ b/xen/arch/x86/include/asm/mwait.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_MWAIT_H__ -#define __ASM_X86_MWAIT_H__ +#ifndef ASM__X86__MWAIT_H +#define ASM__X86__MWAIT_H =20 #include =20 @@ -23,4 +23,4 @@ static inline bool mwait_pc10_supported(void) } #endif =20 -#endif /* __ASM_X86_MWAIT_H__ */ +#endif /* ASM__X86__MWAIT_H */ diff --git a/xen/arch/x86/include/asm/nmi.h b/xen/arch/x86/include/asm/nmi.h index 9a5da14162..ce4ab3690f 100644 --- a/xen/arch/x86/include/asm/nmi.h +++ b/xen/arch/x86/include/asm/nmi.h @@ -1,6 +1,6 @@ =20 -#ifndef ASM_NMI_H -#define ASM_NMI_H +#ifndef ASM__X86__NMI_H +#define ASM__X86__NMI_H =20 #include =20 @@ -43,4 +43,4 @@ void trigger_nmi_continuation(void); =20 /* Check for NMI continuation pending. */ bool nmi_check_continuation(void); -#endif /* ASM_NMI_H */ +#endif /* ASM__X86__NMI_H */ diff --git a/xen/arch/x86/include/asm/nops.h b/xen/arch/x86/include/asm/nop= s.h index 2724a9862e..0d2480a416 100644 --- a/xen/arch/x86/include/asm/nops.h +++ b/xen/arch/x86/include/asm/nops.h @@ -1,5 +1,5 @@ -#ifndef __X86_ASM_NOPS_H__ -#define __X86_ASM_NOPS_H__ +#ifndef ASM__X86__NOPS_H +#define ASM__X86__NOPS_H =20 /* * Define nops for use with alternative(). @@ -65,4 +65,4 @@ =20 #define ASM_NOP_MAX 9 =20 -#endif /* __X86_ASM_NOPS_H__ */ +#endif /* ASM__X86__NOPS_H */ diff --git a/xen/arch/x86/include/asm/nospec.h b/xen/arch/x86/include/asm/n= ospec.h index e058a3bb0e..d3efb3c52e 100644 --- a/xen/arch/x86/include/asm/nospec.h +++ b/xen/arch/x86/include/asm/nospec.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.= */ =20 -#ifndef _ASM_X86_NOSPEC_H -#define _ASM_X86_NOSPEC_H +#ifndef ASM__X86__NOSPEC_H +#define ASM__X86__NOSPEC_H =20 #include =20 @@ -88,7 +88,7 @@ static always_inline bool arch_lock_evaluate_nospec(bool = condition) return barrier_lock_false(); } =20 -#endif /* _ASM_X86_NOSPEC_H */ +#endif /* ASM__X86__NOSPEC_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/numa.h b/xen/arch/x86/include/asm/num= a.h index 7866afa408..8371bc3a44 100644 --- a/xen/arch/x86/include/asm/numa.h +++ b/xen/arch/x86/include/asm/numa.h @@ -1,5 +1,5 @@ -#ifndef _ASM_X8664_NUMA_H=20 -#define _ASM_X8664_NUMA_H 1 +#ifndef ASM__X86__NUMA_H=20 +#define ASM__X86__NUMA_H 1 =20 #include =20 diff --git a/xen/arch/x86/include/asm/p2m.h b/xen/arch/x86/include/asm/p2m.h index e6de37f108..f3cd804af5 100644 --- a/xen/arch/x86/include/asm/p2m.h +++ b/xen/arch/x86/include/asm/p2m.h @@ -11,8 +11,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_ASM_X86_P2M_H -#define _XEN_ASM_X86_P2M_H +#ifndef ASM__X86__P2M_H +#define ASM__X86__P2M_H =20 #include #include @@ -392,7 +392,7 @@ struct p2m_domain { #define p2m_get_hostp2m(d) ((d)->arch.p2m) =20 /* All common type definitions should live ahead of this inclusion. */ -#ifdef _XEN_P2M_COMMON_H +#ifdef XEN__P2M_COMMON_H # error "xen/p2m-common.h should not be included directly" #endif #include @@ -1101,7 +1101,7 @@ static inline int p2m_entry_modify(struct p2m_domain = *p2m, p2m_type_t nt, =20 #endif /* CONFIG_HVM */ =20 -#endif /* _XEN_ASM_X86_P2M_H */ +#endif /* ASM__X86__P2M_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/page-bits.h b/xen/arch/x86/include/as= m/page-bits.h index 6f7fc7d035..5350baf69d 100644 --- a/xen/arch/x86/include/asm/page-bits.h +++ b/xen/arch/x86/include/asm/page-bits.h @@ -1,5 +1,5 @@ -#ifndef __X86_PAGE_SHIFT_H__ -#define __X86_PAGE_SHIFT_H__ +#ifndef ASM__X86__PAGE_BITS_H +#define ASM__X86__PAGE_BITS_H =20 #define L1_PAGETABLE_SHIFT 12 #define L2_PAGETABLE_SHIFT 21 @@ -23,4 +23,4 @@ #define PADDR_BITS 52 #define VADDR_BITS 48 =20 -#endif /* __X86_PAGE_SHIFT_H__ */ +#endif /* ASM__X86__PAGE_BITS_H */ diff --git a/xen/arch/x86/include/asm/page.h b/xen/arch/x86/include/asm/pag= e.h index e01af28916..63c7341fcc 100644 --- a/xen/arch/x86/include/asm/page.h +++ b/xen/arch/x86/include/asm/page.h @@ -1,5 +1,5 @@ -#ifndef __X86_PAGE_H__ -#define __X86_PAGE_H__ +#ifndef ASM__X86__PAGE_H +#define ASM__X86__PAGE_H =20 #include #include @@ -389,7 +389,7 @@ static inline void invalidate_icache(void) =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __X86_PAGE_H__ */ +#endif /* ASM__X86__PAGE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/paging.h b/xen/arch/x86/include/asm/p= aging.h index 8a2a0af408..b7c59c426b 100644 --- a/xen/arch/x86/include/asm/paging.h +++ b/xen/arch/x86/include/asm/paging.h @@ -9,8 +9,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_PAGING_H -#define _XEN_PAGING_H +#ifndef ASM__X86__PAGING_H +#define ASM__X86__PAGING_H =20 #include #include diff --git a/xen/arch/x86/include/asm/pci.h b/xen/arch/x86/include/asm/pci.h index fd5480d67d..ac38417fc5 100644 --- a/xen/arch/x86/include/asm/pci.h +++ b/xen/arch/x86/include/asm/pci.h @@ -1,5 +1,5 @@ -#ifndef __X86_PCI_H__ -#define __X86_PCI_H__ +#ifndef ASM__X86__PCI_H +#define ASM__X86__PCI_H =20 #include =20 @@ -67,4 +67,4 @@ static inline bool pci_check_bar(const struct pci_dev *pd= ev, return is_memory_hole(start, end); } =20 -#endif /* __X86_PCI_H__ */ +#endif /* ASM__X86__PCI_H */ diff --git a/xen/arch/x86/include/asm/perfc.h b/xen/arch/x86/include/asm/pe= rfc.h index a1a591e803..b1c3e0d7f7 100644 --- a/xen/arch/x86/include/asm/perfc.h +++ b/xen/arch/x86/include/asm/perfc.h @@ -1,5 +1,5 @@ -#ifndef __ASM_PERFC_H__ -#define __ASM_PERFC_H__ +#ifndef ASM__X86__PERFC_H +#define ASM__X86__PERFC_H =20 static inline void arch_perfc_reset(void) { diff --git a/xen/arch/x86/include/asm/perfc_defn.h b/xen/arch/x86/include/a= sm/perfc_defn.h index 487e20dc97..20cfbb40c5 100644 --- a/xen/arch/x86/include/asm/perfc_defn.h +++ b/xen/arch/x86/include/asm/perfc_defn.h @@ -1,6 +1,6 @@ /* This file is legitimately included multiple times. */ -/*#ifndef __XEN_PERFC_DEFN_H__*/ -/*#define __XEN_PERFC_DEFN_H__*/ +/*#ifndef ASM__X86__PERFC_DEFN_H*/ +/*#define ASM__X86__PERFC_DEFN_H*/ =20 PERFCOUNTER_ARRAY(exceptions, "exceptions", 32) =20 @@ -131,4 +131,4 @@ PERFCOUNTER(iommu_pt_coalesces, "IOMMU page table coa= lesces") PERFCOUNTER(buslock, "Bus Locks Detected") PERFCOUNTER(vmnotify_crash, "domain crashes by Notify VM Exit") =20 -/*#endif*/ /* __XEN_PERFC_DEFN_H__ */ +/*#endif*/ /* ASM__X86__PERFC_DEFN_H */ diff --git a/xen/arch/x86/include/asm/processor.h b/xen/arch/x86/include/as= m/processor.h index 26e2fb1369..c7ea2f674f 100644 --- a/xen/arch/x86/include/asm/processor.h +++ b/xen/arch/x86/include/asm/processor.h @@ -1,8 +1,8 @@ =20 /* Portions are: Copyright (c) 1994 Linus Torvalds */ =20 -#ifndef __ASM_X86_PROCESSOR_H -#define __ASM_X86_PROCESSOR_H +#ifndef ASM__X86__PROCESSOR_H +#define ASM__X86__PROCESSOR_H =20 #ifndef __ASSEMBLY__ #include @@ -529,7 +529,7 @@ void amd_check_zenbleed(void); =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __ASM_X86_PROCESSOR_H */ +#endif /* ASM__X86__PROCESSOR_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/prot-key.h b/xen/arch/x86/include/asm= /prot-key.h index 0dcd31b7ea..162db7b3ee 100644 --- a/xen/arch/x86/include/asm/prot-key.h +++ b/xen/arch/x86/include/asm/prot-key.h @@ -2,8 +2,8 @@ /* * Copyright (c) 2021-2022 Citrix Systems Ltd. */ -#ifndef ASM_PROT_KEY_H -#define ASM_PROT_KEY_H +#ifndef ASM__X86__PROT_KEY_H +#define ASM__X86__PROT_KEY_H =20 #include #include @@ -82,4 +82,4 @@ static inline void wrpkrs_and_cache(uint32_t pkrs) wrmsr_ns(MSR_PKRS, pkrs, 0); } =20 -#endif /* ASM_PROT_KEY_H */ +#endif /* ASM__X86__PROT_KEY_H */ diff --git a/xen/arch/x86/include/asm/psr.h b/xen/arch/x86/include/asm/psr.h index d21a59d98f..461a39395f 100644 --- a/xen/arch/x86/include/asm/psr.h +++ b/xen/arch/x86/include/asm/psr.h @@ -13,8 +13,8 @@ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License f= or * more details. */ -#ifndef __ASM_PSR_H__ -#define __ASM_PSR_H__ +#ifndef ASM__X86__PSR_H +#define ASM__X86__PSR_H =20 #include =20 @@ -92,7 +92,7 @@ static inline void psr_domain_init(struct domain *d) {} static inline void psr_domain_free(struct domain *d) {} #endif =20 -#endif /* __ASM_PSR_H__ */ +#endif /* ASM__X86__PSR_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/pt-contig-markers.h b/xen/arch/x86/in= clude/asm/pt-contig-markers.h index 1ad5c8fb6c..b0af22a6ba 100644 --- a/xen/arch/x86/include/asm/pt-contig-markers.h +++ b/xen/arch/x86/include/asm/pt-contig-markers.h @@ -1,5 +1,5 @@ -#ifndef __ASM_X86_PT_CONTIG_MARKERS_H -#define __ASM_X86_PT_CONTIG_MARKERS_H +#ifndef ASM__X86__PT_CONTIG_MARKERS_H +#define ASM__X86__PT_CONTIG_MARKERS_H =20 /* * Short of having function templates in C, the function defined below is @@ -107,4 +107,4 @@ static bool pt_update_contig_markers(uint64_t *pt, unsi= gned int idx, =20 #endif /* CONTIG_MASK */ =20 -#endif /* __ASM_X86_PT_CONTIG_MARKERS_H */ +#endif /* ASM__X86__PT_CONTIG_MARKERS_H */ diff --git a/xen/arch/x86/include/asm/pv/domain.h b/xen/arch/x86/include/as= m/pv/domain.h index 75a6b9e5c7..83c779442b 100644 --- a/xen/arch/x86/include/asm/pv/domain.h +++ b/xen/arch/x86/include/asm/pv/domain.h @@ -7,8 +7,8 @@ * Copyright (C) 2017 Wei Liu */ =20 -#ifndef __X86_PV_DOMAIN_H__ -#define __X86_PV_DOMAIN_H__ +#ifndef ASM__X86__PV__DOMAIN_H +#define ASM__X86__PV__DOMAIN_H =20 #include =20 @@ -110,7 +110,7 @@ static inline void pv_set_reg(struct vcpu *v, unsigned = int reg, uint64_t val) void cf_check paravirt_ctxt_switch_from(struct vcpu *v); void cf_check paravirt_ctxt_switch_to(struct vcpu *v); =20 -#endif /* __X86_PV_DOMAIN_H__ */ +#endif /* ASM__X86__PV__DOMAIN_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/pv/grant_table.h b/xen/arch/x86/inclu= de/asm/pv/grant_table.h index 88f36c6595..aa03ff5345 100644 --- a/xen/arch/x86/include/asm/pv/grant_table.h +++ b/xen/arch/x86/include/asm/pv/grant_table.h @@ -7,8 +7,8 @@ * Copyright (C) 2017 Wei Liu */ =20 -#ifndef __X86_PV_GRANT_TABLE_H__ -#define __X86_PV_GRANT_TABLE_H__ +#ifndef ASM__X86__PV__GRANT_TABLE_H +#define ASM__X86__PV__GRANT_TABLE_H =20 #ifdef CONFIG_PV =20 @@ -36,7 +36,7 @@ static inline int replace_grant_pv_mapping(uint64_t addr,= mfn_t frame, =20 #endif =20 -#endif /* __X86_PV_GRANT_TABLE_H__ */ +#endif /* ASM__X86__PV__GRANT_TABLE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/pv/mm.h b/xen/arch/x86/include/asm/pv= /mm.h index 182764542c..1135b7bda6 100644 --- a/xen/arch/x86/include/asm/pv/mm.h +++ b/xen/arch/x86/include/asm/pv/mm.h @@ -7,8 +7,8 @@ * Copyright (C) 2017 Wei Liu */ =20 -#ifndef __X86_PV_MM_H__ -#define __X86_PV_MM_H__ +#ifndef ASM__X86__PV__MM_H +#define ASM__X86__PV__MM_H =20 #ifdef CONFIG_PV =20 @@ -46,4 +46,4 @@ static inline bool pv_destroy_ldt(struct vcpu *v) =20 #endif =20 -#endif /* __X86_PV_MM_H__ */ +#endif /* ASM__X86__PV__MM_H */ diff --git a/xen/arch/x86/include/asm/pv/shim.h b/xen/arch/x86/include/asm/= pv/shim.h index 6153e27005..2a7d1c1594 100644 --- a/xen/arch/x86/include/asm/pv/shim.h +++ b/xen/arch/x86/include/asm/pv/shim.h @@ -5,8 +5,8 @@ * Copyright (c) 2017 Citrix Systems Ltd. */ =20 -#ifndef __X86_PV_SHIM_H__ -#define __X86_PV_SHIM_H__ +#ifndef ASM__X86__PV__SHIM_H +#define ASM__X86__PV__SHIM_H =20 #include #include @@ -98,7 +98,7 @@ pv_shim_reserved_pages(unsigned int *s) =20 #endif =20 -#endif /* __X86_PV_SHIM_H__ */ +#endif /* ASM__X86__PV__SHIM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/pv/trace.h b/xen/arch/x86/include/asm= /pv/trace.h index c616206eeb..b9ecfb066c 100644 --- a/xen/arch/x86/include/asm/pv/trace.h +++ b/xen/arch/x86/include/asm/pv/trace.h @@ -1,5 +1,5 @@ -#ifndef XEN_X86_PV_TRACE_H -#define XEN_X86_PV_TRACE_H +#ifndef ASM__X86__PV__TRACE_H +#define ASM__X86__PV__TRACE_H =20 #include =20 @@ -45,4 +45,4 @@ static inline void trace_ptwr_emulation(unsigned long add= r, l1_pgentry_t npte) __trace_ptwr_emulation(addr, npte); } =20 -#endif /* XEN_X86_PV_TRACE_H */ +#endif /* ASM__X86__PV__TRACE_H */ diff --git a/xen/arch/x86/include/asm/pv/traps.h b/xen/arch/x86/include/asm= /pv/traps.h index 404f5b169c..31f9f19231 100644 --- a/xen/arch/x86/include/asm/pv/traps.h +++ b/xen/arch/x86/include/asm/pv/traps.h @@ -7,8 +7,8 @@ * Copyright (C) 2017 Wei Liu */ =20 -#ifndef __X86_PV_TRAPS_H__ -#define __X86_PV_TRAPS_H__ +#ifndef ASM__X86__PV__TRAPS_H +#define ASM__X86__PV__TRAPS_H =20 #ifdef CONFIG_PV =20 @@ -47,7 +47,7 @@ static inline bool pv_trap_callback_registered(const stru= ct vcpu *v, } #endif /* CONFIG_PV */ =20 -#endif /* __X86_PV_TRAPS_H__ */ +#endif /* ASM__X86__PV__TRAPS_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/random.h b/xen/arch/x86/include/asm/r= andom.h index 9e1fe0bc1d..55f0293a0f 100644 --- a/xen/arch/x86/include/asm/random.h +++ b/xen/arch/x86/include/asm/random.h @@ -1,5 +1,5 @@ -#ifndef __ASM_RANDOM_H__ -#define __ASM_RANDOM_H__ +#ifndef ASM__X86__RANDOM_H +#define ASM__X86__RANDOM_H =20 #include =20 @@ -13,4 +13,4 @@ static inline unsigned int arch_get_random(void) return val; } =20 -#endif /* __ASM_RANDOM_H__ */ +#endif /* ASM__X86__RANDOM_H */ diff --git a/xen/arch/x86/include/asm/regs.h b/xen/arch/x86/include/asm/reg= s.h index ddf5e14e57..e99b18e3ab 100644 --- a/xen/arch/x86/include/asm/regs.h +++ b/xen/arch/x86/include/asm/regs.h @@ -1,6 +1,6 @@ =20 -#ifndef __X86_REGS_H__ -#define __X86_REGS_H__ +#ifndef ASM__X86__REGS_H +#define ASM__X86__REGS_H =20 #include =20 @@ -30,4 +30,4 @@ static inline void read_sregs(struct cpu_user_regs *regs) asm ( "mov %%gs, %0" : "=3Dm" (regs->gs) ); } =20 -#endif /* __X86_REGS_H__ */ +#endif /* ASM__X86__REGS_H */ diff --git a/xen/arch/x86/include/asm/setup.h b/xen/arch/x86/include/asm/se= tup.h index d75589178b..be6cac0095 100644 --- a/xen/arch/x86/include/asm/setup.h +++ b/xen/arch/x86/include/asm/setup.h @@ -1,5 +1,5 @@ -#ifndef __X86_SETUP_H_ -#define __X86_SETUP_H_ +#ifndef ASM__X86__SETUP_H +#define ASM__X86__SETUP_H =20 #include #include diff --git a/xen/arch/x86/include/asm/shadow.h b/xen/arch/x86/include/asm/s= hadow.h index 9a8d1b8353..034d389c60 100644 --- a/xen/arch/x86/include/asm/shadow.h +++ b/xen/arch/x86/include/asm/shadow.h @@ -19,8 +19,8 @@ * along with this program; If not, see . */ =20 -#ifndef _XEN_SHADOW_H -#define _XEN_SHADOW_H +#ifndef ASM__X86__SHADOW_H +#define ASM__X86__SHADOW_H =20 #include #include @@ -271,7 +271,7 @@ static inline void shadow_remove_all_shadows(struct dom= ain *d, mfn_t gmfn) sh_remove_shadows(d, gmfn, 0 /* Be thorough */, 1 /* Must succeed */); } =20 -#endif /* _XEN_SHADOW_H */ +#endif /* ASM__X86__SHADOW_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/shared.h b/xen/arch/x86/include/asm/s= hared.h index 60b67fa4b4..b08c8b3f7b 100644 --- a/xen/arch/x86/include/asm/shared.h +++ b/xen/arch/x86/include/asm/shared.h @@ -1,5 +1,5 @@ -#ifndef __XEN_X86_SHARED_H__ -#define __XEN_X86_SHARED_H__ +#ifndef ASM__X86__SHARED_H +#define ASM__X86__SHARED_H =20 #ifdef CONFIG_COMPAT =20 @@ -83,4 +83,4 @@ GET_SET_VCPU(unsigned long, cr2) #undef GET_SET_VCPU #undef GET_SET_SHARED =20 -#endif /* __XEN_X86_SHARED_H__ */ +#endif /* ASM__X86__SHARED_H */ diff --git a/xen/arch/x86/include/asm/shstk.h b/xen/arch/x86/include/asm/sh= stk.h index 9160fe9f0e..e04694c151 100644 --- a/xen/arch/x86/include/asm/shstk.h +++ b/xen/arch/x86/include/asm/shstk.h @@ -2,8 +2,8 @@ /*************************************************************************= ***** * Copyright (c) 2022 Citrix Systems Ltd. */ -#ifndef XEN_ASM_SHSTK_H -#define XEN_ASM_SHSTK_H +#ifndef ASM__X86__SHSTK_H +#define ASM__X86__SHSTK_H =20 /* * RDSSP is a nop when shadow stacks are inactive. Also, SSP has a minimum @@ -31,4 +31,4 @@ static inline void wrss(unsigned long val, unsigned long = *ptr) : [val] "r" (val) ); } =20 -#endif /* XEN_ASM_SHSTK_H */ +#endif /* ASM__X86__SHSTK_H */ diff --git a/xen/arch/x86/include/asm/smp.h b/xen/arch/x86/include/asm/smp.h index c8c7960134..90c17d1a2b 100644 --- a/xen/arch/x86/include/asm/smp.h +++ b/xen/arch/x86/include/asm/smp.h @@ -1,5 +1,5 @@ -#ifndef __ASM_SMP_H -#define __ASM_SMP_H +#ifndef ASM__X86__SMP_H +#define ASM__X86__SMP_H =20 /* * We need the APIC definitions automatically as part of 'smp.h' diff --git a/xen/arch/x86/include/asm/softirq.h b/xen/arch/x86/include/asm/= softirq.h index 415ee866c7..796ee09586 100644 --- a/xen/arch/x86/include/asm/softirq.h +++ b/xen/arch/x86/include/asm/softirq.h @@ -1,5 +1,5 @@ -#ifndef __ASM_SOFTIRQ_H__ -#define __ASM_SOFTIRQ_H__ +#ifndef ASM__X86__SOFTIRQ_H +#define ASM__X86__SOFTIRQ_H =20 #define NMI_SOFTIRQ (NR_COMMON_SOFTIRQS + 0) #define TIME_CALIBRATE_SOFTIRQ (NR_COMMON_SOFTIRQS + 1) @@ -11,4 +11,4 @@ =20 bool arch_skip_send_event_check(unsigned int cpu); =20 -#endif /* __ASM_SOFTIRQ_H__ */ +#endif /* ASM__X86__SOFTIRQ_H */ diff --git a/xen/arch/x86/include/asm/spec_ctrl.h b/xen/arch/x86/include/as= m/spec_ctrl.h index 72347ef2b9..472c0a3e94 100644 --- a/xen/arch/x86/include/asm/spec_ctrl.h +++ b/xen/arch/x86/include/asm/spec_ctrl.h @@ -5,8 +5,8 @@ * Copyright (c) 2017-2018 Citrix Systems Ltd. */ =20 -#ifndef __X86_SPEC_CTRL_H__ -#define __X86_SPEC_CTRL_H__ +#ifndef ASM__X86__SPEC_CTRL_H +#define ASM__X86__SPEC_CTRL_H =20 /* * Encoding of Xen's speculation control flags in: @@ -196,7 +196,7 @@ static always_inline void spec_ctrl_exit_idle(struct cp= u_info *info) } =20 #endif /* __ASSEMBLY__ */ -#endif /* !__X86_SPEC_CTRL_H__ */ +#endif /* !ASM__X86__SPEC_CTRL_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/spec_ctrl_asm.h b/xen/arch/x86/includ= e/asm/spec_ctrl_asm.h index 729a830411..5c6f0e1ec6 100644 --- a/xen/arch/x86/include/asm/spec_ctrl_asm.h +++ b/xen/arch/x86/include/asm/spec_ctrl_asm.h @@ -5,8 +5,8 @@ * Copyright (c) 2017-2018 Citrix Systems Ltd. */ =20 -#ifndef __X86_SPEC_CTRL_ASM_H__ -#define __X86_SPEC_CTRL_ASM_H__ +#ifndef ASM__X86__SPEC_CTRL_ASM_H +#define ASM__X86__SPEC_CTRL_ASM_H =20 #ifdef __ASSEMBLY__ #include @@ -501,7 +501,7 @@ .endm =20 #endif /* __ASSEMBLY__ */ -#endif /* !__X86_SPEC_CTRL_ASM_H__ */ +#endif /* !ASM__X86__SPEC_CTRL_ASM_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/spinlock.h b/xen/arch/x86/include/asm= /spinlock.h index 56f6095752..11bec91e7f 100644 --- a/xen/arch/x86/include/asm/spinlock.h +++ b/xen/arch/x86/include/asm/spinlock.h @@ -1,5 +1,5 @@ -#ifndef __ASM_SPINLOCK_H -#define __ASM_SPINLOCK_H +#ifndef ASM__X86__SPINLOCK_H +#define ASM__X86__SPINLOCK_H =20 #define _raw_read_unlock(l) \ BUILD_BUG_ON(sizeof((l)->lock) !=3D 4); /* Clang doesn't support %z in= asm. */ \ @@ -24,4 +24,4 @@ arch_lock_signal(); \ }) =20 -#endif /* __ASM_SPINLOCK_H */ +#endif /* ASM__X86__SPINLOCK_H */ diff --git a/xen/arch/x86/include/asm/string.h b/xen/arch/x86/include/asm/s= tring.h index f08d95096e..c0a469ff48 100644 --- a/xen/arch/x86/include/asm/string.h +++ b/xen/arch/x86/include/asm/string.h @@ -1,7 +1,7 @@ -#ifndef __X86_STRING_H__ -#define __X86_STRING_H__ +#ifndef ASM__X86__STRING_H +#define ASM__X86__STRING_H =20 -#endif /* __X86_STRING_H__ */ +#endif /* ASM__X86__STRING_H */ /* * Local variables: * mode: C diff --git a/xen/arch/x86/include/asm/system.h b/xen/arch/x86/include/asm/s= ystem.h index 73cb16ca68..f347e2664e 100644 --- a/xen/arch/x86/include/asm/system.h +++ b/xen/arch/x86/include/asm/system.h @@ -1,5 +1,5 @@ -#ifndef __ASM_SYSTEM_H -#define __ASM_SYSTEM_H +#ifndef ASM__X86__SYSTEM_H +#define ASM__X86__SYSTEM_H =20 #include #include diff --git a/xen/arch/x86/include/asm/time.h b/xen/arch/x86/include/asm/tim= e.h index 3dfbb5297a..5452da7c62 100644 --- a/xen/arch/x86/include/asm/time.h +++ b/xen/arch/x86/include/asm/time.h @@ -1,6 +1,6 @@ =20 -#ifndef __X86_TIME_H__ -#define __X86_TIME_H__ +#ifndef ASM__X86__TIME_H +#define ASM__X86__TIME_H =20 #include =20 @@ -92,4 +92,4 @@ u64 scale_delta(u64 delta, const struct time_scale *scale= ); #define PIT_STATUS_NULL_COUNT (1 << 6) /* Lower bits match Timer Control Word. */ =20 -#endif /* __X86_TIME_H__ */ +#endif /* ASM__X86__TIME_H */ diff --git a/xen/arch/x86/include/asm/trampoline.h b/xen/arch/x86/include/a= sm/trampoline.h index 57a1f85a53..a9bbfeedf7 100644 --- a/xen/arch/x86/include/asm/trampoline.h +++ b/xen/arch/x86/include/asm/trampoline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#ifndef X86_ASM_TRAMPOLINE_H -#define X86_ASM_TRAMPOLINE_H +#ifndef ASM__X86__TRAMPOLINE_H +#define ASM__X86__TRAMPOLINE_H =20 /* * Data in or about the low memory trampoline. @@ -92,4 +92,4 @@ extern uint8_t video_flags; extern uint16_t boot_edid_caps; extern uint8_t boot_edid_info[128]; =20 -#endif /* X86_ASM_TRAMPOLINE_H */ +#endif /* ASM__X86__TRAMPOLINE_H */ diff --git a/xen/arch/x86/include/asm/traps.h b/xen/arch/x86/include/asm/tr= aps.h index 01ef362edc..92348b201c 100644 --- a/xen/arch/x86/include/asm/traps.h +++ b/xen/arch/x86/include/asm/traps.h @@ -4,12 +4,12 @@ * Author: Christoph Egger */ =20 -#ifndef ASM_TRAP_H -#define ASM_TRAP_H +#ifndef ASM__X86__TRAPS_H +#define ASM__X86__TRAPS_H =20 const char *vector_name(unsigned int vec); =20 -#endif /* ASM_TRAP_H */ +#endif /* ASM__X86__TRAPS_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/types.h b/xen/arch/x86/include/asm/ty= pes.h index 4cbbc8eaa6..99f3388218 100644 --- a/xen/arch/x86/include/asm/types.h +++ b/xen/arch/x86/include/asm/types.h @@ -1,8 +1,8 @@ -#ifndef __X86_TYPES_H__ -#define __X86_TYPES_H__ +#ifndef ASM__X86__TYPES_H +#define ASM__X86__TYPES_H =20 typedef unsigned long paddr_t; #define INVALID_PADDR (~0UL) #define PRIpaddr "016lx" =20 -#endif /* __X86_TYPES_H__ */ +#endif /* ASM__X86__TYPES_H */ diff --git a/xen/arch/x86/include/asm/uaccess.h b/xen/arch/x86/include/asm/= uaccess.h index 2d01669b96..d47a81a36b 100644 --- a/xen/arch/x86/include/asm/uaccess.h +++ b/xen/arch/x86/include/asm/uaccess.h @@ -1,6 +1,6 @@ =20 -#ifndef __X86_UACCESS_H__ -#define __X86_UACCESS_H__ +#ifndef ASM__X86__UACCESS_H +#define ASM__X86__UACCESS_H =20 #include #include @@ -427,4 +427,4 @@ extern void sort_exception_tables(void); extern void sort_exception_table(struct exception_table_entry *start, const struct exception_table_entry *stop); =20 -#endif /* __X86_UACCESS_H__ */ +#endif /* ASM__X86__UACCESS_H */ diff --git a/xen/arch/x86/include/asm/vpmu.h b/xen/arch/x86/include/asm/vpm= u.h index dae9b43dac..cb5f2b3b17 100644 --- a/xen/arch/x86/include/asm/vpmu.h +++ b/xen/arch/x86/include/asm/vpmu.h @@ -7,8 +7,8 @@ * Author: Haitao Shan */ =20 -#ifndef __ASM_X86_HVM_VPMU_H_ -#define __ASM_X86_HVM_VPMU_H_ +#ifndef ASM__X86__VPMU_H +#define ASM__X86__VPMU_H =20 #include =20 @@ -142,5 +142,5 @@ static inline int vpmu_allocate_context(struct vcpu *v) } #endif =20 -#endif /* __ASM_X86_HVM_VPMU_H_*/ +#endif /* ASM__X86__VPMU_H*/ =20 diff --git a/xen/arch/x86/include/asm/x86-defns.h b/xen/arch/x86/include/as= m/x86-defns.h index 7abc5bcd42..a2f3e5ebe7 100644 --- a/xen/arch/x86/include/asm/x86-defns.h +++ b/xen/arch/x86/include/asm/x86-defns.h @@ -1,5 +1,5 @@ -#ifndef __XEN_X86_DEFNS_H__ -#define __XEN_X86_DEFNS_H__ +#ifndef ASM__X86__X86_DEFNS_H +#define ASM__X86__X86_DEFNS_H =20 /* * EFLAGS bits @@ -204,4 +204,4 @@ #define X86_MT_UCM 0x07 /* UC- */ #define X86_NUM_MT 0x08 =20 -#endif /* __XEN_X86_DEFNS_H__ */ +#endif /* ASM__X86__X86_DEFNS_H */ diff --git a/xen/arch/x86/include/asm/x86-vendors.h b/xen/arch/x86/include/= asm/x86-vendors.h index d51c516909..eb69dab2fc 100644 --- a/xen/arch/x86/include/asm/x86-vendors.h +++ b/xen/arch/x86/include/asm/x86-vendors.h @@ -1,5 +1,5 @@ -#ifndef __XEN_X86_VENDORS_H__ -#define __XEN_X86_VENDORS_H__ +#ifndef ASM__X86__X86_VENDORS_H +#define ASM__X86__X86_VENDORS_H =20 /* * CPU vendor IDs @@ -36,4 +36,4 @@ #define X86_VENDOR_HYGON_ECX _AC(0x656e6975, U) #define X86_VENDOR_HYGON_EDX _AC(0x6e65476e, U) =20 -#endif /* __XEN_X86_VENDORS_H__ */ +#endif /* ASM__X86__X86_VENDORS_H */ diff --git a/xen/arch/x86/include/asm/x86_64/elf.h b/xen/arch/x86/include/a= sm/x86_64/elf.h index 00227e0e12..7842e4c997 100644 --- a/xen/arch/x86/include/asm/x86_64/elf.h +++ b/xen/arch/x86/include/asm/x86_64/elf.h @@ -1,5 +1,5 @@ -#ifndef __X86_64_ELF_H__ -#define __X86_64_ELF_H__ +#ifndef ASM__X86__X86_64__ELF_H +#define ASM__X86__X86_64__ELF_H =20 #include #include @@ -72,7 +72,7 @@ static inline void elf_core_save_regs(ELF_Gregset *core_r= egs, asm ( "mov %%cr4, %0" : "=3Dr" (xen_core_regs->cr4) ); } =20 -#endif /* __X86_64_ELF_H__ */ +#endif /* ASM__X86__X86_64__ELF_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/x86_64/page.h b/xen/arch/x86/include/= asm/x86_64/page.h index 201b79f99e..797bc698f3 100644 --- a/xen/arch/x86/include/asm/x86_64/page.h +++ b/xen/arch/x86/include/asm/x86_64/page.h @@ -1,6 +1,6 @@ =20 -#ifndef __X86_64_PAGE_H__ -#define __X86_64_PAGE_H__ +#ifndef ASM__X86__X86_64__PAGE_H +#define ASM__X86__X86_64__PAGE_H =20 #define __XEN_VIRT_START XEN_VIRT_START =20 @@ -153,7 +153,7 @@ static inline intpte_t put_pte_flags(unsigned int x) #define PAGE_HYPERVISOR_WT (__PAGE_HYPERVISOR_WT | \ _PAGE_GLOBAL | _PAGE_NX) =20 -#endif /* __X86_64_PAGE_H__ */ +#endif /* ASM__X86__X86_64__PAGE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/x86_64/regs.h b/xen/arch/x86/include/= asm/x86_64/regs.h index 171cf9a2e2..55a309cf24 100644 --- a/xen/arch/x86/include/asm/x86_64/regs.h +++ b/xen/arch/x86/include/asm/x86_64/regs.h @@ -1,5 +1,5 @@ -#ifndef _X86_64_REGS_H -#define _X86_64_REGS_H +#ifndef ASM__X86__X86_64__REGS_H +#define ASM__X86__X86_64__REGS_H =20 #include #include diff --git a/xen/arch/x86/include/asm/x86_64/system.h b/xen/arch/x86/includ= e/asm/x86_64/system.h index e94371cf20..2bb71615fe 100644 --- a/xen/arch/x86/include/asm/x86_64/system.h +++ b/xen/arch/x86/include/asm/x86_64/system.h @@ -1,5 +1,5 @@ -#ifndef __X86_64_SYSTEM_H__ -#define __X86_64_SYSTEM_H__ +#ifndef ASM__X86__X86_64__SYSTEM_H +#define ASM__X86__X86_64__SYSTEM_H =20 #define cmpxchg(ptr,o,n) \ ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o), \ @@ -59,4 +59,4 @@ static always_inline __uint128_t cmpxchg16b_local_( __cmpxchg16b(_p, (void *)(o), (void *)(n)); \ }) =20 -#endif /* __X86_64_SYSTEM_H__ */ +#endif /* ASM__X86__X86_64__SYSTEM_H */ diff --git a/xen/arch/x86/include/asm/x86_64/uaccess.h b/xen/arch/x86/inclu= de/asm/x86_64/uaccess.h index c6fa3fd381..e775af5487 100644 --- a/xen/arch/x86/include/asm/x86_64/uaccess.h +++ b/xen/arch/x86/include/asm/x86_64/uaccess.h @@ -1,5 +1,5 @@ -#ifndef __X86_64_UACCESS_H -#define __X86_64_UACCESS_H +#ifndef ASM__X86__X86_64__UACCESS_H +#define ASM__X86__X86_64__UACCESS_H =20 /* * With CONFIG_SPECULATIVE_HARDEN_GUEST_ACCESS (apparent) PV guest accesses @@ -68,4 +68,4 @@ extern void *xlat_malloc(unsigned long *xlat_page_current= , size_t size); (likely((count) < (~0U / (size))) && \ compat_access_ok(addr, 0 + (count) * (size))) =20 -#endif /* __X86_64_UACCESS_H */ +#endif /* ASM__X86__X86_64__UACCESS_H */ diff --git a/xen/arch/x86/include/asm/x86_emulate.h b/xen/arch/x86/include/= asm/x86_emulate.h index 2b75f7f8e2..95aba22819 100644 --- a/xen/arch/x86/include/asm/x86_emulate.h +++ b/xen/arch/x86/include/asm/x86_emulate.h @@ -9,8 +9,8 @@ * Keir Fraser */ =20 -#ifndef __ASM_X86_X86_EMULATE_H__ -#define __ASM_X86_X86_EMULATE_H__ +#ifndef ASM__X86__X86_EMULATE_H +#define ASM__X86__X86_EMULATE_H =20 #include #include @@ -19,4 +19,4 @@ =20 #include "../../x86_emulate/x86_emulate.h" =20 -#endif /* __ASM_X86_X86_EMULATE_H__ */ +#endif /* ASM__X86__X86_EMULATE_H */ diff --git a/xen/arch/x86/include/asm/xenoprof.h b/xen/arch/x86/include/asm= /xenoprof.h index dc6f822d32..8d729a0397 100644 --- a/xen/arch/x86/include/asm/xenoprof.h +++ b/xen/arch/x86/include/asm/xenoprof.h @@ -7,8 +7,8 @@ * VA Linux Systems Japan K.K. */ =20 -#ifndef __ASM_X86_XENOPROF_H__ -#define __ASM_X86_XENOPROF_H__ +#ifndef ASM__X86__XENOPROF_H +#define ASM__X86__XENOPROF_H =20 struct vcpu; =20 @@ -82,7 +82,7 @@ static inline bool nmi_oprofile_send_virq(void) =20 #endif /* CONFIG_XENOPROF */ =20 -#endif /* __ASM_X86_XENOPROF_H__ */ +#endif /* ASM__X86__XENOPROF_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/include/asm/xstate.h b/xen/arch/x86/include/asm/x= state.h index b4ee555953..b673412e71 100644 --- a/xen/arch/x86/include/asm/xstate.h +++ b/xen/arch/x86/include/asm/xstate.h @@ -5,8 +5,8 @@ *=20 */ =20 -#ifndef __ASM_XSTATE_H -#define __ASM_XSTATE_H +#ifndef ASM__X86__XSTATE_H +#define ASM__X86__XSTATE_H =20 #include #include @@ -142,4 +142,4 @@ static inline bool xstate_all(const struct vcpu *v) (v->arch.xcr0_accum & XSTATE_LAZY & ~XSTATE_FP_SSE); } =20 -#endif /* __ASM_XSTATE_H */ +#endif /* ASM__X86__XSTATE_H */ diff --git a/xen/arch/x86/mm/hap/private.h b/xen/arch/x86/mm/hap/private.h index 7eb672fa41..a85d390f56 100644 --- a/xen/arch/x86/mm/hap/private.h +++ b/xen/arch/x86/mm/hap/private.h @@ -5,8 +5,8 @@ * Copyright (c) 2007, AMD Corporation (Wei Huang) * */ -#ifndef __HAP_PRIVATE_H__ -#define __HAP_PRIVATE_H__ +#ifndef X86__MM__HAP__PRIVATE_H +#define X86__MM__HAP__PRIVATE_H =20 #include "../mm-locks.h" =20 @@ -30,4 +30,4 @@ unsigned long cf_check hap_p2m_ga_to_gfn_4_levels( struct vcpu *v, struct p2m_domain *p2m, unsigned long cr3, paddr_t ga, uint32_t *pfec, unsigned int *page_order); =20 -#endif /* __HAP_PRIVATE_H__ */ +#endif /* X86__MM__HAP__PRIVATE_H */ diff --git a/xen/arch/x86/mm/mm-locks.h b/xen/arch/x86/mm/mm-locks.h index a695a28324..e676c19b87 100644 --- a/xen/arch/x86/mm/mm-locks.h +++ b/xen/arch/x86/mm/mm-locks.h @@ -10,8 +10,8 @@ * Copyright (c) 2006 Michael A Fetterman */ =20 -#ifndef _MM_LOCKS_H -#define _MM_LOCKS_H +#ifndef X86__MM__MM_LOCKS_H +#define X86__MM__MM_LOCKS_H =20 /* Per-CPU variable for enforcing the lock ordering */ DECLARE_PER_CPU(int, mm_lock_level); @@ -394,4 +394,4 @@ declare_mm_lock(paging) #define paging_unlock(d) mm_unlock(&(d)->arch.paging.lock) #define paging_locked_by_me(d) mm_locked_by_me(&(d)->arch.paging.lock) =20 -#endif /* _MM_LOCKS_H */ +#endif /* X86__MM__MM_LOCKS_H */ diff --git a/xen/arch/x86/mm/p2m.h b/xen/arch/x86/mm/p2m.h index 635f5a7f45..6815367c10 100644 --- a/xen/arch/x86/mm/p2m.h +++ b/xen/arch/x86/mm/p2m.h @@ -3,8 +3,8 @@ * arch/x86/mm/p2m.h */ =20 -#ifndef __ARCH_MM_P2M_H__ -#define __ARCH_MM_P2M_H__ +#ifndef X86__MM__P2M_H +#define X86__MM__P2M_H =20 struct p2m_domain *p2m_init_one(struct domain *d); void p2m_free_one(struct p2m_domain *p2m); @@ -33,7 +33,7 @@ int ept_p2m_init(struct p2m_domain *p2m); void ept_p2m_uninit(struct p2m_domain *p2m); void p2m_init_altp2m_ept(struct domain *d, unsigned int i); =20 -#endif /* __ARCH_MM_P2M_H__ */ +#endif /* X86__MM__P2M_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/mm/shadow/private.h b/xen/arch/x86/mm/shadow/priv= ate.h index a5fc3a7676..f6156eceb7 100644 --- a/xen/arch/x86/mm/shadow/private.h +++ b/xen/arch/x86/mm/shadow/private.h @@ -8,8 +8,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_SHADOW_PRIVATE_H -#define _XEN_SHADOW_PRIVATE_H +#ifndef X86__MM__SHADOW__PRIVATE_H +#define X86__MM__SHADOW__PRIVATE_H =20 // In order to override the definition of mfn_to_page, we make sure page.h= has // been included... @@ -912,7 +912,7 @@ static inline int sh_check_page_has_no_refs(struct page= _info *page) /* Flush the TLB of the selected vCPUs. */ bool cf_check shadow_flush_tlb(const unsigned long *vcpu_bitmap); =20 -#endif /* _XEN_SHADOW_PRIVATE_H */ +#endif /* X86__MM__SHADOW__PRIVATE_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/mm/shadow/types.h b/xen/arch/x86/mm/shadow/types.h index d700d8d64c..ade4e6601d 100644 --- a/xen/arch/x86/mm/shadow/types.h +++ b/xen/arch/x86/mm/shadow/types.h @@ -7,8 +7,8 @@ * Parts based on earlier work by Michael A Fetterman, Ian Pratt et al. */ =20 -#ifndef _XEN_SHADOW_TYPES_H -#define _XEN_SHADOW_TYPES_H +#ifndef X86__MM__SHADOW__TYPES_H +#define X86__MM__SHADOW__TYPES_H =20 /* The number of levels in the shadow pagetable is entirely determined * by the number of levels in the guest pagetable */ @@ -377,7 +377,7 @@ static inline uint32_t sh_l1e_mmio_get_flags(shadow_l1e= _t sl1e) #endif /* SHOPT_FAST_FAULT_PATH */ =20 =20 -#endif /* _XEN_SHADOW_TYPES_H */ +#endif /* X86__MM__SHADOW__TYPES_H */ =20 /* * Local variables: diff --git a/xen/arch/x86/oprofile/op_counter.h b/xen/arch/x86/oprofile/op_= counter.h index b515ac9ebc..b2ad0fb108 100644 --- a/xen/arch/x86/oprofile/op_counter.h +++ b/xen/arch/x86/oprofile/op_counter.h @@ -7,8 +7,8 @@ * @author John Levon */ =20 -#ifndef OP_COUNTER_H -#define OP_COUNTER_H +#ifndef X86__OPROFILE__OP_COUNTER_H +#define X86__OPROFILE__OP_COUNTER_H =20 #define OP_MAX_COUNTER 8 =20 @@ -38,4 +38,4 @@ struct op_ibs_config { =20 extern struct op_ibs_config ibs_config; =20 -#endif /* OP_COUNTER_H */ +#endif /* X86__OPROFILE__OP_COUNTER_H */ diff --git a/xen/arch/x86/oprofile/op_x86_model.h b/xen/arch/x86/oprofile/o= p_x86_model.h index 35bc3c1e22..92253da6a5 100644 --- a/xen/arch/x86/oprofile/op_x86_model.h +++ b/xen/arch/x86/oprofile/op_x86_model.h @@ -8,8 +8,8 @@ * @author Graydon Hoare */ =20 -#ifndef OP_X86_MODEL_H -#define OP_X86_MODEL_H +#ifndef X86__OPROFILE__OP_X86_MODEL_H +#define X86__OPROFILE__OP_X86_MODEL_H =20 struct op_msr { unsigned long addr; @@ -55,4 +55,4 @@ void arch_perfmon_setup_counters(void); extern int ppro_has_global_ctrl; extern struct op_x86_model_spec const *model; =20 -#endif /* OP_X86_MODEL_H */ +#endif /* X86__OPROFILE__OP_X86_MODEL_H */ diff --git a/xen/arch/x86/pv/emulate.h b/xen/arch/x86/pv/emulate.h index 49a4d34832..7eef71758e 100644 --- a/xen/arch/x86/pv/emulate.h +++ b/xen/arch/x86/pv/emulate.h @@ -1,5 +1,5 @@ -#ifndef __PV_EMULATE_H__ -#define __PV_EMULATE_H__ +#ifndef X86__PV__EMULATE_H +#define X86__PV__EMULATE_H =20 #include =20 @@ -22,4 +22,4 @@ static inline const seg_desc_t *gdt_ldt_desc_ptr(unsigned= int sel) return &tbl[sel >> 3]; } =20 -#endif /* __PV_EMULATE_H__ */ +#endif /* X86__PV__EMULATE_H */ diff --git a/xen/arch/x86/pv/mm.h b/xen/arch/x86/pv/mm.h index 4564cab9fc..49a10b2878 100644 --- a/xen/arch/x86/pv/mm.h +++ b/xen/arch/x86/pv/mm.h @@ -1,5 +1,5 @@ -#ifndef __PV_MM_H__ -#define __PV_MM_H__ +#ifndef X86__PV__MM_H +#define X86__PV__MM_H =20 #include =20 @@ -181,4 +181,4 @@ static always_inline l4_pgentry_t adjust_guest_l4e(l4_p= gentry_t l4e, return l4e; } =20 -#endif /* __PV_MM_H__ */ +#endif /* X86__PV__MM_H */ diff --git a/xen/arch/x86/x86_emulate/x86_emulate.h b/xen/arch/x86/x86_emul= ate/x86_emulate.h index 3e819d4174..d52ac28307 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.h +++ b/xen/arch/x86/x86_emulate/x86_emulate.h @@ -8,8 +8,8 @@ * Copyright (c) 2005-2007 XenSource Inc. */ =20 -#ifndef __X86_EMULATE_H__ -#define __X86_EMULATE_H__ +#ifndef X86__X86_EMULATE__X86_EMULATE_H +#define X86__X86_EMULATE__X86_EMULATE_H =20 #include =20 @@ -846,4 +846,4 @@ static inline void x86_emul_reset_event(struct x86_emul= ate_ctxt *ctxt) ctxt->event =3D (struct x86_event){}; } =20 -#endif /* __X86_EMULATE_H__ */ +#endif /* X86__X86_EMULATE__X86_EMULATE_H */ diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/publ= ic/arch-x86/cpufeatureset.h index 8fa3fb711a..7138a3e2e6 100644 --- a/xen/include/public/arch-x86/cpufeatureset.h +++ b/xen/include/public/arch-x86/cpufeatureset.h @@ -30,15 +30,15 @@ * Includer has not provided a custom XEN_CPUFEATURE(). Arrange for normal * header guards, an enum and constants in the XEN_X86_FEATURE_xxx namespa= ce. */ -#ifndef __XEN_PUBLIC_ARCH_X86_CPUFEATURESET_H__ -#define __XEN_PUBLIC_ARCH_X86_CPUFEATURESET_H__ +#ifndef PUBLIC__ARCH_X86__CPUFEATURESET_H +#define PUBLIC__ARCH_X86__CPUFEATURESET_H =20 #define XEN_CPUFEATURESET_DEFAULT_INCLUDE =20 #define XEN_CPUFEATURE(name, value) XEN_X86_FEATURE_##name =3D value, enum { =20 -#endif /* __XEN_PUBLIC_ARCH_X86_CPUFEATURESET_H__ */ +#endif /* PUBLIC__ARCH_X86__CPUFEATURESET_H */ #endif /* !XEN_CPUFEATURE */ =20 =20 diff --git a/xen/include/public/arch-x86/cpuid.h b/xen/include/public/arch-= x86/cpuid.h index 3bb0dd249f..81648850fa 100644 --- a/xen/include/public/arch-x86/cpuid.h +++ b/xen/include/public/arch-x86/cpuid.h @@ -10,8 +10,8 @@ * Keir Fraser */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_CPUID_H__ -#define __XEN_PUBLIC_ARCH_X86_CPUID_H__ +#ifndef PUBLIC__ARCH_X86__CPUID_H +#define PUBLIC__ARCH_X86__CPUID_H =20 /* * For compatibility with other hypervisor interfaces, the Xen cpuid leaves @@ -119,4 +119,4 @@ =20 #define XEN_CPUID_MAX_NUM_LEAVES 5 =20 -#endif /* __XEN_PUBLIC_ARCH_X86_CPUID_H__ */ +#endif /* PUBLIC__ARCH_X86__CPUID_H */ diff --git a/xen/include/public/arch-x86/guest-acpi.h b/xen/include/public/= arch-x86/guest-acpi.h index de40259b6a..d5326b3227 100644 --- a/xen/include/public/arch-x86/guest-acpi.h +++ b/xen/include/public/arch-x86/guest-acpi.h @@ -6,8 +6,8 @@ * */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_GUEST_ACPI_H__ -#define __XEN_PUBLIC_ARCH_X86_GUEST_ACPI_H__ +#ifndef PUBLIC__ARCH_X86__GUEST_ACPI_H +#define PUBLIC__ARCH_X86__GUEST_ACPI_H =20 #ifdef __XEN_TOOLS__ =20 @@ -20,7 +20,7 @@ =20 #endif /* __XEN_TOOLS__ */ =20 -#endif /* __XEN_PUBLIC_ARCH_X86_GUEST_ACPI_H__ */ +#endif /* PUBLIC__ARCH_X86__GUEST_ACPI_H */ =20 /* * Local variables: diff --git a/xen/include/public/arch-x86/hvm/save.h b/xen/include/public/ar= ch-x86/hvm/save.h index 7ecacadde1..9763dadbb6 100644 --- a/xen/include/public/arch-x86/hvm/save.h +++ b/xen/include/public/arch-x86/hvm/save.h @@ -6,8 +6,8 @@ * Copyright (c) 2007 XenSource Ltd. */ =20 -#ifndef __XEN_PUBLIC_HVM_SAVE_X86_H__ -#define __XEN_PUBLIC_HVM_SAVE_X86_H__ +#ifndef PUBLIC__ARCH_X86__HVM__SAVE_H +#define PUBLIC__ARCH_X86__HVM__SAVE_H =20 #include "../../xen.h" =20 @@ -631,7 +631,7 @@ struct hvm_msr { */ #define HVM_SAVE_CODE_MAX 20 =20 -#endif /* __XEN_PUBLIC_HVM_SAVE_X86_H__ */ +#endif /* PUBLIC__ARCH_X86__HVM__SAVE_H */ =20 /* * Local variables: diff --git a/xen/include/public/arch-x86/hvm/start_info.h b/xen/include/pub= lic/arch-x86/hvm/start_info.h index e33557c0b4..ce5486e8a1 100644 --- a/xen/include/public/arch-x86/hvm/start_info.h +++ b/xen/include/public/arch-x86/hvm/start_info.h @@ -3,8 +3,8 @@ * Copyright (c) 2016, Citrix Systems, Inc. */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ -#define __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ +#ifndef PUBLIC__ARCH_X86__HVM__START_INFO_H +#define PUBLIC__ARCH_X86__HVM__START_INFO_H =20 /* * Start of day structure passed to PVH guests and to HVM guests in %ebx. @@ -139,4 +139,4 @@ struct hvm_memmap_table_entry { uint32_t reserved; /* Must be zero for Version 1. = */ }; =20 -#endif /* __XEN_PUBLIC_ARCH_X86_HVM_START_INFO_H__ */ +#endif /* PUBLIC__ARCH_X86__HVM__START_INFO_H */ diff --git a/xen/include/public/arch-x86/pmu.h b/xen/include/public/arch-x8= 6/pmu.h index d0a99268af..4eaab67725 100644 --- a/xen/include/public/arch-x86/pmu.h +++ b/xen/include/public/arch-x86/pmu.h @@ -3,8 +3,8 @@ * Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_PMU_H__ -#define __XEN_PUBLIC_ARCH_X86_PMU_H__ +#ifndef PUBLIC__ARCH_X86__PMU_H +#define PUBLIC__ARCH_X86__PMU_H =20 /* x86-specific PMU definitions */ =20 @@ -129,7 +129,7 @@ struct xen_pmu_arch { typedef struct xen_pmu_arch xen_pmu_arch_t; DEFINE_XEN_GUEST_HANDLE(xen_pmu_arch_t); =20 -#endif /* __XEN_PUBLIC_ARCH_X86_PMU_H__ */ +#endif /* PUBLIC__ARCH_X86__PMU_H */ /* * Local variables: * mode: C diff --git a/xen/include/public/arch-x86/xen-mca.h b/xen/include/public/arc= h-x86/xen-mca.h index bb1b12f14f..fc1c27fa7d 100644 --- a/xen/include/public/arch-x86/xen-mca.h +++ b/xen/include/public/arch-x86/xen-mca.h @@ -33,8 +33,8 @@ * and tell Xen to trigger a machine check */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_MCA_H__ -#define __XEN_PUBLIC_ARCH_X86_MCA_H__ +#ifndef PUBLIC__ARCH_X86__XEN_MCA_H +#define PUBLIC__ARCH_X86__XEN_MCA_H =20 /* Hypercall */ #define __HYPERVISOR_mca __HYPERVISOR_arch_0 @@ -435,4 +435,4 @@ DEFINE_XEN_GUEST_HANDLE(xen_mc_t); =20 #endif /* __ASSEMBLY__ */ =20 -#endif /* __XEN_PUBLIC_ARCH_X86_MCA_H__ */ +#endif /* PUBLIC__ARCH_X86__XEN_MCA_H */ diff --git a/xen/include/public/arch-x86/xen-x86_32.h b/xen/include/public/= arch-x86/xen-x86_32.h index 9e3bf06b12..e6ee09f4f2 100644 --- a/xen/include/public/arch-x86/xen-x86_32.h +++ b/xen/include/public/arch-x86/xen-x86_32.h @@ -7,8 +7,8 @@ * Copyright (c) 2004-2007, K A Fraser */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_XEN_X86_32_H__ -#define __XEN_PUBLIC_ARCH_X86_XEN_X86_32_H__ +#ifndef PUBLIC__ARCH_X86__XEN_X86_32_H +#define PUBLIC__ARCH_X86__XEN_X86_32_H =20 /* * Hypercall interface: @@ -164,7 +164,7 @@ typedef struct xen_callback xen_callback_t; =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __XEN_PUBLIC_ARCH_X86_XEN_X86_32_H__ */ +#endif /* PUBLIC__ARCH_X86__XEN_X86_32_H */ =20 /* * Local variables: diff --git a/xen/include/public/arch-x86/xen-x86_64.h b/xen/include/public/= arch-x86/xen-x86_64.h index 43f6e3d220..f33ca35f26 100644 --- a/xen/include/public/arch-x86/xen-x86_64.h +++ b/xen/include/public/arch-x86/xen-x86_64.h @@ -7,8 +7,8 @@ * Copyright (c) 2004-2006, K A Fraser */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_XEN_X86_64_H__ -#define __XEN_PUBLIC_ARCH_X86_XEN_X86_64_H__ +#ifndef PUBLIC__ARCH_X86__XEN_X86_64_H +#define PUBLIC__ARCH_X86__XEN_X86_64_H =20 /* * Hypercall interface: @@ -211,7 +211,7 @@ typedef unsigned long xen_callback_t; =20 #endif /* !__ASSEMBLY__ */ =20 -#endif /* __XEN_PUBLIC_ARCH_X86_XEN_X86_64_H__ */ +#endif /* PUBLIC__ARCH_X86__XEN_X86_64_H */ =20 /* * Local variables: diff --git a/xen/include/public/arch-x86/xen.h b/xen/include/public/arch-x8= 6/xen.h index fc24879866..4a48057e5c 100644 --- a/xen/include/public/arch-x86/xen.h +++ b/xen/include/public/arch-x86/xen.h @@ -7,8 +7,8 @@ * Copyright (c) 2004-2006, K A Fraser */ =20 -#ifndef __XEN_PUBLIC_ARCH_X86_XEN_H__ -#define __XEN_PUBLIC_ARCH_X86_XEN_H__ +#ifndef PUBLIC__ARCH_X86__XEN_H +#define PUBLIC__ARCH_X86__XEN_H =20 /* Structural guest handles introduced in 0x00030201. */ #if __XEN_INTERFACE_VERSION__ >=3D 0x00030201 @@ -363,7 +363,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_msr_entry_t); */ #define XEN_HVM_DEBUGCONS_IOPORT 0xe9 =20 -#endif /* __XEN_PUBLIC_ARCH_X86_XEN_H__ */ +#endif /* PUBLIC__ARCH_X86__XEN_H */ =20 /* * Local variables: diff --git a/xen/include/xen/lib/x86/cpu-policy.h b/xen/include/xen/lib/x86= /cpu-policy.h index f43e1a3b21..cef116d8cb 100644 --- a/xen/include/xen/lib/x86/cpu-policy.h +++ b/xen/include/xen/lib/x86/cpu-policy.h @@ -1,6 +1,6 @@ /* Common data structures and functions consumed by hypervisor and toolsta= ck */ -#ifndef XEN_LIB_X86_POLICIES_H -#define XEN_LIB_X86_POLICIES_H +#ifndef XEN__LIB__X86__CPU_POLICY_H +#define XEN__LIB__X86__CPU_POLICY_H =20 #include =20 @@ -542,7 +542,7 @@ int x86_cpu_policies_are_compatible(const struct cpu_po= licy *host, const struct cpu_policy *guest, struct cpu_policy_errors *err); =20 -#endif /* !XEN_LIB_X86_POLICIES_H */ +#endif /* !XEN__LIB__X86__CPU_POLICY_H */ =20 /* * Local variables: diff --git a/xen/lib/x86/private.h b/xen/lib/x86/private.h index 60bb82a400..bd55647d68 100644 --- a/xen/lib/x86/private.h +++ b/xen/lib/x86/private.h @@ -1,5 +1,5 @@ -#ifndef XEN_LIB_X86_PRIVATE_H -#define XEN_LIB_X86_PRIVATE_H +#ifndef LIB__X86__PRIVATE_H +#define LIB__X86__PRIVATE_H =20 #ifdef __XEN__ =20 @@ -65,7 +65,7 @@ static inline bool test_bit(unsigned int bit, const void = *vaddr) =20 #endif /* __XEN__ */ =20 -#endif /* XEN_LIB_X86_PRIVATE_H */ +#endif /* LIB__X86__PRIVATE_H */ =20 /* * Local variables: --=20 2.34.1