acrn-hypervisor/devicemodel/core
Li Fei1 f13d5c25b6 dm: mmio_dev: add mmio device pass through support
We could add MMIO device pass through by two ways:
a) If the MMIO device only has MMIO regions and no ACPI Table touched, using
"--mmiodev_pt MMIO_regions",
b) If the MMIO device touches ACPI Table, using "--acpidev_pt HID"

Now only support TPM2 MSFT0101 MMIO device pass through through launch script
using "--acpidev_pt MSFT0101". When we want to pass through the TPM2 deivce,
we would not allow to emulate the vTPM2 at the same time. This is becuase
the ACRN-DM emulate the TPM2 as MSFT0101 too. Otherwise, the VM can't boot.

Besides, we could only support one TPM2 device PT and one MMIO device PT.
For TPM2 device PT, the MMIO resources are hard-coded. For the MMIO device PT,
we could pass through the MMIO resources on the cmdline.

ToDo:
1. We may use HID to discover the MMIO regions and ACPI Table instaed of
hard-coded.
2. To identify a MMIO device only by MMIO regions.
3. To allocate virtual MMIO regions in a reserved guest MMIO regions.

Tracked-On: #5053
Signed-off-by: Li Fei1 <fei1.li@intel.com>
2020-07-23 20:13:20 +08:00
..
console.c DM: remove unused function console_ptr_event 2019-05-24 11:51:00 +08:00
gc.c dm: gc: clean up assert 2019-07-03 09:40:15 +08:00
hugetlb.c dm: Fix wrong hugetlb_lv_max 2020-07-08 15:32:15 +08:00
inout.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
main.c dm: mmio_dev: add mmio device pass through support 2020-07-23 20:13:20 +08:00
mem.c dm:use acrn-dm logger function instread of printf 2019-11-14 15:34:04 +08:00
mevent.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
monitor.c acrn-dm: add some logs for vm state transition 2020-05-15 10:06:23 +08:00
mptbl.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
pm.c acrn-dm: add some logs for vm state transition 2020-05-15 10:06:23 +08:00
pm_vuart.c dm:refine pm_vuart code 2020-04-16 22:01:54 +08:00
post.c dm: refine 'assert' in inout.c and post.c 2019-06-20 08:55:44 +08:00
sw_load_bzimage.c dm: bzimage: dynamically adapt to ramdisk size 2020-05-28 08:49:47 +08:00
sw_load_common.c dm:passthrough graphics stolen memory to uos gpu 2020-01-17 09:23:13 +08:00
sw_load_elf.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
sw_load_ovmf.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
sw_load_vsbl.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00
timer.c dm:replace perror with pr_err 2020-01-08 13:37:57 +08:00
vmmapi.c dm: mmio_dev: add hypercall to support mmio device pass through 2020-07-23 20:13:20 +08:00
vrpmb.c dm:use acrn-dm logger function instread of fprintf 2019-11-14 15:34:04 +08:00