Skip to content

Commit 631ba5a

Browse files
caihuoqing1990vivier
authored andcommitted
hw/vfio: Fix typo in comments
Fix typo in comments: *programatically ==> programmatically *disconecting ==> disconnecting *mulitple ==> multiple *timout ==> timeout *regsiter ==> register *forumula ==> formula Signed-off-by: Cai Huoqing <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 37557b0 commit 631ba5a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

hw/vfio/igd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
557557
* must allocate a 1MB aligned reserved memory region below 4GB with
558558
* the requested size (in bytes) for use by the Intel PCI class VGA
559559
* device at VM address 00:02.0. The base address of this reserved
560-
* memory region must be written to the device BDSM regsiter at PCI
560+
* memory region must be written to the device BDSM register at PCI
561561
* config offset 0x5C.
562562
*/
563563
bdsm_size = g_malloc(sizeof(*bdsm_size));

hw/vfio/pci-quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ static bool vfio_radeon_smc_is_running(VFIOPCIDevice *vdev)
13561356
/*
13571357
* The scope of a config reset is controlled by a mode bit in the misc register
13581358
* and a fuse, exposed as a bit in another register. The fuse is the default
1359-
* (0 = GFX, 1 = whole GPU), the misc bit is a toggle, with the forumula
1359+
* (0 = GFX, 1 = whole GPU), the misc bit is a toggle, with the formula
13601360
* scope = !(misc ^ fuse), where the resulting scope is defined the same as
13611361
* the fuse. A truth table therefore tells us that if misc == fuse, we need
13621362
* to flip the value of the bit in the misc register.

hw/vfio/pci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ static void vfio_pci_relocate_msix(VFIOPCIDevice *vdev, Error **errp)
13641364
* TODO: Lookup table for known devices.
13651365
*
13661366
* Logically we might use an algorithm here to select the BAR adding
1367-
* the least additional MMIO space, but we cannot programatically
1367+
* the least additional MMIO space, but we cannot programmatically
13681368
* predict the driver dependency on BAR ordering or sizing, therefore
13691369
* 'auto' becomes a lookup for combinations reported to work.
13701370
*/
@@ -2158,7 +2158,7 @@ static void vfio_pci_pre_reset(VFIOPCIDevice *vdev)
21582158
}
21592159

21602160
/*
2161-
* Stop any ongoing DMA by disconecting I/O, MMIO, and bus master.
2161+
* Stop any ongoing DMA by disconnecting I/O, MMIO, and bus master.
21622162
* Also put INTx Disable in known state.
21632163
*/
21642164
cmd = vfio_pci_read_config(pdev, PCI_COMMAND, 2);
@@ -2384,7 +2384,7 @@ static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single)
23842384
}
23852385

23862386
/*
2387-
* We want to differentiate hot reset of mulitple in-use devices vs hot reset
2387+
* We want to differentiate hot reset of multiple in-use devices vs hot reset
23882388
* of a single in-use device. VFIO_DEVICE_RESET will already handle the case
23892389
* of doing hot resets when there is only a single device per bus. The in-use
23902390
* here refers to how many VFIODevices are affected. A hot reset that affects

hw/vfio/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void vfio_mmap_set_enabled(VFIOPlatformDevice *vdev, bool enabled)
156156
* if there is no more active IRQ
157157
* @opaque: actually points to the VFIO platform device
158158
*
159-
* Called on mmap timer timout, this function checks whether the
159+
* Called on mmap timer timeout, this function checks whether the
160160
* IRQ is still active and if not, restores the fast path.
161161
* by construction a single eventfd is handled at a time.
162162
* if the IRQ is still active, the timer is re-programmed.

0 commit comments

Comments
 (0)