[PATCH v3 0/5] vuart refine

Conghui Chen

As there are requirements for switching VM's console at hypervisor
side and providing a mechanism to connect uart between different VMs, so
refine the vuart code.

In current patch list, two vuart are added to pre-launched VM's configuration,
one is for console, the other is for communication. And these can only be
used in debug mode. Will move the vuart code from hypervisor/debug/ to
hypervisor/dm/, so that the release version can also use it.

For post-launched VM, did not add vuart configuration, as the irq resouce for
different platform is different, and for post-launched VM, the scenario is more
complicated, it is very likely the irq set for vuart is occupied by other device.
May use PCI vuart to replace the legacy port vuart.

v1->v2: split first patch to three patches.
change code according to the comments.

v2->v3: remove vuart_mode from vuart configuration.
change init phase by new configuration.

Conghui Chen (5):
HV: vuart: refine vuart config
HV: vuart: enable vuart console for VM
HV: vuart: enable connect mode for VM
HV: vuart: add hotkey for switching
HV: vuart: support MSR and MCR

hypervisor/arch/x86/guest/assign.c | 4 +-
hypervisor/arch/x86/guest/vm.c | 14 +-
hypervisor/debug/shell.c | 24 +-
hypervisor/debug/vuart.c | 344 +++++++++++++++++----
hypervisor/include/arch/x86/guest/vm.h | 2 +-
hypervisor/include/arch/x86/guest/vmx_io.h | 6 +-
hypervisor/include/arch/x86/vm_config.h | 29 +-
hypervisor/include/debug/console.h | 3 +
hypervisor/include/debug/uart16550.h | 20 ++
hypervisor/include/debug/vuart.h | 29 +-
hypervisor/release/vuart.c | 6 +-
.../logical_partition/vm_configurations.c | 27 +-
hypervisor/scenarios/sdc/vm_configurations.c | 19 ++
13 files changed, 416 insertions(+), 111 deletions(-)


Join acrn-dev@lists.projectacrn.org to automatically receive all group messages.