mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
dm: add ssram support for user VM
Hook ssram init && de-init functions to vdev devices lifecycle management: 1) initialize ssram when vdev devices are initialized. 2) de-initialize ssram when vdev devices are reset or destroyed. notes: ssram configuration data can be released only when user VM shutdown, hence it can't be done in deinit_vssram(). - VM reboot: do deinit_vssram() only. - VM shutdown: do both deinit_vssram() and clean_vssram_config(). Tracked-On: #7010 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
5ff532b08c
commit
6bf70e3e35
@@ -52,6 +52,7 @@ uint64_t get_vssram_size(void);
|
||||
uint8_t *get_vssram_vrtct(void);
|
||||
void clean_vssram_configs(void);
|
||||
int init_vssram(struct vmctx *ctx);
|
||||
void deinit_vssram(struct vmctx *ctx);
|
||||
int parse_vssram_buf_params(const char *opt);
|
||||
|
||||
#endif /* RTCT_H */
|
||||
|
Reference in New Issue
Block a user