HV: vuart: enable connect mode for VM

Enable connection mode for vuart, so that vuart in different VMs can set up
connection.
In pre-launched VM's configuration file, ttyS1 is set to be the connection
port. To enable it in post-launched VM, just add vuart configuration.

Tracked-On: #2987
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Conghui Chen
2019-04-20 06:42:44 +08:00
committed by ACRN System Integration
parent 235d886103
commit bed57dd242
2 changed files with 72 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ struct acrn_vuart {
char vuart_tx_buf[TX_BUF_SIZE];
bool thre_int_pending; /* THRE interrupt pending */
bool active;
struct acrn_vuart *target_vu; /* Pointer to target vuart */
struct acrn_vm *vm;
spinlock_t lock; /* protects all softc elements */
};