config_tools: support vUART Tx/Rx buffer size configuration

Introduce an interface to define Tx/Tx buffer size via ACRN config tool.
User can configure under Hypervisor->Advanced Parameters.

Tracked-On: #8644
Signed-off-by: Haiwei Li <haiwei.li@intel.com>
This commit is contained in:
Haiwei Li
2024-07-02 21:22:30 +08:00
committed by acrnsi-robot
parent cc9013541f
commit f47b2b6860
4 changed files with 42 additions and 4 deletions

View File

@@ -32,8 +32,8 @@
#include <asm/lib/spinlock.h>
#include <asm/vm_config.h>
#define RX_BUF_SIZE 256U
#define TX_BUF_SIZE 8192U
#define RX_BUF_SIZE CONFIG_VUART_RX_BUF_SIZE
#define TX_BUF_SIZE CONFIG_VUART_TX_BUF_SIZE
#define INVAILD_VUART_IDX 0xFFU
#define COM1_BASE 0x3F8U