acrn-hypervisor/misc
Tao Yuhong 55b7fae67a HV: pci-vuart: pci based vuart emulation
Add emulation for pci based vuart device mcs9900 at hv land.
add struct pci_vdev_ops vuart_pci_ops, the vdev callbalks for vuart.

How to use
In misc/vm_configs/scenarios/<SCENARIO>/<BOARD>/pci_dev.c, add pci
vuart config to vm_pci_devs[] array. For example:

struct acrn_vm_pci_dev_config vm0_pci_devs[] = {
       /* console vuart setting*/
       {
               .emu_type = PCI_DEV_TYPE_HVEMUL,
               .vbdf.bits = {.b = 0x00U, .d = 0x04U, .f = 0x00U},
               .vdev_ops = &vmcs_ops,
               .vbar_base[0] = 0x80001000,	/* mmio bar */
               .vbar_base[1] = 0x80002000,	/* msix bar */
               .vuart_idx = 0,
       },
       /* communication vuart setting */
       {
               .emu_type = PCI_DEV_TYPE_HVEMUL,
               .vbdf.bits = {.b = 0x00U, .d = 0x05U, .f = 0x00U},
               .vdev_ops = &vmcs_ops,
               .vbar_base[0] = 0x80003000,
               .vbar_base[1] = 0x80004000,
               .vuart_idx = 1,
               .t_vuart.vm_id = 1U,
               .t_vuart.vuart_id = 1U,
       },
}

Tracked-On: #5394
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
Acked-by: Eddie Dong <eddie.dong@Intel.com>
2020-10-30 20:41:34 +08:00
..
acrn-config acrn-config: fix the bug of resolved nested mmio address 2020-10-30 20:40:16 +08:00
acrn-manager doc: fix source code folder and use 'User VM' 2020-09-10 11:39:58 -07:00
acrnbridge use variables for installation directories. 2020-06-05 15:25:12 +08:00
hv_prebuild HV: pci-vuart: pci based vuart emulation 2020-10-30 20:41:34 +08:00
life_mngr misc: life_mngr: use the entire read buffer for the SOS socket 2020-10-29 10:11:25 +08:00
packaging doc: Spelling and grammar tweaks 2020-09-26 08:50:49 -07:00
tools doc: Spelling and grammar tweaks 2020-09-26 08:50:49 -07:00
vm_configs acrn-config: minor change scenario xml for cfl-k700-i7 2020-10-30 20:38:43 +08:00
Makefile tools: improve Makefile to build life-mngr 2020-07-02 13:51:34 +08:00
README.rst HV:Acrn-hypvervisor Root Directory Clean-up and create misc/ folder for Acrn daemons, services and tools. 2019-07-29 22:58:24 +08:00

README.rst

ACRN tools
##########

The open source `Project ACRN`_ defines a device hypervisor reference stack and
an architecture for running multiple software subsystems, managed securely, on
a consolidated system by means of a virtual machine manager. It also defines a
reference framework implementation for virtual device emulation, called the
"ACRN Device Model".

This folder holds the source to a number of tools that facilitate the
management, debugging, profiling, and logging of multi-OS systems based on
ACRN.

You can find out more about Project ACRN and its set of tools on the
`Project ACRN documentation`_ website.

.. _`Project ACRN`: https://projectacrn.org
.. _`Project ACRN documentation`: https://projectacrn.github.io/