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 <caihuoqing@baidu.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210730012613.2198-1-caihuoqing@baidu.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Cai Huoqing 2021-07-30 09:26:13 +08:00 committed by Laurent Vivier
parent 37557b09a6
commit 631ba5a128
4 changed files with 6 additions and 6 deletions

View file

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

View file

@ -1356,7 +1356,7 @@ static bool vfio_radeon_smc_is_running(VFIOPCIDevice *vdev)
/* /*
* The scope of a config reset is controlled by a mode bit in the misc register * The scope of a config reset is controlled by a mode bit in the misc register
* and a fuse, exposed as a bit in another register. The fuse is the default * and a fuse, exposed as a bit in another register. The fuse is the default
* (0 = GFX, 1 = whole GPU), the misc bit is a toggle, with the forumula * (0 = GFX, 1 = whole GPU), the misc bit is a toggle, with the formula
* scope = !(misc ^ fuse), where the resulting scope is defined the same as * scope = !(misc ^ fuse), where the resulting scope is defined the same as
* the fuse. A truth table therefore tells us that if misc == fuse, we need * the fuse. A truth table therefore tells us that if misc == fuse, we need
* to flip the value of the bit in the misc register. * to flip the value of the bit in the misc register.

View file

@ -1364,7 +1364,7 @@ static void vfio_pci_relocate_msix(VFIOPCIDevice *vdev, Error **errp)
* TODO: Lookup table for known devices. * TODO: Lookup table for known devices.
* *
* Logically we might use an algorithm here to select the BAR adding * Logically we might use an algorithm here to select the BAR adding
* the least additional MMIO space, but we cannot programatically * the least additional MMIO space, but we cannot programmatically
* predict the driver dependency on BAR ordering or sizing, therefore * predict the driver dependency on BAR ordering or sizing, therefore
* 'auto' becomes a lookup for combinations reported to work. * 'auto' becomes a lookup for combinations reported to work.
*/ */
@ -2158,7 +2158,7 @@ static void vfio_pci_pre_reset(VFIOPCIDevice *vdev)
} }
/* /*
* Stop any ongoing DMA by disconecting I/O, MMIO, and bus master. * Stop any ongoing DMA by disconnecting I/O, MMIO, and bus master.
* Also put INTx Disable in known state. * Also put INTx Disable in known state.
*/ */
cmd = vfio_pci_read_config(pdev, PCI_COMMAND, 2); cmd = vfio_pci_read_config(pdev, PCI_COMMAND, 2);
@ -2384,7 +2384,7 @@ out_single:
} }
/* /*
* We want to differentiate hot reset of mulitple in-use devices vs hot reset * We want to differentiate hot reset of multiple in-use devices vs hot reset
* of a single in-use device. VFIO_DEVICE_RESET will already handle the case * of a single in-use device. VFIO_DEVICE_RESET will already handle the case
* of doing hot resets when there is only a single device per bus. The in-use * of doing hot resets when there is only a single device per bus. The in-use
* here refers to how many VFIODevices are affected. A hot reset that affects * here refers to how many VFIODevices are affected. A hot reset that affects

View file

@ -156,7 +156,7 @@ static void vfio_mmap_set_enabled(VFIOPlatformDevice *vdev, bool enabled)
* if there is no more active IRQ * if there is no more active IRQ
* @opaque: actually points to the VFIO platform device * @opaque: actually points to the VFIO platform device
* *
* Called on mmap timer timout, this function checks whether the * Called on mmap timer timeout, this function checks whether the
* IRQ is still active and if not, restores the fast path. * IRQ is still active and if not, restores the fast path.
* by construction a single eventfd is handled at a time. * by construction a single eventfd is handled at a time.
* if the IRQ is still active, the timer is re-programmed. * if the IRQ is still active, the timer is re-programmed.