dm: added fix-me for guest e820 initialization

Added a fix-me for guest e820 initialization.

Tracked-On: #5330

Signed-off-by: Qian Wang <qian1.wang@intel.com>
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Qian Wang 2020-09-16 12:29:04 +08:00 committed by wenlingz
parent 8dfd59de5e
commit 57a6d35188
2 changed files with 17 additions and 0 deletions

View File

@ -268,6 +268,9 @@ acrn_create_e820_table(struct vmctx *ctx, struct e820_entry *e820)
removed++;
}
} else {
/* Fix-Me: e820[LOWRAM_E820_ENTRY+2] can be used as RAM
only when ctx->lowmem is higher than PSRAM area.
also, the length should be adjusted to ctx->lowmem-baseaddr */
e820[LOWRAM_E820_ENTRY+2].type = E820_TYPE_RAM;
}

View File

@ -0,0 +1,14 @@
/*
* Copyright (C) 2020 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef PTCT_H
#define PTCT_H
#define PSRAM_BASE_HPA 0x40080000UL
#define PSRAM_BASE_GPA 0x40080000UL
#define PSRAM_MAX_SIZE 0x00800000UL
#endif /* PTCT_H */