xen: remove trailing spaces from public headers
PATCH 1/1 xen: remove trailing spaces from public headers
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
---
I have omitted tmem.h in order to avoid a conflict with Wei's tmem removal series.
--- xen/include/public/arch-x86/cpuid.h | 8 ++++---- xen/include/public/arch-x86/hvm/save.h | 20 +++++++++---------- xen/include/public/arch-x86/xen-x86_32.h | 4 ++-- xen/include/public/arch-x86/xen-x86_64.h | 4 ++-- xen/include/public/arch-x86/xen.h | 4 ++-- xen/include/public/arch-x86_32.h | 4 ++-- xen/include/public/arch-x86_64.h | 4 ++-- xen/include/public/dom0_ops.h | 4 ++-- xen/include/public/domctl.h | 8 ++++---- xen/include/public/elfnote.h | 4 ++-- xen/include/public/features.h | 4 ++-- xen/include/public/hvm/hvm_info_table.h | 2 +- xen/include/public/hvm/ioreq.h | 8 ++++---- xen/include/public/hvm/pvdrivers.h | 4 ++-- xen/include/public/hvm/save.h | 34 ++++++++++++++++---------------- xen/include/public/io/console.h | 4 ++-- xen/include/public/io/fsif.h | 6 +++--- xen/include/public/io/protocols.h | 2 +- xen/include/public/io/ring.h | 34 ++++++++++++++++---------------- xen/include/public/io/vscsiif.h | 24 +++++++++++----------- xen/include/public/kexec.h | 14 ++++++------- xen/include/public/memory.h | 16 +++++++-------- xen/include/public/nmi.h | 4 ++-- xen/include/public/physdev.h | 6 +++--- xen/include/public/platform.h | 4 ++-- xen/include/public/sysctl.h | 16 +++++++-------- xen/include/public/trace.h | 2 +- xen/include/public/vcpu.h | 14 ++++++------- xen/include/public/version.h | 4 ++-- xen/include/public/xen-compat.h | 4 ++-- xen/include/public/xen.h | 22 ++++++++++----------- xen/include/public/xenoprof.h | 4 ++-- 32 files changed, 148 insertions(+), 148 deletions(-)
xen/include/public/arch-x86/cpuid.h +4 -4
@@ -1,8 +1,8 @@/****************************************************************************** * arch-x86/cpuid.h -* +* * CPUID interface to Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -20,9 +20,9 @@* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. -* +* * Copyright (c) 2007 Citrix Systems, Inc. -* +* * Authors: * Keir Fraser <[email protected]> */
xen/include/public/arch-x86/hvm/save.h +10 -10
@@ -1,7 +1,7 @@ -/* +/* * Structure definitions for HVM state that is held by Xen and must * be saved along with the domain's memory and device-model state. -* +* * Copyright (c) 2007 XenSource Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -26,8 +26,8 @@#ifndef __XEN_PUBLIC_HVM_SAVE_X86_H__#define __XEN_PUBLIC_HVM_SAVE_X86_H__ -/* -* Save/restore header: general info about the save file. +/* +* Save/restore header: general info about the save file. */ #define HVM_FILE_MAGIC 0x54381286
@@ -85,7 +85,7 @@ struct hvm_hw_cpu {uint64_t dr2;uint64_t dr3;uint64_t dr6; -uint64_t dr7; +uint64_t dr7;uint32_t cs_sel;uint32_t ds_sel;
@@ -199,7 +199,7 @@ struct hvm_hw_cpu_compat {uint64_t dr2;uint64_t dr3;uint64_t dr6; -uint64_t dr7; +uint64_t dr7;uint32_t cs_sel;uint32_t ds_sel;
@@ -463,7 +463,7 @@ struct hvm_hw_pci_link { DECLARE_HVM_SAVE_TYPE(PCI_LINK, 9, struct hvm_hw_pci_link); -/* +/* * PIT */
@@ -489,9 +489,9 @@ struct hvm_hw_pit { DECLARE_HVM_SAVE_TYPE(PIT, 10, struct hvm_hw_pit); -/* +/* * RTC -*/ +*/ #define RTC_CMOS_SIZE 14struct hvm_hw_rtc {
@@ -639,7 +639,7 @@ struct hvm_msr {#define CPU_MSR_CODE 20 -/* +/* * Largest type-code in use */ #define HVM_SAVE_CODE_MAX 20
xen/include/public/arch-x86/xen-x86_32.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * xen-x86_32.h -* +* * Guest OS interface to x86 32-bit Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/arch-x86/xen-x86_64.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * xen-x86_64.h -* +* * Guest OS interface to x86 64-bit Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/arch-x86/xen.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * arch-x86/xen.h -* +* * Guest OS interface to x86 Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/arch-x86_32.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * arch-x86_32.h -* +* * Guest OS interface to x86 32-bit Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/arch-x86_64.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * arch-x86_64.h -* +* * Guest OS interface to x86 64-bit Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/dom0_ops.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * dom0_ops.h -* +* * Process command requests from domain-0 guest OS. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/domctl.h +4 -4
@@ -1,8 +1,8 @@/****************************************************************************** * domctl.h -* +* * Domain management operations. For use by node control stack. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -785,7 +785,7 @@ struct xen_domctl_gdbsx_domstatus {/* * Domain memory paging * Page memory in and out. -* Domctl interface to set up and tear down the +* Domctl interface to set up and tear down the * pager<->hypervisor interface. Use XENMEM_paging_op* * to perform per-page operations. *
@@ -837,7 +837,7 @@ struct xen_domctl_gdbsx_domstatus {*/ #define XEN_DOMCTL_VM_EVENT_OP_SHARING 3 -/* Use for teardown/setup of helper<->hypervisor interface for paging, +/* Use for teardown/setup of helper<->hypervisor interface for paging, * access and sharing.*/ struct xen_domctl_vm_event_op {uint32_t op;/* XEN_VM_EVENT_* */
xen/include/public/elfnote.h +2 -2
@@ -219,7 +219,7 @@/* * System information exported through crash notes. * -* The kexec / kdump code will create one XEN_ELFNOTE_CRASH_INFO +* The kexec / kdump code will create one XEN_ELFNOTE_CRASH_INFO * note in case of a system crash. This note will contain various * information about the system, see xen/include/xen/elfcore.h. */
@@ -228,7 +228,7 @@/* * System registers exported through crash notes. * -* The kexec / kdump code will create one XEN_ELFNOTE_CRASH_REGS +* The kexec / kdump code will create one XEN_ELFNOTE_CRASH_REGS * note per cpu in case of a system crash. This note is architecture * specific and will contain registers not saved in the "CORE" note. * See xen/include/xen/elfcore.h for more information.
xen/include/public/features.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * features.h -* +* * Feature flags, reported by XENVER_get_features. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/hvm/hvm_info_table.h +1 -1
@@ -1,6 +1,6 @@/****************************************************************************** * hvm/hvm_info_table.h -* +* * HVM parameter and information table, written into guest memory map. * * Permission is hereby granted, free of charge, to any person obtaining a copy
xen/include/public/hvm/ioreq.h +4 -4
@@ -1,7 +1,7 @@/* * ioreq.h: I/O request definitions for device models * Copyright (c) 2004, Intel Corporation. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -45,7 +45,7 @@* * For I/O type IOREQ_TYPE_PCI_CONFIG, the physical address is formatted * as follows: -* +* * 63....48|47..40|39..35|34..32|31........0 * SEGMENT |BUS |DEV |FN |OFFSET */
@@ -57,7 +57,7 @@ struct ioreq {uint32_t vp_eport;/* evtchn for notifications to/from device model */ uint16_t _pad0; uint8_t state:4; - uint8_t data_is_ptr:1; /* if 1, data above is the guest paddr + uint8_t data_is_ptr:1; /* if 1, data above is the guest paddr* of the real data to use. */ uint8_t dir:1; /* 1=read, 0=write */ uint8_t df:1;
@@ -99,7 +99,7 @@ struct buffered_iopage {typedef struct buffered_iopage buffered_iopage_t ;/* -* ACPI Control/Event register locations. Location is controlled by a +* ACPI Control/Event register locations. Location is controlled by a * version number in HVM_PARAM_ACPI_IOPORTS_LOCATION. */
xen/include/public/hvm/pvdrivers.h +2 -2
@@ -1,7 +1,7 @@/* * pvdrivers.h: Register of PV drivers product numbers. * Copyright (c) 2012, Citrix Systems Inc. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -26,7 +26,7 @@/* * This is the master registry of product numbers for -* PV drivers. +* PV drivers. * If you need a new product number allocating, please * post to [email protected]. You should NOT use * a product number without allocating one.
xen/include/public/hvm/save.h +17 -17
@@ -1,9 +1,9 @@ -/* +/* * hvm/save.h * * Structure definitions for HVM state that is held by Xen and must * be saved along with the domain's memory and device-model state. -* +* * Copyright (c) 2007 XenSource Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -29,13 +29,13 @@#define __XEN_PUBLIC_HVM_SAVE_H__/* -* Structures in this header *must* have the same layout in 32bit -* and 64bit environments: this means that all fields must be explicitly -* sized types and aligned to their sizes, and the structs must be +* Structures in this header *must* have the same layout in 32bit +* and 64bit environments: this means that all fields must be explicitly +* sized types and aligned to their sizes, and the structs must be * a multiple of eight bytes long. * -* Only the state necessary for saving and restoring (i.e. fields -* that are analogous to actual hardware state) should go in this file. +* Only the state necessary for saving and restoring (i.e. fields +* that are analogous to actual hardware state) should go in this file. * Internal mechanisms should be kept in Xen-private headers. */
@@ -43,7 +43,7 @@#error "Anonymous structs/unions are a GNU extension."#endif -/* +/* * Each entry is preceded by a descriptor giving its type and length */ struct hvm_save_descriptor {
@@ -53,9 +53,9 @@ struct hvm_save_descriptor { }; -/* -* Each entry has a datatype associated with it: for example, the CPU state -* is saved as a HVM_SAVE_TYPE(CPU), which has HVM_SAVE_LENGTH(CPU), +/* +* Each entry has a datatype associated with it: for example, the CPU state +* is saved as a HVM_SAVE_TYPE(CPU), which has HVM_SAVE_LENGTH(CPU), * and is identified by a descriptor with typecode HVM_SAVE_CODE(CPU). * DECLARE_HVM_SAVE_TYPE binds these things together with some type-system * ugliness.
@@ -66,20 +66,20 @@ struct hvm_save_descriptor { static inline int __HVM_SAVE_FIX_COMPAT_##_x(void *h, uint32_t size) \ {return _fix (h, size); } \ struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[2];}; \ - struct __HVM_SAVE_TYPE_COMPAT_##_x { _ctype t; } + struct __HVM_SAVE_TYPE_COMPAT_##_x { _ctype t; }# include <xen/lib.h> /* BUG() */ # define DECLARE_HVM_SAVE_TYPE (_x, _code, _type) \ static inline int __HVM_SAVE_FIX_COMPAT_##_x(void *h, uint32_t size) \ { BUG(); return -1; } \ struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[1];}; \ - struct __HVM_SAVE_TYPE_COMPAT_##_x { _type t; } + struct __HVM_SAVE_TYPE_COMPAT_##_x { _type t; }#else # define DECLARE_HVM_SAVE_TYPE_COMPAT (_x, _code, _type, _ctype, _fix) \ - struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[2];} + struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[2];}# define DECLARE_HVM_SAVE_TYPE (_x, _code, _type) \ - struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[1];} + struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[1];}#endif #define HVM_SAVE_TYPE (_x) typeof (((struct __HVM_SAVE_TYPE_##_x *)(0))->t)
@@ -94,8 +94,8 @@ struct hvm_save_descriptor {# define HVM_SAVE_FIX_COMPAT (_x, _dst, _size) __HVM_SAVE_FIX_COMPAT_##_x(_dst, _size)#endif -/* -* The series of save records is teminated by a zero-type, zero-length +/* +* The series of save records is teminated by a zero-type, zero-length * descriptor. */
xen/include/public/io/console.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * console.h -* +* * Console I/O interface for Xen guest OSes. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/io/fsif.h +3 -3
@@ -1,8 +1,8 @@/****************************************************************************** * fsif.h -* +* * Interface to FS level split device drivers. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -120,7 +120,7 @@ struct fsif_list_request {#define ERROR_SIZE 32/* 32 bits for the error mask */ #define ERROR_SHIFT (NR_FILES_SIZE + NR_FILES_SHIFT)#define ERROR_MASK (((1ULL << ERROR_SIZE) - 1) << ERROR_SHIFT) -#define HAS_MORE_SHIFT (ERROR_SHIFT + ERROR_SIZE) +#define HAS_MORE_SHIFT (ERROR_SHIFT + ERROR_SIZE)#define HAS_MORE_FLAG (1ULL << HAS_MORE_SHIFT)struct fsif_chmod_request {
xen/include/public/io/protocols.h +1 -1
@@ -1,6 +1,6 @@/****************************************************************************** * protocols.h -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/io/ring.h +17 -17
@@ -1,6 +1,6 @@/****************************************************************************** * ring.h -* +* * Shared producer-consumer ring macros. * * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -62,7 +62,7 @@ typedef unsigned int RING_IDX;/* * Calculate size of a shared ring, given the total available space for the * ring and indexes (_sz), and the name tag of the request/response structure. -* A ring contains as many entries as will fit, rounded down to the nearest +* A ring contains as many entries as will fit, rounded down to the nearest * power of two (so we can mask with (size-1) to loop around). */ #define __CONST_RING_SIZE (_s, _sz) \
@@ -76,7 +76,7 @@ typedef unsigned int RING_IDX;/* * Macros to make the correct C datatypes for a new kind of ring. -* +* * To make a new ring datatype, you need to have two message structures, * let's say request_t, and response_t already defined. *
@@ -86,7 +86,7 @@ typedef unsigned int RING_IDX;* * These expand out to give you a set of types, as you can see below. * The most important of these are: -* +* * mytag_sring_t - The shared ring. * mytag_front_ring_t - The 'front' half of the ring. * mytag_back_ring_t - The 'back' half of the ring.
@@ -154,15 +154,15 @@ typedef struct __name##_back_ring __name##_back_ring_t/* * Macros for manipulating rings. -* -* FRONT_RING_whatever works on the "front end" of a ring: here +* +* FRONT_RING_whatever works on the "front end" of a ring: here * requests are pushed on to the ring and responses taken off it. -* -* BACK_RING_whatever works on the "back end" of a ring: here +* +* BACK_RING_whatever works on the "back end" of a ring: here * requests are taken off the ring and responses put on. -* -* N.B. these macros do NO INTERLOCKS OR FLOW CONTROL. -* This is OK in 1-for-1 request-response situations where the +* +* N.B. these macros do NO INTERLOCKS OR FLOW CONTROL. +* This is OK in 1-for-1 request-response situations where the * requestor (front end) never has more than RING_SIZE()-1 * outstanding requests. */
@@ -264,26 +264,26 @@ typedef struct __name##_back_ring __name##_back_ring_t/* * Notification hold-off (req_event and rsp_event): -* +* * When queueing requests or responses on a shared ring, it may not always be * necessary to notify the remote end. For example, if requests are in flight * in a backend, the front may be able to queue further requests without * notifying the back (if the back checks for new requests when it queues * responses). -* +* * When enqueuing requests or responses: -* +* * Use RING_PUSH_{REQUESTS,RESPONSES}_AND_CHECK_NOTIFY(). The second argument * is a boolean return value. True indicates that the receiver requires an * asynchronous notification. -* +* * After dequeuing requests or responses (before sleeping the connection): -* +* * Use RING_FINAL_CHECK_FOR_REQUESTS() or RING_FINAL_CHECK_FOR_RESPONSES(). * The second argument is a boolean return value. True indicates that there * are pending messages on the ring (i.e., the connection should not be put * to sleep). -* +* * These macros will set the req_event/rsp_event field to trigger a * notification on the very next message that is enqueued. If you want to * create batches of work (i.e., only receive a notification after several
xen/include/public/io/vscsiif.h +12 -12
@@ -107,11 +107,11 @@/* * Xenstore format in practice * =========================== -* +* * The backend driver uses a single_host:many_devices notation to manage domU * devices. Everything is stored in /local/domain/<backend_domid>/backend/vscsi/. * The xenstore layout looks like this (dom0 is assumed to be the backend_domid): -* +* * <domid>/<vhost>/feature-host = "0" * <domid>/<vhost>/frontend = "/local/domain/<domid>/device/vscsi/0" * <domid>/<vhost>/frontend-id = "<domid>"
@@ -123,10 +123,10 @@* <domid>/<vhost>/vscsi-devs/dev-1/p-dev = "8:0:2:2" * <domid>/<vhost>/vscsi-devs/dev-1/state = "4" * <domid>/<vhost>/vscsi-devs/dev-1/v-dev = "0:0:1:0" -* +* * The frontend driver maintains its state in * /local/domain/<domid>/device/vscsi/. -* +* * <vhost>/backend = "/local/domain/0/backend/vscsi/<domid>/<vhost>" * <vhost>/backend-id = "0" * <vhost>/event-channel = "20"
@@ -134,17 +134,17 @@* <vhost>/state = "4" * <vhost>/vscsi-devs/dev-0/state = "4" * <vhost>/vscsi-devs/dev-1/state = "4" -* +* * In addition to the entries for backend and frontend these flags are stored * for the toolstack: -* +* * <domid>/<vhost>/vscsi-devs/dev-1/p-devname = "/dev/$device" * <domid>/<vhost>/libxl_ctrl_index = "0" -* -* +* +* * Backend/frontend protocol * ========================= -* +* * To create a vhost along with a device: * <domid>/<vhost>/feature-host = "0" * <domid>/<vhost>/frontend = "/local/domain/<domid>/device/vscsi/0"
@@ -155,14 +155,14 @@* <domid>/<vhost>/vscsi-devs/dev-0/state = "1" * <domid>/<vhost>/vscsi-devs/dev-0/v-dev = "0:0:0:0" * Wait for <domid>/<vhost>/state + <domid>/<vhost>/vscsi-devs/dev-0/state become 4 -* +* * To add another device to a vhost: * <domid>/<vhost>/state = "7" * <domid>/<vhost>/vscsi-devs/dev-1/p-dev = "8:0:2:2" * <domid>/<vhost>/vscsi-devs/dev-1/state = "1" * <domid>/<vhost>/vscsi-devs/dev-1/v-dev = "0:0:1:0" * Wait for <domid>/<vhost>/state + <domid>/<vhost>/vscsi-devs/dev-1/state become 4 -* +* * To remove a device from a vhost: * <domid>/<vhost>/state = "7" * <domid>/<vhost>/vscsi-devs/dev-1/state = "5"
@@ -309,7 +309,7 @@ struct vscsiif_response {uint8_t sense_len;uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE ];int32_t rslt; -uint32_t residual_len;/* request bufflen - +uint32_t residual_len;/* request bufflen - return the value from physical device */ uint32_t reserved[36 ]; };
xen/include/public/kexec.h +7 -7
@@ -1,6 +1,6 @@/****************************************************************************** * kexec.h - Public portion -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -18,7 +18,7 @@* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. -* +* * Xen port written by: * - Simon 'Horms' Horman <[email protected]> * - Magnus Damm <[email protected]>
@@ -30,7 +30,7 @@/* This file describes the Kexec / Kdump hypercall interface for Xen. * -* Kexec under vanilla Linux allows a user to reboot the physical machine +* Kexec under vanilla Linux allows a user to reboot the physical machine * into a new user-specified kernel. The Xen port extends this idea * to allow rebooting of the machine from dom0. When kexec for dom0 * is used to reboot, both the hypervisor and the domains get replaced
@@ -41,8 +41,8 @@* types of hypercall operations: * * 1) Range information: -* This is used by the dom0 kernel to ask the hypervisor about various -* address information. This information is needed to allow kexec-tools +* This is used by the dom0 kernel to ask the hypervisor about various +* address information. This information is needed to allow kexec-tools * to fill in the ELF headers for /proc/vmcore properly. * * 2) Load and unload of images:
@@ -65,7 +65,7 @@/* * Prototype for this hypercall is: * int kexec_op(int cmd, void *args) -* @cmd == KEXEC_CMD_... +* @cmd == KEXEC_CMD_... * KEXEC operation to perform * @args == Operation-specific extra arguments (NULL if none). */
@@ -92,7 +92,7 @@* is passed to the "code page" which is one page of code that performs * the final relocations before jumping to the new kernel. */ - + typedef struct xen_kexec_image { #if defined(__i386__) || defined(__x86_64__) unsigned long page_list[KEXEC_XEN_NO_PAGES];
xen/include/public/memory.h +8 -8
@@ -1,8 +1,8 @@/****************************************************************************** * memory.h -* +* * Memory reservation and information. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -41,9 +41,9 @@#if __XEN_INTERFACE_VERSION__ >=0x00030209 /* -* Maximum # bits addressable by the user of the allocated region (e.g., I/O -* devices often have a 32-bit limitation even in 64-bit systems). If zero -* then the user has no addressing restriction. This field is not used by +* Maximum # bits addressable by the user of the allocated region (e.g., I/O +* devices often have a 32-bit limitation even in 64-bit systems). If zero +* then the user has no addressing restriction. This field is not used by * XENMEM_decrease_reservation. */ #define XENMEMF_address_bits (x) (x)
@@ -117,7 +117,7 @@ struct xen_memory_exchange {* [IN/OUT] Details of new memory extents. * We require that: * 1. @in.domid == @out.domid -* 2. @in.nr_extents << @in.extent_order == +* 2. @in.nr_extents << @in.extent_order == * @out.nr_extents << @out.extent_order * 3. @in.extent_start and @out.extent_start lists must not overlap * 4. @out.extent_start lists GPFN bases to be populated
@@ -382,7 +382,7 @@ typedef struct xen_pod_target xen_pod_target_t;/* * Get the number of MFNs saved through memory sharing. -* The call never fails. +* The call never fails. */ #define XENMEM_get_sharing_freed_pages 18#define XENMEM_get_sharing_shared_pages 19
@@ -488,7 +488,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_mem_access_op_t);/* The following allows sharing of grant refs. This is useful * for sharing utilities sitting as "filters" in IO backends -* (e.g. memshr + blktap(2)). The IO backend is only exposed +* (e.g. memshr + blktap(2)). The IO backend is only exposed * to grant references, and this allows sharing of the grefs */ #define XENMEM_SHARING_OP_FIELD_IS_GREF_FLAG (xen_mk_ullong(1) << 62)
xen/include/public/nmi.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * nmi.h -* +* * NMI callback registration and reason codes. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/physdev.h +3 -3
@@ -148,7 +148,7 @@ struct physdev_irq { };typedef struct physdev_irq physdev_irq_t ;DEFINE_XEN_GUEST_HANDLE (physdev_irq_t); - +#define MAP_PIRQ_TYPE_MSI 0x0#define MAP_PIRQ_TYPE_GSI 0x1#define MAP_PIRQ_TYPE_UNKNOWN 0x2
@@ -192,7 +192,7 @@ struct physdev_manage_pci {/* IN */ uint8_t bus;uint8_t devfn; -}; +};typedef struct physdev_manage_pci physdev_manage_pci_t ;DEFINE_XEN_GUEST_HANDLE (physdev_manage_pci_t);
@@ -258,7 +258,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_setup_gsi_t);* the hypercall returns a free pirq */ #define PHYSDEVOP_get_free_pirq 23struct physdev_get_free_pirq { -/* IN */ +/* IN */ int type;/* OUT */ uint32_t pirq;
xen/include/public/platform.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * platform.h -* +* * Hardware platform operations. Intended for use by domain-0 kernel. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/sysctl.h +8 -8
@@ -1,8 +1,8 @@/****************************************************************************** * sysctl.h -* +* * System management operations. For use by node control stack. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -52,7 +52,7 @@ struct xen_sysctl_readconsole {* IN: Start index for consuming from ring buffer (if @incremental); * OUT: End index after consuming from ring buffer. */ -uint32_t index; +uint32_t index;/* IN: Virtual address to write console data. */ XEN_GUEST_HANDLE_64 (char ) buffer;/* IN: Size of buffer; OUT: Bytes written to buffer. */
@@ -167,14 +167,14 @@ struct xen_sysctl_cpuinfo {uint64_aligned_t idletime; };typedef struct xen_sysctl_cpuinfo xen_sysctl_cpuinfo_t ; -DEFINE_XEN_GUEST_HANDLE (xen_sysctl_cpuinfo_t); +DEFINE_XEN_GUEST_HANDLE (xen_sysctl_cpuinfo_t);struct xen_sysctl_getcpuinfo {/* IN variables. */ uint32_t max_cpus;XEN_GUEST_HANDLE_64 (xen_sysctl_cpuinfo_t) info;/* OUT variables. */ uint32_t nr_cpus; -}; +};/* XEN_SYSCTL_availheap */ struct xen_sysctl_availheap {
@@ -252,7 +252,7 @@ struct xen_sysctl_cpu_hotplug { };/* -* Get/set xen power management, include +* Get/set xen power management, include * 1. cpufreq governors and related parameters */ /* XEN_SYSCTL_pm_op */
@@ -268,8 +268,8 @@ struct xen_ondemand {uint32_t up_threshold; }; -/* -* cpufreq para name of this structure named +/* +* cpufreq para name of this structure named * same as sysfs file name of native linux */ #define CPUFREQ_NAME_LEN 16
xen/include/public/trace.h +1 -1
@@ -1,6 +1,6 @@/****************************************************************************** * include/public/trace.h -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/vcpu.h +7 -7
@@ -1,8 +1,8 @@/****************************************************************************** * vcpu.h -* +* * VCPU initialisation, query, and hotplug. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -38,9 +38,9 @@*/ /* -* Initialise a VCPU. Each VCPU can be initialised only once. A +* Initialise a VCPU. Each VCPU can be initialised only once. A * newly-initialised VCPU will not run until it is brought up by VCPUOP_up. -* +* * @extra_arg == For PV or ARM guests this is a pointer to a vcpu_guest_context * structure containing the initial state for the VCPU. For x86 * HVM based guests this is a pointer to a vcpu_hvm_context
@@ -171,7 +171,7 @@ DEFINE_XEN_GUEST_HANDLE(vcpu_set_singleshot_timer_t);#define _VCPU_SSHOTTMR_future (0)#define VCPU_SSHOTTMR_future (1U << _VCPU_SSHOTTMR_future) -/* +/* * Register a memory location in the guest address space for the * vcpu_info structure. This allows the guest to place the vcpu_info * structure in a convenient place, such as in a per-cpu data area.
@@ -192,7 +192,7 @@ DEFINE_XEN_GUEST_HANDLE(vcpu_register_vcpu_info_t);/* Send an NMI to the specified VCPU. @extra_arg == NULL. */ #define VCPUOP_send_nmi 11 -/* +/* * Get the physical ID information for a pinned vcpu's underlying physical * processor. The physical ID informmation is architecture-specific. * On x86: id[31:0]=apic_id, id[63:32]=acpi_id.
@@ -207,7 +207,7 @@ DEFINE_XEN_GUEST_HANDLE(vcpu_get_physid_t);#define xen_vcpu_physid_to_x86_apicid (physid) ((uint32_t)(physid))#define xen_vcpu_physid_to_x86_acpiid (physid) ((uint32_t)((physid) >> 32)) -/* +/* * Register a memory location to get a secondary copy of the vcpu time * parameters. The master copy still exists as part of the vcpu shared * memory area, and this secondary copy is updated whenever the master copy
xen/include/public/version.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * version.h -* +* * Xen version, type, and compile information. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/xen-compat.h +2 -2
@@ -1,8 +1,8 @@/****************************************************************************** * xen-compat.h -* +* * Guest OS interface to Xen. Compatibility layer. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
xen/include/public/xen.h +11 -11
@@ -1,8 +1,8 @@/****************************************************************************** * xen.h -* +* * Guest OS interface to Xen. -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
@@ -157,11 +157,11 @@ DEFINE_XEN_GUEST_HANDLE(xen_ulong_t);#define __HYPERVISOR_dom0_op __HYPERVISOR_platform_op#endif -/* +/* * VIRTUAL INTERRUPTS -* +* * Virtual interrupts that a guest OS may receive from Xen. -* +* * In the side comments, 'V.' denotes a per-VCPU VIRQ while 'G.' denotes a * global VIRQ. The former can be bound once per VCPU and cannot be re-bound. * The latter can be allocated only once per guest: they must initially be
@@ -211,7 +211,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_ulong_t);* (x) encodes the PFD as follows: * x == 0 => PFD == DOMID_SELF * x != 0 => PFD == x - 1 -* +* * Sub-commands: ptr[1:0] specifies the appropriate MMU_* command. * ------------- * ptr[1:0] == MMU_NORMAL_PT_UPDATE:
@@ -257,13 +257,13 @@ DEFINE_XEN_GUEST_HANDLE(xen_ulong_t);* To deallocate the pages, the operations are the reverse of the steps * mentioned above. The argument is MMUEXT_UNPIN_TABLE for all levels and the * pagetable MUST not be in use (meaning that the cr3 is not set to it). -* +* * ptr[1:0] == MMU_MACHPHYS_UPDATE: * Updates an entry in the machine->pseudo-physical mapping table. * ptr[:2] -- Machine address within the frame whose mapping to modify. * The frame must belong to the FD, if one is specified. * val -- Value to write into the mapping entry. -* +* * ptr[1:0] == MMU_PT_UPDATE_PRESERVE_AD: * As MMU_NORMAL_PT_UPDATE above, but A/D bits currently in the PTE are ORed * with those in @val.
@@ -661,7 +661,7 @@ typedef struct vcpu_time_info vcpu_time_info_t;struct vcpu_info {/* * 'evtchn_upcall_pending' is written non-zero by Xen to indicate -* a pending notification for a particular VCPU. It is then cleared +* a pending notification for a particular VCPU. It is then cleared * by the guest OS /before/ checking for pending work, thus avoiding * a set-and-check race. Note that the mask is only accessed by Xen * on the CPU that is currently hosting the VCPU. This means that the
@@ -724,7 +724,7 @@ struct shared_info {* 3. Virtual interrupts ('events'). A domain can bind an event-channel * port to a virtual interrupt source, such as the virtual-timer * device or the emergency console. -* +* * Event channels are addressed by a "port index". Each channel is * associated with two bits of information: * 1. PENDING -- notifies the domain that there is a pending notification
@@ -735,7 +735,7 @@ struct shared_info {* becomes pending while the channel is masked then the 'edge' is lost * (i.e., when the channel is unmasked, the guest must manually handle * pending notifications as no upcall will be scheduled by Xen). -* +* * To expedite scanning of pending notifications, any 0->1 pending * transition on an unmasked channel causes a corresponding bit in a * per-vcpu selector word to be set. Each bit in the selector covers a
xen/include/public/xenoprof.h +2 -2
@@ -1,9 +1,9 @@/****************************************************************************** * xenoprof.h -* +* * Interface for enabling system wide profiling based on hardware performance * counters -* +* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the
Signature · 7 lines
2.16.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Juergen Gross
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Andrew Cooper
Acked-byQuoted 9 lines · Wei Liu
Quoted 7 lines · Juergen Gross
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.
To be honest I'm not convinced removing the public header would be an appropriate step to take.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.To be honest I'm not convinced removing the public header would be an appropriate step to take.
IIRC someone said tmem is never used, so what's the point of keeping tmem.h? Unless I'm misremembering?
Wei.
Quoted 4 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:57, <[email protected]> wrote:
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.
Quoted 5 lines
Quoted 2 lines
To be honest I'm not convinced removing the public header would be an appropriate step to take.
IIRC someone said tmem is never used, so what's the point of keeping
tmem.h? Unless I'm misremembering?
Well, "never used" is a fuzzy term. It is a fact that code exists in Linux (which is about to be removed as well). We don't know who else is carrying code built against our public tmem.h, which is different from that code perhaps also being dead. The original idea (or the way I've been understanding it all the years) with the public interface was that we'd never break people building against them (and on the assumption that they may take our headers verbatim, rather than - like e.g. Linux - cloning them; otherwise installing the headers would be an entirely pointless part of the build process), as long as they adhere to some simple rules (like suitably defining __XEN_INTERFACE_VERSION__).
As a result
- tools only parts of the public interface may of course be deleted,
- general parts ought to remain, but may get framed by a __XEN_INTERFACE_VERSION__ conditional.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 32 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:57, <[email protected]> wrote:
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.Quoted 5 lines
Quoted 2 lines
To be honest I'm not convinced removing the public header would be an appropriate step to take.
IIRC someone said tmem is never used, so what's the point of keeping
tmem.h? Unless I'm misremembering?Well, "never used" is a fuzzy term. It is a fact that code exists in Linux (which is about to be removed as well). We don't know who else is carrying code built against our public
tmem.h, which is different from that code perhaps also being dead. The original idea (or the way I've been understanding it all the years) with the public interface was that we'd never break people building against them (and on the assumption that they may take our headers verbatim, rather than - like e.g. Linux - cloning them; otherwise installing the headers would be an entirely pointless part of the build process), as long as they adhere to some simple rules (like suitably defining__XEN_INTERFACE_VERSION__).
Quoted 6 lines
As a result
- tools only parts of the public interface may of course be deleted,
- general parts ought to remain, but may get framed by a__XEN_INTERFACE_VERSION__conditional.
Fair enough. I will keep it around.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.To be honest I'm not convinced removing the public header would be an appropriate step to take.
In case it is kept I can easily send a followup patch to remove the two trailing spaces in there.
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 13 lines · Juergen Gross
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 13:32, <[email protected]> wrote:
Several public header files have trailing spaces in them. This is rather annoying when importing them into other projects as they might be rejected not complying to coding style.
Remove the trailing spaces in all headers below xen/include/public/.
Signed-off-by Juergen Gross <[email protected]>---
I have omittedtmem.hin order to avoid a conflict with Wei's tmem removal series.
Quoted 5 lines
Quoted 2 lines
To be honest I'm not convinced removing the public header would be an appropriate step to take.
In case it is kept I can easily send a followup patch to remove the two trailing spaces in there.
There is no need for a follow-up patch. I will handle that myself in my series. I plan to commit your patch rather soon.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel