]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
misc: fix commonly doubled up words
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 7 Jul 2022 16:37:15 +0000 (17:37 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 1 Aug 2022 09:58:02 +0000 (11:58 +0200)
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220707163720.1421716-5-berrange@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
27 files changed:
block/linux-aio.c
block/qcow2-bitmap.c
contrib/plugins/cache.c
docs/devel/qom.rst
docs/interop/live-block-operations.rst
docs/system/arm/cpu-features.rst
docs/system/devices/cxl.rst
docs/system/s390x/bootdevices.rst
docs/system/tls.rst
docs/tools/qemu-pr-helper.rst
hw/core/clock.c
hw/intc/arm_gicv3_redist.c
hw/misc/iotkit-secctl.c
hw/misc/iotkit-sysctl.c
hw/s390x/s390-ccw.c
hw/usb/u2f.h
include/hw/qdev-core.h
include/user/safe-syscall.h
linux-user/i386/cpu_loop.c
pc-bios/s390-ccw/virtio-scsi.c
python/Makefile
python/qemu/utils/__init__.py
target/arm/translate.c
target/i386/cpu.c
tcg/i386/tcg-target.c.inc
tests/qtest/microbit-test.c
tools/virtiofsd/fuse_virtio.c

index 9c2393a2f7d314f08137066b32be7ed1a77b926c..d2cfb7f52330f3788a45603ce86f5116587f35bc 100644 (file)
@@ -461,7 +461,7 @@ LinuxAioState *laio_init(Error **errp)
     s = g_malloc0(sizeof(*s));
     rc = event_notifier_init(&s->e, false);
     if (rc < 0) {
-        error_setg_errno(errp, -rc, "failed to to initialize event notifier");
+        error_setg_errno(errp, -rc, "failed to initialize event notifier");
         goto out_free_state;
     }
 
index e98bafe0f4e439f2665a65edbfcf02b98d5ff78e..ff3309846c50d3fb9be71f3dbc082875ff2d922e 100644 (file)
@@ -787,10 +787,10 @@ static int bitmap_list_store(BlockDriverState *bs, Qcow2BitmapList *bm_list,
         }
     }
 
-    /* Actually, even in in-place case ignoring QCOW2_OL_BITMAP_DIRECTORY is not
-     * necessary, because we drop QCOW2_AUTOCLEAR_BITMAPS when updating bitmap
-     * directory in-place (actually, turn-off the extension), which is checked
-     * in qcow2_check_metadata_overlap() */
+    /* Actually, even in the in-place case ignoring QCOW2_OL_BITMAP_DIRECTORY
+     * is not necessary, because we drop QCOW2_AUTOCLEAR_BITMAPS when updating
+     * bitmap directory in-place (actually, turn-off the extension), which is
+     * checked in qcow2_check_metadata_overlap() */
     ret = qcow2_pre_write_overlap_check(
             bs, in_place ? QCOW2_OL_BITMAP_DIRECTORY : 0, dir_offset, dir_size,
             false);
index b9226e7c40b6691238860854b6bf34aba5edb91c..ac1510aaa1852197d5a9a6ae5cb4441f5ad66b46 100644 (file)
@@ -38,7 +38,7 @@ enum EvictionPolicy policy;
  * put in any of the blocks inside the set. The number of block per set is
  * called the associativity (assoc).
  *
- * Each block contains the the stored tag and a valid bit. Since this is not
+ * Each block contains the stored tag and a valid bit. Since this is not
  * a functional simulator, the data itself is not stored. We only identify
  * whether a block is in the cache or not by searching for its tag.
  *
index 0cf9a714f0539b5edac3f856501588b3cec4a2f5..3e34b07c98e65dcad9357dc5b5f926dd1d89c263 100644 (file)
@@ -371,8 +371,8 @@ This accepts an array of interface type names.
                                       { TYPE_USER_CREATABLE },
                                       { NULL })
 
