xen/arch/arm: Correcting comment typos across xen/arch/arm
PATCH 1/1 xen/arch/arm: Correcting comment typos across xen/arch/arm
No functional change.
I have been making typo corrections across a variety of files
Scanning Xen using codespell for typo matches I have found:
1. Xen native project sources: 3303 typos
2. Qemu Tree - 4908 typos
Reasons for corrections:
1. Keeping the codebase clean,concise for future documentation generation
2. Just because typos seem minor doesnt mean that corrections should be ignored, while correcting these errors may not be pedantic I think its essential in keeping things claan and more readable.
The followup comments on this patch will also guide me as to whether further changes across other files will be needed.
---
xen/arch/arm/arm64/sve.c +1 -1
@@ -131,7 +131,7 @@ void sve_context_free(struct vcpu *v) sve_vl_bits =sve_decode_vl (v->domain->arch.sve_vl);/* -* Currenly points to the end of Z0-Z31 memory which is not the start of +* Currently points to the end of Z0-Z31 memory which is not the start of * the buffer. To be kept in sync with the sve_context_init(). */ v->arch.vfp.sve_zreg_ctx_end -=
xen/arch/arm/domain.c +1 -1
@@ -1047,7 +1047,7 @@ static int relinquish_memory(struct domain *d, struct page_list_head *list)* logically restart work from this point. * * PROGRESS() markers must not be in the middle of loops. The loop -* variable isn't preserved accross a continuation. +* variable isn't preserved across a continuation. * * To avoid redundant work, there should be a marker before each * function which may return -ERESTART.
xen/arch/arm/firmware/scmi-smc.c +1 -1
@@ -32,7 +32,7 @@ static struct domain __read_mostly *scmi_dom;/* * Check if provided SMC Function Identifier matches the one known by the SCMI -* layer, as read from DT prop 'arm,smc-id' during initialiation. +* layer, as read from DT prop 'arm,smc-id' during initialization. */ static bool scmi_is_valid_smc_id (uint32_t fid) {
xen/arch/arm/include/asm/arm64/efibind.h +3 -3
@@ -142,8 +142,8 @@ typedef uint64_t UINTN;// RUNTIME_CODE - pragma macro for declaring runtime code // -#ifndef EFIAPI // Forces EFI calling conventions reguardless of compiler options -#define EFIAPI // Substitute expresion to force C calling convention +#ifndef EFIAPI // Forces EFI calling conventions regardless of compiler options +#define EFIAPI // Substitute expression to force C calling convention #endif #define BOOTSERVICE
@@ -163,7 +163,7 @@ typedef uint64_t UINTN;// -// When build similiar to FW, then link everything together as +// When build is similar to FW, then link everything together as // one big module. //
xen/arch/arm/include/asm/asm_defns.h +1 -1
@@ -15,7 +15,7 @@#elif defined(CONFIG_ARM_64 )# define __OP32 "w"/* -* Clang < 8.0 doesn't support register alllocation using the syntax rN. +* Clang < 8.0 doesn't support register allocation using the syntax rN. * See https://reviews.llvm.org/rL328829. */ # define ASM_REG (index) asm("x" # index)
xen/arch/arm/include/asm/cpregs.h +1 -1
@@ -347,7 +347,7 @@#define CONTEXTIDR p15,0,c13,c0,1/* Context ID Register */ #define TPIDRURW p15,0,c13,c0,2/* Software Thread ID, User, R/W */ #define TPIDRURO p15,0,c13,c0,3/* Software Thread ID, User, R/O */ -#define TPIDRPRW p15,0,c13,c0,4/* Software Thread ID, Priveleged */ +#define TPIDRPRW p15,0,c13,c0,4/* Software Thread ID, Privileged */ #define HTPIDR p15,4,c13,c0,2/* HYp Software Thread Id Register */ /* CP15 CR14: */
xen/arch/arm/include/asm/gic.h +2 -2
@@ -151,7 +151,7 @@/* * The minimum GICC_BPR is required to be in the range 0-3. We set * GICC_BPR to 0 but we must expect that it might be 3. This means we -* can rely on premption between the following ranges: +* can rely on preemption between the following ranges: * 0xf0..0xff * 0xe0..0xdf * 0xc0..0xcf
@@ -162,7 +162,7 @@* * Priorities within a range will not preempt each other. * -* A GIC must support a mimimum of 16 priority levels. +* A GIC must support a minimum of 16 priority levels. */ #define GIC_PRI_LOWEST 0xf0U#define GIC_PRI_IRQ 0xa0U
xen/arch/arm/include/asm/lpae.h +1 -1
@@ -36,7 +36,7 @@ typedef struct __packed {*/ unsigned long ai:3; /* Attribute Index */ unsigned long ns:1; /* Not-Secure */ - unsigned long up:1; /* Unpriviledged access */ + unsigned long up:1; /* Unprivileged access */ unsigned long ro:1; /* Read-Only */ unsigned long sh:2; /* Shareability */ unsigned long af:1; /* Access Flag */
xen/arch/arm/include/asm/mm.h +2 -2
@@ -194,7 +194,7 @@ bool flags_has_rwx(unsigned int flags);extern void *early_fdt_map (paddr_t fdt_paddr);/* Remove early mappings */ extern void remove_early_mappings (void ); -/* Prepare the memory subystem to bring-up the given secondary CPU */ +/* Prepare the memory subsystem to bring-up the given secondary CPU */ extern int prepare_secondary_mm (int cpu);/* Map a frame table */ void init_frametable (paddr_t ram_start);
@@ -271,7 +271,7 @@ static inline uint64_t gvirt_to_maddr(vaddr_t va, paddr_t *pa,/* * We define non-underscored wrappers for above conversion functions. -* These are overriden in various source files while underscored version +* These are overridden in various source files while underscored version * remain intact. */ #define virt_to_mfn (va) __virt_to_mfn(va)
xen/arch/arm/include/asm/mmu/mm.h +1 -1
@@ -57,7 +57,7 @@ static inline void *maddr_to_virt(paddr_t ma)/** * Find the virtual address corresponding to a machine address * -* The directmap covers all conventional memory accesible by the +* The directmap covers all conventional memory accessible by the * hypervisor. This means it's subject to PDX compression. * * Note there's an extra offset applied (directmap_base_pdx) on top of the
xen/arch/arm/include/asm/tee/optee_msg.h +1 -1
@@ -292,7 +292,7 @@ struct optee_msg_arg {* [in] param[0].u.tmem.size size (of first fragment) * [in] param[0].u.tmem.shm_ref holds shared memory reference * -* OPTEE_MSG_CMD_UNREGISTER_SHM unregisteres a previously registered shared +* OPTEE_MSG_CMD_UNREGISTER_SHM unregisters a previously registered shared * memory reference. The information is passed as: * [in] param[0].attr OPTEE_MSG_ATTR_TYPE_RMEM_INPUT * [in] param[0].u.rmem.shm_ref holds shared memory reference
xen/arch/arm/include/asm/vgic.h +1 -1
@@ -358,7 +358,7 @@ extern void vgic_check_inflight_irqs_pending(struct vcpu *v,/* Maximum number of IRQs supported by vGIC */ #define VGIC_MAX_IRQS 992U -/* Default number of vGIC SPIs. 32 are substracted to cover local IRQs. */ +/* Default number of vGIC SPIs. 32 are subtracted to cover local IRQs. */ #define VGIC_DEF_NR_SPIS (min(gic_number_lines(), VGIC_MAX_IRQS) - 32)static inline unsigned int vgic_def_nr_spis (void )
xen/arch/arm/mmu/p2m.c +1 -1
@@ -1105,7 +1105,7 @@ static int __p2m_set_entry(struct p2m_domain *p2m,* It is necessary to flush the TLB before writing the new entry * to keep coherency when the previous entry was valid. * -* Although, it could be defered when only the permissions are +* Although, it could be deferred when only the permissions are * changed (e.g in case of memaccess). */ if (lpae_is_valid (orig_pte) )
xen/arch/arm/mmu/pt.c +2 -2
@@ -160,7 +160,7 @@ lpae_t mfn_to_xen_entry(mfn_t mfn, unsigned int attr)* Outer Non-cacheable, must have a resultant shareability attribute * of Outer Shareable, otherwise shareability is UNPREDICTABLE. * -* On ARMv8 sharability is ignored and explicitly treated as Outer +* On ARMv8 shareability is ignored and explicitly treated as Outer * Shareable for Normal Inner Non_cacheable, Outer Non-cacheable. */ e.pt.sh =LPAE_SH_OUTER ;
@@ -171,7 +171,7 @@ lpae_t mfn_to_xen_entry(mfn_t mfn, unsigned int attr)* Shareability is ignored for non-Normal memory, Outer is as * good as anything. * -* On ARMv8 sharability is ignored and explicitly treated as Outer +* On ARMv8 shareability is ignored and explicitly treated as Outer * Shareable for any device memory type. */ e.pt.sh =LPAE_SH_OUTER ;
xen/arch/arm/psci.c +1 -1
@@ -53,7 +53,7 @@ void call_psci_cpu_off(void) {struct arm_smccc_res res; -/* If successfull the PSCI cpu_off call doesn't return */ +/* If successful the PSCI cpu_off call doesn't return */ res =arm_smccc_smc (PSCI_0_2_FN32_CPU_OFF );panic ("PSCI cpu off failed for CPU%d err=%d\n" ,smp_processor_id (),PSCI_RET (res));
xen/arch/arm/tee/ffa.c +1 -1
@@ -21,7 +21,7 @@* Unsupported FF-A interfaces: * o FFA_MSG_POLL and FFA_MSG_SEND - deprecated in FF-A-1.1-REL0 * o FFA_MEM_RETRIEVE_* - Used when sharing memory from an SP to a VM -* o FFA_MEM_DONATE_* and FFA_MEM_LEND_* - Used when tranferring ownership +* o FFA_MEM_DONATE_* and FFA_MEM_LEND_* - Used when transferring ownership * or access of a memory region * o FFA_MSG_SEND2 and FFA_MSG_WAIT - Used for indirect messaging *
xen/arch/arm/tee/ffa_partinfo.c +1 -1
@@ -269,7 +269,7 @@ static int32_t ffa_get_vm_partinfo(struct ffa_uuid uuid, uint32_t start_index,* Workaround for Linux FF-A Driver not accepting to have its own * entry in the list before FF-A v1.2 was supported. * This workaround is generally acceptable for other implementations -* as the specification was not completely clear on wether or not +* as the specification was not completely clear on whether or not * the requester endpoint information should be included or not */ if (ACCESS_ONCE (curr_ctx->guest_vers) >=FFA_VERSION_1_2 )
xen/arch/arm/tee/ffa_shm.c +1 -1
@@ -482,7 +482,7 @@ static int read_mem_transaction(uint32_t ffa_vers, const void *buf, size_t blen,/* * We're doing a rough check to see that no information is lost when -* tranfering the values into a struct ffa_mem_transaction_int below. +* transferring the values into a struct ffa_mem_transaction_int below. * The fields in struct ffa_mem_transaction_int are wide enough to hold * any valid value so being out of range means that something is wrong. */
xen/arch/arm/vgic-v2.c +1 -1
@@ -359,7 +359,7 @@ read_as_zero: read_impl_defined:printk (XENLOG_G_DEBUG -"%pv: vGICD: RAZ on implemention defined register offset %#08x\n" , +"%pv: vGICD: RAZ on implementation defined register offset %#08x\n" , v, gicd_reg); *r =0 ;return 1 ;
xen/arch/arm/vgic-v3-its.c +1 -1
@@ -1561,7 +1561,7 @@ void vgic_v3_its_free_domain(struct domain *d) {struct virt_its *pos, *temp; -/* Cope with unitialized vITS */ +/* Cope with uninitialized vITS */ if (list_head_is_null (&d->arch.vgic.vits_list) )return ;
xen/arch/arm/vsmc.c +1 -1
@@ -71,7 +71,7 @@ static bool fill_revision(struct cpu_user_regs *regs, uint32_t major,static bool fill_function_call_count (struct cpu_user_regs *regs,uint32_t cnt) {/* -* Function call count is retuned as any other return value in register r0 +* Function call count is returned as any other return value in register r0 * (ARM DEN 0028B page 17) */ set_user_reg (regs,0 , cnt);
xen/arch/arm/vuart.h +1 -1
@@ -32,7 +32,7 @@ void domain_vuart_free(struct domain *d);static inline int domain_vuart_init (struct domain *d) {/* -* The vUART is unconditionally inialized for the hw domain. So we +* The vUART is unconditionally initialized for the hw domain. So we * can't return an error. */ return 0 ;
Quoted 2 lines · Andrew Mbugua
No functional change.
The below text should be put after "---", given that this is not the information that should end up in a committed patch.
Quoted 4 lines
I have been making typo corrections across a variety of files
Scanning Xen using codespell for typo matches I have found:
1. Xen native project sources: 3303 typos
Is this hypervisor only or entire Xen repo?
Quoted 7 lines
2. Qemu Tree - 4908 typos
Reasons for corrections:
1. Keeping the codebase clean,concise for future documentation generation
2. Just because typos seem minor doesnt mean that corrections should be ignored, while correcting these errors may not be pedantic I think its essential in keeping things claan and more readable.
I don't mind patches like this one, so thanks for the contribution:
I'll do the commit msg adjustment when committing.
~Michal
Thanks for response
Quoted 2 lines
Scanning Xen using codespell for typo matches I have found:
1. Xen native project sources: 3303 typos
Is this hypervisor only or entire Xen repo?
Entire Xen project repo - 3303 typos
Hypervisor code only has - 351 typos
However the scanner can be tweaked to ignore/include areas such as code pulled from linux source trees and 3rd party stubdoms.
Quoted 32 lines · Michal
Quoted 2 lines · Andrew Mbugua
No functional change.
The below text should be put after "---", given that this is not the information
that should end up in a committed patch.Quoted 4 lines
I have been making typo corrections across a variety of files
Scanning Xen using codespell for typo matches I have found:
1. Xen native project sources: 3303 typosIs this hypervisor only or entire Xen repo?
Quoted 5 lines
2. Qemu Tree - 4908 typos
Reasons for corrections:
1. Keeping the codebase clean,concise for future documentation generation
2. Just because typos seem minor doesnt mean that corrections should beignored,
Quoted 1 line
while correcting these errors may not be pedantic I think its essential
in
Quoted 1 line
keeping things claan and more readable.
I don't mind patches like this one, so thanks for the contribution:
Reviewed-by Michal Orzel <[email protected]>I'll do the commit msg adjustment when committing.
~Michal
Quoted 8 lines · Andrew Precious
Thanks for response
Quoted 2 lines
Scanning Xen using codespell for typo matches I have found:
1. Xen native project sources: 3303 typosIs this hypervisor only or entire Xen repo?
Entire Xen project repo - 3303 typos
Hypervisor code only has - 351 typos
That's good and hypervisor code is what I would start with...
Quoted 3 lines
However the scanner can be tweaked to ignore/include areas such as code pulled from linux source trees and 3rd party stubdoms.
... having this in mind i.e. we don't want to modify files for which we first require a submission to the relevant project and then to backport the patch to Xen.
~Michal
Quoted 33 lines
On Mon, Nov 9, 2026 at 10:28 AM Orzel, Michal <[email protected] <mailto:[email protected]>> wrote:
On 05-Nov-26 12:26, Andrew Mbugua wrote:
> No functional change.
>
The below text should be put after "---", given that this is not the information that should end up in a committed patch.> I have been making typo corrections across a variety of files >
> Scanning Xen using codespell for typo matches I have found:
> 1. Xen native project sources: 3303 typos
Is this hypervisor only or entire Xen repo?> 2. Qemu Tree - 4908 typos
>
> Reasons for corrections:
> 1. Keeping the codebase clean,concise for future documentation generation > 2. Just because typos seem minor doesnt mean that corrections should be ignored,
> while correcting these errors may not be pedantic I think its essential in > keeping things claan and more readable.
I don't mind patches like this one, so thanks for the contribution:Reviewed-by Michal Orzel <[email protected] <mailto:[email protected]>>I'll do the commit msg adjustment when committing.
~Michal