vfio/pci: Fix typos in comments
Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
3eab887a55
commit
8138dabbab
|
@ -70,7 +70,7 @@ static const u8 pci_cap_length[PCI_CAP_ID_MAX + 1] = {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lengths of PCIe/PCI-X Extended Config Capabilities
|
* Lengths of PCIe/PCI-X Extended Config Capabilities
|
||||||
* 0: Removed or masked from the user visible capabilty list
|
* 0: Removed or masked from the user visible capability list
|
||||||
* FF: Variable length
|
* FF: Variable length
|
||||||
*/
|
*/
|
||||||
static const u16 pci_ext_cap_length[PCI_EXT_CAP_ID_MAX + 1] = {
|
static const u16 pci_ext_cap_length[PCI_EXT_CAP_ID_MAX + 1] = {
|
||||||
|
@ -355,7 +355,7 @@ static int alloc_perm_bits(struct perm_bits *perm, int size)
|
||||||
* ignore whether a read/write exceeds the defined capability
|
* ignore whether a read/write exceeds the defined capability
|
||||||
* structure. We can do this because:
|
* structure. We can do this because:
|
||||||
* - Standard config space is already dword aligned
|
* - Standard config space is already dword aligned
|
||||||
* - Capabilities are all dword alinged (bits 0:1 of next reserved)
|
* - Capabilities are all dword aligned (bits 0:1 of next reserved)
|
||||||
* - Express capabilities defined as dword aligned
|
* - Express capabilities defined as dword aligned
|
||||||
*/
|
*/
|
||||||
size = round_up(size, 4);
|
size = round_up(size, 4);
|
||||||
|
@ -1516,10 +1516,10 @@ static int vfio_ecap_init(struct vfio_pci_device *vdev)
|
||||||
* space which tracks reads and writes to bits that we emulate for
|
* space which tracks reads and writes to bits that we emulate for
|
||||||
* the user. Initial values filled from device.
|
* the user. Initial values filled from device.
|
||||||
*
|
*
|
||||||
* Using shared stuct perm_bits between all vfio-pci devices saves
|
* Using shared struct perm_bits between all vfio-pci devices saves
|
||||||
* us from allocating cfg_size buffers for virt and write for every
|
* us from allocating cfg_size buffers for virt and write for every
|
||||||
* device. We could remove vconfig and allocate individual buffers
|
* device. We could remove vconfig and allocate individual buffers
|
||||||
* for each area requring emulated bits, but the array of pointers
|
* for each area requiring emulated bits, but the array of pointers
|
||||||
* would be comparable in size (at least for standard config space).
|
* would be comparable in size (at least for standard config space).
|
||||||
*/
|
*/
|
||||||
int vfio_config_init(struct vfio_pci_device *vdev)
|
int vfio_config_init(struct vfio_pci_device *vdev)
|
||||||
|
|
Loading…
Reference in New Issue