[PATCH v6 3/4] hv: move the MAX_VUART_NUM_PER_VM to offline tool
Current code limit the MAX vUART number to 8 which is not enough for
Service VM which should config S5 UART for each user VM.
We could count how many vUARTs we need by offline tool, so remove the
define of MAX_VUART_NUM_PER_VM to offline tool is a simple and accurate
way to allocate vUARTs.
1.move the define of MAX_VUART_NUM_PER_VM to offline tool
Signed-off-by: Chenli Wei <chenli.wei@...>
hypervisor/include/arch/x86/asm/vm_config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/hypervisor/include/arch/x86/asm/vm_config.h b/hypervisor/include/arch/x86/asm/vm_config.h
index d985d7081..7e58a88b5 100644
@@ -18,7 +18,6 @@
#define AFFINITY_CPU(n) (1UL << (n))
#define MAX_VCPUS_PER_VM MAX_PCPU_NUM
-#define MAX_VUART_NUM_PER_VM 8U
#define MAX_VM_OS_NAME_LEN 32U
#define MAX_MOD_TAG_LEN 32U
I am fine with this. Once you get +1 for the misc patches, please PR.toggle quoted messageShow quoted text
On 5/13/2022 2:57 AM, Eddie Dong wrote:
I am fine with this. Once you get +1 for the misc patches, please PR.OK.
I have send to PR.