mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv:Replace dynamic memory allocation for vuart
Replace dynamic allocation for vuart rx/tx buffer
with static array.
v2-->v3:
-- Reduce the size of vuart tx buffer from 64K to 8K
-- For non-partition mode, will use global rx/tx buffer,
for partition mode, will use per VM rx/tx buffer.
-- Change several APIs to inline
v1-->v2:
-- Move vuart rx/tx buffer into acrn_vuart data structure
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Wang, Minxia
parent
7ce0e6a395
commit
07e71212cc
@@ -253,7 +253,7 @@ static inline struct vcpu *get_primary_vcpu(struct vm *vm)
|
||||
static inline struct acrn_vuart*
|
||||
vm_vuart(struct vm *vm)
|
||||
{
|
||||
return (struct acrn_vuart *)&(vm->vuart);
|
||||
return &(vm->vuart);
|
||||
}
|
||||
|
||||
static inline struct acrn_vpic *
|
||||
|
||||
Reference in New Issue
Block a user