mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-02 00:08:43 +00:00
HV: fix comments issue
Fix typo/formatting for comments Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
1454dd371d
commit
028663537a
@ -38,7 +38,7 @@ struct pci_vdev *sharing_mode_find_vdev(union pci_bdf pbdf)
|
||||
struct pci_vdev *vdev = NULL;
|
||||
uint32_t i;
|
||||
|
||||
/* in SOS_VM, it uses phys BDF */
|
||||
/* SOS_VM uses phys BDF */
|
||||
for (i = 0U; i < num_pci_vdev; i++) {
|
||||
if (sharing_mode_vdev_array[i].pdev->bdf.value == pbdf.value) {
|
||||
vdev = &sharing_mode_vdev_array[i];
|
||||
@ -69,7 +69,7 @@ static void sharing_mode_cfgread(__unused struct acrn_vpci *vpci, union pci_bdf
|
||||
}
|
||||
}
|
||||
|
||||
/* Not handled by any handlers. Passthru to physical device */
|
||||
/* Not handled by any handlers, passthru to physical device */
|
||||
if (!handled) {
|
||||
*val = pci_pdev_read_cfg(vdev->pdev->bdf, offset, bytes);
|
||||
}
|
||||
@ -94,7 +94,7 @@ static void sharing_mode_cfgwrite(__unused struct acrn_vpci *vpci, union pci_bdf
|
||||
}
|
||||
}
|
||||
|
||||
/* Not handled by any handlers. Passthru to physical device */
|
||||
/* Not handled by any handlers, passthru to physical device */
|
||||
if (!handled) {
|
||||
pci_pdev_write_cfg(vdev->pdev->bdf, offset, bytes, val);
|
||||
}
|
||||
@ -139,7 +139,7 @@ static int32_t sharing_mode_vpci_init(const struct acrn_vm *vm)
|
||||
int32_t ret;
|
||||
|
||||
/*
|
||||
* Only setup IO bitmap for SOS.
|
||||
* Only set up IO bitmap for SOS.
|
||||
* IO/MMIO requests from non-sos_vm guests will be injected to device model.
|
||||
*/
|
||||
if (!is_sos_vm(vm)) {
|
||||
|
@ -124,7 +124,7 @@ void vpci_init(struct acrn_vm *vm)
|
||||
|
||||
if ((vpci->ops->init != NULL) && (vpci->ops->init(vm) == 0)) {
|
||||
/*
|
||||
* SOS: intercep port CF8 only.
|
||||
* SOS: intercept port CF8 only.
|
||||
* UOS or partition mode: register handler for CF8 only and I/O requests to CF9/CFA/CFB are
|
||||
* not handled by vpci.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user