Skip to content

Commit d1fe593

Browse files
committed
Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-for-6.2-pull-request' into staging
Trivial patches pull request 20210916 # gpg: Signature made Thu 16 Sep 2021 15:09:39 BST # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "[email protected]" # gpg: Good signature from "Laurent Vivier <[email protected]>" [full] # gpg: aka "Laurent Vivier <[email protected]>" [full] # gpg: aka "Laurent Vivier (Red Hat) <[email protected]>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/trivial-branch-for-6.2-pull-request: target/sparc: Make sparc_cpu_dump_state() static target/avr: Fix compiler errors (-Werror=enum-conversion) hw/vfio: Fix typo in comments intel_iommu: Fix typo in comments target/i386: spelling: occured=>occurred, mininum=>minimum configure: add missing pc-bios/qemu_vga.ndrv symlink in build tree spelling: sytem => system qdev: Complete qdev_init_gpio_out() documentation hw/i386/acpi-build: Fix a typo util: Remove redundant checks in the openpty() Signed-off-by: Peter Maydell <[email protected]>
2 parents 63cf612 + 9ac200a commit d1fe593

File tree

16 files changed

+32
-30
lines changed

16 files changed

+32
-30
lines changed

accel/kvm/kvm-all.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ static int kvm_init(MachineState *ms)
24692469
ret = kvm_vm_enable_cap(s, KVM_CAP_DIRTY_LOG_RING, 0, ring_bytes);
24702470
if (ret) {
24712471
error_report("Enabling of KVM dirty ring failed: %s. "
2472-
"Suggested mininum value is 1024.", strerror(-ret));
2472+
"Suggested minimum value is 1024.", strerror(-ret));
24732473
goto err;
24742474
}
24752475

block/file-posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ static int handle_aiocb_write_zeroes(void *opaque)
17051705
*/
17061706
warn_report_once("Your file system is misbehaving: "
17071707
"fallocate(FALLOC_FL_PUNCH_HOLE) returned EINVAL. "
1708-
"Please report this bug to your file sytem "
1708+
"Please report this bug to your file system "
17091709
"vendor.");
17101710
} else if (ret != -ENOTSUP) {
17111711
return ret;

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5052,7 +5052,9 @@ for bios_file in \
50525052
$source_path/pc-bios/openbios-* \
50535053
$source_path/pc-bios/u-boot.* \
50545054
$source_path/pc-bios/edk2-*.fd.bz2 \
5055-
$source_path/pc-bios/palcode-*
5055+
$source_path/pc-bios/palcode-* \
5056+
$source_path/pc-bios/qemu_vga.ndrv
5057+
50565058
do
50575059
LINKS="$LINKS pc-bios/$(basename $bios_file)"
50585060
done

hw/i386/acpi-build.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ build_srat(GArray *table_data, BIOSLinker *linker, MachineState *machine)
19161916
PCMachineState *pcms = PC_MACHINE(machine);
19171917
int nb_numa_nodes = machine->numa_state->num_nodes;
19181918
NodeInfo *numa_info = machine->numa_state->nodes;
1919-
ram_addr_t hotplugabble_address_space_size =
1919+
ram_addr_t hotpluggable_address_space_size =
19201920
object_property_get_int(OBJECT(pcms), PC_MACHINE_DEVMEM_REGION_SIZE,
19211921
NULL);
19221922

@@ -2022,10 +2022,10 @@ build_srat(GArray *table_data, BIOSLinker *linker, MachineState *machine)
20222022
* Memory devices may override proximity set by this entry,
20232023
* providing _PXM method if necessary.
20242024
*/
2025-
if (hotplugabble_address_space_size) {
2025+
if (hotpluggable_address_space_size) {
20262026
numamem = acpi_data_push(table_data, sizeof *numamem);
20272027
build_srat_memory(numamem, machine->device_memory->base,
2028-
hotplugabble_address_space_size, nb_numa_nodes - 1,
2028+
hotpluggable_address_space_size, nb_numa_nodes - 1,
20292029
MEM_AFFINITY_HOTPLUGGABLE | MEM_AFFINITY_ENABLED);
20302030
}
20312031

hw/i386/intel_iommu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ static inline bool vtd_pe_type_check(X86IOMMUState *x86_iommu,
679679
}
680680
break;
681681
default:
682-
/* Unknwon type */
682+
/* Unknown type */
683683
return false;
684684
}
685685
return true;
@@ -692,7 +692,7 @@ static inline bool vtd_pdire_present(VTDPASIDDirEntry *pdire)
692692

693693
/**
694694
* Caller of this function should check present bit if wants
695-
* to use pdir entry for futher usage except for fpd bit check.
695+
* to use pdir entry for further usage except for fpd bit check.
696696
*/
697697
static int vtd_get_pdire_from_pdir_table(dma_addr_t pasid_dir_base,
698698
uint32_t pasid,
@@ -746,7 +746,7 @@ static int vtd_get_pe_in_pasid_leaf_table(IntelIOMMUState *s,
746746

747747
/**
748748
* Caller of this function should check present bit if wants
749-
* to use pasid entry for futher usage except for fpd bit check.
749+
* to use pasid entry for further usage except for fpd bit check.
750750
*/
751751
static int vtd_get_pe_from_pdire(IntelIOMMUState *s,
752752
uint32_t pasid,
@@ -1507,7 +1507,7 @@ static int vtd_sync_shadow_page_table(VTDAddressSpace *vtd_as)
15071507
}
15081508

15091509
/*
1510-
* Check if specific device is configed to bypass address
1510+
* Check if specific device is configured to bypass address
15111511
* translation for DMA requests. In Scalable Mode, bypass
15121512
* 1st-level translation or 2nd-level translation, it depends
15131513
* on PGTT setting.

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.

include/hw/qdev-core.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,10 @@ void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n);
598598
*
599599
* See qdev_connect_gpio_out() for how code that uses such a device
600600
* can connect to one of its output GPIO lines.
601+
*
602+
* There is no need to release the @pins allocated array because it
603+
* will be automatically released when @dev calls its instance_finalize()
604+
* handler.
601605
*/
602606
void qdev_init_gpio_out(DeviceState *dev, qemu_irq *pins, int n);
603607
/**

0 commit comments

Comments
 (0)