acrn-hypervisor/hypervisor/dm
dongshen cf48b9c38f HV: use is_prelaunched_vm/is_hostbridge to check if the code is only for pre-launched VMs
Currently host bridge emulation and bar emulation are only for pre-launched vms,
use is_prelaunched_vm to check if it is for pre-launched vms when calling
init/deinit/cfgread/cfgwrite, also use is_hostbridge() to check if the access if
for host bridge, so that these functions can be unified for sos and pre-launched
vm in subsequent commits.

Move is_hostbridge function to vpci_priv.h so that it can be used by multiple
files.

vhostbridge_cfgread/vhostbridge_cfgwrite: return -ENODEV if the pci cfg access is not
targeted for vhostbridge so that cfgread/cfgwrite functions can be unified for sos and
pre-launched vm in subsequent commits

Fix @pre for functions

Tracked-On: #3056
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
2019-05-20 10:37:13 +08:00
..
vpci HV: use is_prelaunched_vm/is_hostbridge to check if the code is only for pre-launched VMs 2019-05-20 10:37:13 +08:00
io_req.c HV: rename 'type' in struct io_request 2019-05-06 18:25:20 +08:00
vioapic.c hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
vmptable.c hv: Build mptable for guest if VM type is Pre-Launched 2019-04-15 15:51:02 +08:00
vpic.c hv: remove the unnecessary equality operation 2019-04-02 18:18:59 +08:00
vrtc.c HV: HV: make io_read_fn_t return true or false 2019-03-29 16:17:44 +08:00
vuart.c HV: vuart: split vuart_write 2019-05-07 11:40:05 +08:00