mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: remove CONFIG_HV_RAM_SIZE
It's difficult to configure CONFIG_HV_RAM_SIZE properly at once. This patch not only remove CONFIG_HV_RAM_SIZE, but also we use ld linker script to dynamically get the size of HV RAM size. Tracked-On: #6663 Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -14,5 +14,6 @@ extern uint8_t ld_entry_end;
|
||||
extern const uint8_t ld_trampoline_load;
|
||||
extern uint8_t ld_trampoline_start;
|
||||
extern uint8_t ld_trampoline_end;
|
||||
extern uint8_t ld_ram_size;
|
||||
|
||||
#endif /* LD_SYM_H */
|
||||
|
@@ -183,6 +183,8 @@ void flush_vpid_global(void);
|
||||
*/
|
||||
void invept(const void *eptp);
|
||||
|
||||
uint32_t get_hv_ram_size(void);
|
||||
|
||||
/* get PDPT address from CR3 vaule in PAE mode */
|
||||
static inline uint64_t get_pae_pdpt_addr(uint64_t cr3)
|
||||
{
|
||||
|
Reference in New Issue
Block a user