-If the type is not intended to be instantiated, then then
-the OBJECT_DEFINE_ABSTRACT_TYPE() macro can be used instead:
+If the type is not intended to be instantiated, then the
+OBJECT_DEFINE_ABSTRACT_TYPE() macro can be used instead:
 
 .. code-block:: c
    :caption: Defining a simple abstract type
index 39e62c991514262a9bb88a318eb2f48deccd3ed8..135784ab33719d49f0e2cb94993b5eea4790b8ad 100644 (file)
@@ -53,7 +53,7 @@ files in a disk image backing chain:
 
 (1) Directional: 'base' and 'top'.  Given the simple disk image chain
     above, image [A] can be referred to as 'base', and image [B] as
-    'top'.  (This terminology can be seen in in QAPI schema file,
+    'top'.  (This terminology can be seen in the QAPI schema file,
     block-core.json.)
 
 (2) Relational: 'backing file' and 'overlay'.  Again, taking the same
@@ -825,7 +825,7 @@ entire disk image chain, to a target, using ``blockdev-mirror`` would be:
     job ready to be completed
 
 (5) Gracefully complete the 'mirror' block device job, and notice the
-    the event ``BLOCK_JOB_COMPLETED``
+    event ``BLOCK_JOB_COMPLETED``
 
 (6) Shutdown the guest by issuing the QMP ``quit`` command so that
     caches are flushed
index 3fd76fa0b4fbe4d9b82525ae75a282d378df864e..c2c01ec7d265d17838dc65b19ddccb632cae47ea 100644 (file)
@@ -284,7 +284,7 @@ SVE CPU Property Parsing Semantics
      CPU Property Dependencies and Constraints").
 
   4) If one or more vector lengths have been explicitly enabled and at
-     at least one of the dependency lengths of the maximum enabled length
+     least one of the dependency lengths of the maximum enabled length
      has been explicitly disabled, then an error is generated (see
      constraint (2) of "SVE CPU Property Dependencies and Constraints").
 
index a57e4c4e5c4f40a19abec47accb87385bbd5d13f..36031325cca68c48009d2de38d38ce14ef0d471e 100644 (file)
@@ -15,7 +15,7 @@ with CXL Host Bridges, which have CXL Root Ports which may be directly
 attached to CXL or PCI End Points. Alternatively there may be CXL Switches
 with CXL and PCI Endpoints attached below them.  In many cases additional
 control and capabilities are exposed via PCI Express interfaces.
-This sharing of interfaces and hence emulation code is is reflected
+This sharing of interfaces and hence emulation code is reflected
 in how the devices are emulated in QEMU. In most cases the various
 CXL elements are built upon an equivalent PCIe devices.
 
index 9e591cb9dc36a5a8f04e1ee415ee1a0d4b890a3e..b5950133e809856572bc535ecd91926a86d9873a 100644 (file)
@@ -65,7 +65,7 @@ you can specify it via the ``-global s390-ipl.netboot_fw=filename``
 command line option.
 
 The ``bootindex`` property is especially important for booting via the network.
-If you don't specify the the ``bootindex`` property here, the network bootloader
+If you don't specify the ``bootindex`` property here, the network bootloader
 firmware code won't get loaded into the guest memory so that the network boot
 will fail. For a successful network boot, try something like this::
 
index 1a04674362e8999fc2ede1a11102a61200c0382d..e284c828010635373c4bcb64563f001e69917dd1 100644 (file)
@@ -182,7 +182,7 @@ certificates.
               --template client-hostNNN.info \
               --outfile client-hostNNN-cert.pem
 
-The subject alt name extension data is not required for clients, so the
+The subject alt name extension data is not required for clients, so
 the ``dns_name`` and ``ip_address`` fields are not included. The
 ``tls_www_client`` keyword is the key purpose extension to indicate this
 certificate is intended for usage in a web client. Although QEMU network
