acrn-hypervisor/hypervisor/dm
dongshen d6bf060573 HV: remove redundant function calling
The caller function has already done the checking to make sure the req is targeted
for the called functions, so there is no need to do the same checking in called
functions.

Remove calling of is_bar_offset() in vdev_pt_read_cfg/vdev_pt_write_cfg:
 In vpci.c's vpci_read_pt_dev_cfg and vpci_write_dev_cfg, vbar_access is called
 first to make sure the req is targed for vdev pt (vbar emulation) before
 dispatching the request to vdev_pt_read_cfg/vdev_pt_write_cfg, so there is no
 need to call is_bar_offset() again to do the same checking in vdev_pt_read_cfg/vdev_pt_write_cfg.

The same goes for msicap_access/msixcap_access

vbar_access should only check if the req is for bar access, it should not care
about whether the bar access is 4 bytes or 4 bytes aligned. The called function
vdev_pt_write_vbar will check and ignore the write access if it is not 4 bytes or 4 bytes
aligned, although this is counted as a bar access.

vdev_pt_read_vbar will check if the read access is 4 bytes or 4 bytes
aligned, although this is counted as a bar access, set read value (*val) to
-1 if the access is not 4 bytes (or aligned).

Tracked-On: #3475
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-07-29 09:58:57 +08:00
..
vpci HV: remove redundant function calling 2019-07-29 09:58:57 +08:00
io_req.c hv: io_req: refine vhm_req status setting 2019-07-11 09:15:47 +08:00
vioapic.c softirq:spinlock: correct vioapic/vpic lock usage 2019-07-22 09:55:06 +08:00
vpic.c hv: schedule: schedule to idel after SOS resume form S3 2019-07-29 09:53:18 +08:00
vrtc.c HV: fix violations touched type conversion 2019-07-11 09:16:09 +08:00
vuart.c softirq:spinlock: correct vioapic/vpic lock usage 2019-07-22 09:55:06 +08:00