mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
DM: add vPTCT for post-launched RTVM
dm: vptct: add vPTCT for post-launched RTVM We added vPTCT support for post-launched RTVM: 1. Added a function create_and_inject_vptct. Currently, we pass-through the whole pSRAM to one RTVM, so we will also pass- through the PTCT to the very same RTVM. This function will read the native PTCT from SOS and inject it into post- launched VM's vACPI. 2. Added some definitions for vPTCT. Tracked-On: #5330 Signed-off-by: Qian Wang <qian1.wang@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -49,6 +49,7 @@ extern char *mac_seed;
|
||||
extern bool lapic_pt;
|
||||
extern bool is_rtvm;
|
||||
extern bool pt_tpm2;
|
||||
extern bool pt_ptct;
|
||||
extern bool is_winvm;
|
||||
|
||||
int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,
|
||||
|
16
devicemodel/include/ptct.h
Normal file
16
devicemodel/include/ptct.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef PTCT_H
|
||||
#define PTCT_H
|
||||
|
||||
|
||||
/* TODO: Move to high-memory region. */
|
||||
#define PSRAM_BASE_HPA 0x40080000UL
|
||||
#define PSRAM_BASE_GPA 0x40080000UL
|
||||
#define PSRAM_MAX_SIZE 0x00800000UL
|
||||
|
||||
#endif /* PTCT_H */
|
Reference in New Issue
Block a user