index eaebe40da0ea2bdbb1568df43275381fc971187c..c32867cfc611963b30492dc8fbc7ee3c4b7e1416 100644 (file)
@@ -21,8 +21,8 @@ programs because incorrect usage can disrupt regular operation of the
 storage fabric. QEMU's SCSI passthrough devices ``scsi-block``
 and ``scsi-generic`` support passing guest persistent reservation
 requests to a privileged external helper program. :program:`qemu-pr-helper`
-is that external helper; it creates a socket which QEMU can
-connect to to communicate with it.
+is that external helper; it creates a listener socket which will
+accept incoming connections for communication with QEMU.
 
 If you want to run VMs in a setup like this, this helper should be
 started as a system service, and you should read the QEMU manual
index 916875e07a2675a679a9a6a10e276fcac5054e3e..d82e44cd1aa8d39dc4aa71ba2c061e9373494714 100644 (file)
@@ -68,7 +68,7 @@ static uint64_t clock_get_child_period(Clock *clk)
 {
     /*
      * Return the period to be used for child clocks, which is the parent
-     * clock period adjusted for for multiplier and divider effects.
+     * clock period adjusted for multiplier and divider effects.
      */
     return muldiv64(clk->period, clk->multiplier, clk->divider);
 }
index f1ecb2502b1f7c205f6b82d3e35716fa1965767b..c92ceecc16876bc4727dd6211494deda91b36b6a 100644 (file)
@@ -492,7 +492,7 @@ static MemTxResult gicr_writel(GICv3CPUState *cs, hwaddr offset,
         return MEMTX_OK;
     case GICR_WAKER:
         /* Only the ProcessorSleep bit is writable. When the guest sets
-         * it it requests that we transition the channel between the
+         * it, it requests that we transition the channel between the
          * redistributor and the cpu interface to quiescent, and that
          * we set the ChildrenAsleep bit once the inteface has reached the
          * quiescent state.
index 7b41cfa8fc5052846c79c616c89c94a9552fa038..b5a9e30a2c69afdb0b635936d52ca36ed0b3b59e 100644 (file)
@@ -114,7 +114,7 @@ static const uint8_t iotkit_secctl_ns_sse300_idregs[] = {
  * AHB expansion, APB expansion) are all set up so that they are
  * in 16-aligned blocks so offsets 0xN0, 0xN4, 0xN8, 0xNC are PPCs
  * 0, 1, 2, 3 of that type, so we can convert a register address offset
- * into an an index into a PPC array easily.
+ * into an index into a PPC array easily.
  */
 static inline int offset_to_ppc_idx(uint32_t offset)
 {
index 9ee8fe8495ce2acd2a42e102cc86d0a01336b7b4..7147e2f84e6279efcf66bba463fd38d4ba227c7e 100644 (file)
@@ -237,7 +237,7 @@ static uint64_t iotkit_sysctl_read(void *opaque, hwaddr offset,
             r = s->ewctrl;
             break;
         case ARMSSE_SSE300:
-            /* In SSE300 this offset is is NMI_ENABLE */
+            /* In SSE300 this offset is NMI_ENABLE */
             r = s->nmi_enable;
             break;
         default:
@@ -555,7 +555,7 @@ static void iotkit_sysctl_write(void *opaque, hwaddr offset,
             s->ewctrl = value;
             break;
         case ARMSSE_SSE300:
-            /* In SSE300 this offset is is NMI_ENABLE */
+            /* In SSE300 this offset is NMI_ENABLE */
             qemu_log_mask(LOG_UNIMP, "IoTKit SysCtl NMI_ENABLE unimplemented\n");
             s->nmi_enable = value;
             break;
index 2fc8bb9c232739b6b7118c6a41f4d688c53d03a0..e2d86d96e728401a4e98dec2574575923f5ece02 100644 (file)
@@ -57,7 +57,7 @@ IOInstEnding s390_ccw_store(SubchDev *sch)
 
     /*
      * This code is called for both virtual and passthrough devices,
-     * but only applies to to the latter.  This ugly check makes that
+     * but only applies to the latter.  This ugly check makes that
      * distinction for us.
      */
     if (object_dynamic_cast(OBJECT(sch->driver_data), TYPE_S390_CCW)) {
index db30f3586bf7ae282b2f67ab40c063841031c332..a408a82927246093981cdf1ce2b4ca656511915b 100644 (file)
@@ -74,7 +74,7 @@ typedef struct U2FKeyState {
 
 /*
  * API to be used by the U2F key device variants (i.e. hw/u2f-*.c)
- * to interact with the the U2F key base device (i.e. hw/u2f.c)
+ * to interact with the U2F key base device (i.e. hw/u2f.c)
  */
 void u2f_send_to_guest(U2FKeyState *key,
                        const uint8_t packet[U2FHID_PACKET_SIZE]);
index 98774e2835f54191f83e0783144347bad3219250..785dd5a56efb4c76ced474d9e41dee95fd705e49 100644 (file)
@@ -386,7 +386,7 @@ bool qdev_realize_and_unref(DeviceState *dev, BusState *bus, Error **errp);
  *
  *  - unrealize any child buses by calling qbus_unrealize()
  *    (this will recursively unrealize any devices on those buses)
- *  - call the the unrealize method of @dev
+ *  - call the unrealize method of @dev
  *
  * The device can then be freed by causing its reference count to go
  * to zero.
index 61a04e2b5adf7b0306f0f97f4f2dac2e26f4c6e0..ddceef12e21a3f33da9467486e8956e50a39f685 100644 (file)
@@ -70,7 +70,7 @@
  * If the host libc is used then the implementation will appear to work
  * most of the time, but there will be a race condition where a
  * signal could arrive just before we make the host syscall inside libc,
- * and then then guest syscall will not correctly be interrupted.
+ * and then the guest syscall will not correctly be interrupted.
  * Instead the implementation of the guest syscall can use the safe_syscall
  * function but otherwise just return the result or errno in the usual
  * way; the main loop code will take care of restarting the syscall
index 492701dd9af99c5127923a35877add06329d82a4..42837399bcaebb095a5d452755302f41a164f0cb 100644 (file)
@@ -137,7 +137,7 @@ static void emulate_vsyscall(CPUX86State *env)
     }
 
     /*
-     * Validate the the pointer arguments.
+     * Validate the pointer arguments.
      */
     switch (syscall) {
     case TARGET_NR_gettimeofday:
index 3b7069270ce1adf95dc51e137746c1d13df19ef4..dcce696a3375599b1ac023519ea6cab9c4dddd47 100644 (file)
@@ -195,7 +195,7 @@ static bool scsi_read_capacity(VDev *vdev,
 /* virtio-scsi routines */
 
 /*
- * Tries to locate a SCSI device and and adds the information for the found
+ * Tries to locate a SCSI device and adds the information for the found
  * device to the vdev->scsi_device structure.
  * Returns 0 if SCSI device could be located, or a error code < 0 otherwise
  */
index 3334311362573a8b9f39efb12fed6acf65c96b8a..b170708398abe257478e7729d614062d9e9cd143 100644 (file)
@@ -29,7 +29,7 @@ help:
        @echo "    Performs no environment setup of any kind."
        @echo ""
        @echo "make develop:"
-       @echo "    Install deps needed for for 'make check',"
+       @echo "    Install deps needed for 'make check',"
        @echo "    and install the qemu package in editable mode."
        @echo "    (Can be used in or outside of a venv.)"
        @echo ""
index 9fb273b13d150c342ce707ca198f32f7caea5d74..017cfdcda75b5fcbbcae622eccfd2520f4ada81d 100644 (file)
@@ -79,7 +79,7 @@ def add_visual_margin(
     :param content: The text to wrap and decorate.
     :param width:
         The number of columns to use, including for the decoration
-        itself. The default (None) uses the the available width of the
+        itself. The default (None) uses the available width of the
         current terminal, or a fallback of 72 lines. A negative number
         subtracts a fixed-width from the default size. The default obeys
         the COLUMNS environment variable, if set.
index 4ffb095c734c779b7849d9966c45b31a7a292542..ad617b99481bd2eaf571b09ff265469001ad8c10 100644 (file)
@@ -8056,7 +8056,7 @@ static TCGv_i32 op_addr_block_pre(DisasContext *s, arg_ldst_block *a, int n)
          * If the writeback is incrementing SP rather than
          * decrementing it, and the initial SP is below the
          * stack limit but the final written-back SP would
-         * be above, then then we must not perform any memory
+         * be above, then we must not perform any memory
          * accesses, but it is IMPDEF whether we generate
          * an exception. We choose to do so in this case.
          * At this point 'addr' is the lowest address, so
index 6a57ef13af8695f210b02f4adb1aeedb7aff869a..194b5a31afac8328d257aad8586f45cc87a03af0 100644 (file)
@@ -3632,7 +3632,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
             CPUID_7_0_EDX_CORE_CAPABILITY,
         .features[FEAT_CORE_CAPABILITY] =
             MSR_CORE_CAP_SPLIT_LOCK_DETECT,
-        /* XSAVES is is added in version 3 */
+        /* XSAVES is added in version 3 */
         .features[FEAT_XSAVE] =
             CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XSAVEC |
             CPUID_XSAVE_XGETBV1,
index d52206ba4d357ecb7a88a180854e598328038fec..cb04e4b3adf5a28ec8ecb7894619e3888e1a73af 100644 (file)
@@ -1652,7 +1652,7 @@ static void tcg_out_branch(TCGContext *s, int call, const tcg_insn_unit *dest)
     } else {
         /* rip-relative addressing into the constant pool.
            This is 6 + 8 = 14 bytes, as compared to using an
-           an immediate load 10 + 6 = 16 bytes, plus we may
+           immediate load 10 + 6 = 16 bytes, plus we may
            be able to re-use the pool constant for more calls.  */
         tcg_out_opc(s, OPC_GRP5, 0, 0, 0);
         tcg_out8(s, (call ? EXT5_CALLN_Ev : EXT5_JMPN_Ev) << 3 | 5);
index 04e199ec33f452e990802fba6d7d559bfb6c1aa6..b71daae9a9b72d0bf2875fc1825d6bf7dba2b4b2 100644 (file)
@@ -447,11 +447,11 @@ static void test_nrf51_timer(void)
 
     timer_set_bitmode(qts, NRF51_TIMER_WIDTH_16); /* 16 MHz Timer */
     timer_set_prescaler(qts, 0);
-    /* Swept over in first step */
+    /* Swept over, during the first step */
     timer_set_cc(qts, 0, 2);
-    /* Barely miss on first step */
+    /* Barely miss, after the second step */
     timer_set_cc(qts, 1, 162);
-    /* Spot on on third step */
+    /* Spot on, after the third step */
     timer_set_cc(qts, 2, 480);
 
     timer_assert_events(qts, 0, 0, 0, 0);
index a52eacf82e1e40a17d6dd5768ca9936ce134aa5d..9368e292e4e833beb55800984531b1c436a2a038 100644 (file)
@@ -379,7 +379,7 @@ int virtio_send_data_iov(struct fuse_session *se, struct fuse_chan *ch,
     copy_iov(iov, count, in_sg, in_num, iov_len);
 
     /*
-     * Build a copy of the the in_sg iov so we can skip bits in it,
+     * Build a copy of the in_sg iov so we can skip bits in it,
      * including changing the offsets
      */
     in_sg_cpy = g_new(struct iovec, in_num);