virt: acrn: Introduce PCI configuration space PIO accesses combiner
authorShuo Liu <shuo.a.liu@intel.com>
Sun, 7 Feb 2021 03:10:32 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 09:58:19 +0000 (10:58 +0100)
commit3c4c331667d4d9f1b5f3fdff9c4db36776da30ae
tree6bd138cb376029943ef0b4b3225f1906b771c509
parent72f293de3ff40b57db573c1bf623f494f3446f74
virt: acrn: Introduce PCI configuration space PIO accesses combiner

A User VM can access its virtual PCI configuration spaces via port IO
approach, which has two following steps:
 1) writes address into port 0xCF8
 2) put/get data in/from port 0xCFC

To distribute a complete PCI configuration space access one time, HSM
need to combine such two accesses together.

Combine two paired PIO I/O requests into one PCI I/O request and
continue the I/O request distribution.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Link: https://lore.kernel.org/r/20210207031040.49576-11-shuo.a.liu@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/acrn/acrn_drv.h
drivers/virt/acrn/ioreq.c
include/uapi/linux/acrn.h