[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] 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/. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- 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(-) diff --git a/xen/include/public/arch-x86/cpuid.h b/xen/include/public/arch-x86/cpuid.h index 665c4b644d..ce46305bee 100644 --- a/xen/include/public/arch-x86/cpuid.h +++ b/xen/include/public/arch-x86/cpuid.h @@ -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 <keir@xxxxxxx> */ diff --git a/xen/include/public/arch-x86/hvm/save.h b/xen/include/public/arch-x86/hvm/save.h index 80e762c335..40be84ecda 100644 --- a/xen/include/public/arch-x86/hvm/save.h +++ b/xen/include/public/arch-x86/hvm/save.h @@ -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 14 struct 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 diff --git a/xen/include/public/arch-x86/xen-x86_32.h b/xen/include/public/arch-x86/xen-x86_32.h index aa388b7f32..19d7388633 100644 --- a/xen/include/public/arch-x86/xen-x86_32.h +++ b/xen/include/public/arch-x86/xen-x86_32.h @@ -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 diff --git a/xen/include/public/arch-x86/xen-x86_64.h b/xen/include/public/arch-x86/xen-x86_64.h index be52f705c9..064b4aae70 100644 --- a/xen/include/public/arch-x86/xen-x86_64.h +++ b/xen/include/public/arch-x86/xen-x86_64.h @@ -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 diff --git a/xen/include/public/arch-x86/xen.h b/xen/include/public/arch-x86/xen.h index 8ed5904978..629cb2ba40 100644 --- a/xen/include/public/arch-x86/xen.h +++ b/xen/include/public/arch-x86/xen.h @@ -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 diff --git a/xen/include/public/arch-x86_32.h b/xen/include/public/arch-x86_32.h index 45842b2034..dfabdcc345 100644 --- a/xen/include/public/arch-x86_32.h +++ b/xen/include/public/arch-x86_32.h @@ -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 diff --git a/xen/include/public/arch-x86_64.h b/xen/include/public/arch-x86_64.h index 409805f35f..c40b3f9651 100644 --- a/xen/include/public/arch-x86_64.h +++ b/xen/include/public/arch-x86_64.h @@ -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 diff --git a/xen/include/public/dom0_ops.h b/xen/include/public/dom0_ops.h index c8d764ed6f..76598dda18 100644 --- a/xen/include/public/dom0_ops.h +++ b/xen/include/public/dom0_ops.h @@ -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 diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 3bbbbc9951..7e1cf21075 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -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_* */ diff --git a/xen/include/public/elfnote.h b/xen/include/public/elfnote.h index 936aa65822..181cbc4ec7 100644 --- a/xen/include/public/elfnote.h +++ b/xen/include/public/elfnote.h @@ -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. diff --git a/xen/include/public/features.h b/xen/include/public/features.h index 443e6eca53..1613b2aab8 100644 --- a/xen/include/public/features.h +++ b/xen/include/public/features.h @@ -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 diff --git a/xen/include/public/hvm/hvm_info_table.h b/xen/include/public/hvm/hvm_info_table.h index 08c252e822..c46e03ef17 100644 --- a/xen/include/public/hvm/hvm_info_table.h +++ b/xen/include/public/hvm/hvm_info_table.h @@ -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 diff --git a/xen/include/public/hvm/ioreq.h b/xen/include/public/hvm/ioreq.h index d309d122cc..c511fae8e7 100644 --- a/xen/include/public/hvm/ioreq.h +++ b/xen/include/public/hvm/ioreq.h @@ -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. */ diff --git a/xen/include/public/hvm/pvdrivers.h b/xen/include/public/hvm/pvdrivers.h index 01ea2aeaae..3241f94eb9 100644 --- a/xen/include/public/hvm/pvdrivers.h +++ b/xen/include/public/hvm/pvdrivers.h @@ -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 xen-devel@xxxxxxxxxxxxxxxxxxxx. You should NOT use * a product number without allocating one. diff --git a/xen/include/public/hvm/save.h b/xen/include/public/hvm/save.h index 0bd240d83b..f72e3a9bc4 100644 --- a/xen/include/public/hvm/save.h +++ b/xen/include/public/hvm/save.h @@ -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. */ diff --git a/xen/include/public/io/console.h b/xen/include/public/io/console.h index 1f79ef8504..4811f47220 100644 --- a/xen/include/public/io/console.h +++ b/xen/include/public/io/console.h @@ -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 diff --git a/xen/include/public/io/fsif.h b/xen/include/public/io/fsif.h index 8fc21740ea..a8bea193b5 100644 --- a/xen/include/public/io/fsif.h +++ b/xen/include/public/io/fsif.h @@ -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 { diff --git a/xen/include/public/io/protocols.h b/xen/include/public/io/protocols.h index 40a9b30d60..52b4de0f81 100644 --- a/xen/include/public/io/protocols.h +++ b/xen/include/public/io/protocols.h @@ -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 diff --git a/xen/include/public/io/ring.h b/xen/include/public/io/ring.h index 30342fc8c0..c5d53e3103 100644 --- a/xen/include/public/io/ring.h +++ b/xen/include/public/io/ring.h @@ -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 diff --git a/xen/include/public/io/vscsiif.h b/xen/include/public/io/vscsiif.h index d0bd3b589e..c9ceb1884d 100644 --- a/xen/include/public/io/vscsiif.h +++ b/xen/include/public/io/vscsiif.h @@ -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]; }; diff --git a/xen/include/public/kexec.h b/xen/include/public/kexec.h index 74ea981ab2..3f2a118381 100644 --- a/xen/include/public/kexec.h +++ b/xen/include/public/kexec.h @@ -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 <horms@xxxxxxxxxxxx> * - Magnus Damm <magnus@xxxxxxxxxxxxx> @@ -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]; diff --git a/xen/include/public/memory.h b/xen/include/public/memory.h index 8fc27ceeab..8638023e4a 100644 --- a/xen/include/public/memory.h +++ b/xen/include/public/memory.h @@ -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) diff --git a/xen/include/public/nmi.h b/xen/include/public/nmi.h index 604b2938eb..4dd7294d72 100644 --- a/xen/include/public/nmi.h +++ b/xen/include/public/nmi.h @@ -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 diff --git a/xen/include/public/physdev.h b/xen/include/public/physdev.h index 0e54635623..b6faf8350c 100644 --- a/xen/include/public/physdev.h +++ b/xen/include/public/physdev.h @@ -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 23 struct physdev_get_free_pirq { - /* IN */ + /* IN */ int type; /* OUT */ uint32_t pirq; diff --git a/xen/include/public/platform.h b/xen/include/public/platform.h index 94dbc3feb4..f3c84ebc78 100644 --- a/xen/include/public/platform.h +++ b/xen/include/public/platform.h @@ -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 diff --git a/xen/include/public/sysctl.h b/xen/include/public/sysctl.h index 1ccf20787a..c49b4dcc99 100644 --- a/xen/include/public/sysctl.h +++ b/xen/include/public/sysctl.h @@ -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 diff --git a/xen/include/public/trace.h b/xen/include/public/trace.h index 1c4d5803f2..d5fa4aea8d 100644 --- a/xen/include/public/trace.h +++ b/xen/include/public/trace.h @@ -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 diff --git a/xen/include/public/vcpu.h b/xen/include/public/vcpu.h index 8a9e30d8c5..3623af932f 100644 --- a/xen/include/public/vcpu.h +++ b/xen/include/public/vcpu.h @@ -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 diff --git a/xen/include/public/version.h b/xen/include/public/version.h index cb84565c06..7063e8ca55 100644 --- a/xen/include/public/version.h +++ b/xen/include/public/version.h @@ -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 diff --git a/xen/include/public/xen-compat.h b/xen/include/public/xen-compat.h index fa6ffb72e8..6fabca1889 100644 --- a/xen/include/public/xen-compat.h +++ b/xen/include/public/xen-compat.h @@ -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 diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index 68ee09810f..1a56871d5d 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -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 diff --git a/xen/include/public/xenoprof.h b/xen/include/public/xenoprof.h index 1955db1941..9f5ca87d9e 100644 --- a/xen/include/public/xenoprof.h +++ b/xen/include/public/xenoprof.h @@ -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 -- 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |