mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 04:09:11 +00:00
hv: add a hypercall for the hypervisor NPK log
The hypercall HC_SETUP_HV_NPK_LOG is added to enable/disable/configure the hypervisor NPK log. Signed-off-by: Zhi Jin <zhi.jin@intel.com> Signed-off-by: Zhonghua Sun <zhonghua.sun@intel.com> Reviewed-by: CHEN Gang <gang.c.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
/* DEBUG */
|
||||
#define HC_ID_DBG_BASE 0x60UL
|
||||
#define HC_SETUP_SBUF BASE_HC_ID(HC_ID, HC_ID_DBG_BASE + 0x00UL)
|
||||
#define HC_SETUP_HV_NPK_LOG BASE_HC_ID(HC_ID, HC_ID_DBG_BASE + 0x01UL)
|
||||
|
||||
/* Trusty */
|
||||
#define HC_ID_TRUSTY_BASE 0x70UL
|
||||
@@ -186,6 +187,28 @@ struct sbuf_setup_param {
|
||||
uint64_t gpa;
|
||||
} __aligned(8);
|
||||
|
||||
/**
|
||||
* @brief Info to setup the hypervisor NPK log
|
||||
*
|
||||
* the parameter for HC_SETUP_HV_NPK_LOG hypercall
|
||||
*/
|
||||
struct hv_npk_log_param {
|
||||
/** the setup command for the hypervisor NPK log */
|
||||
uint16_t cmd;
|
||||
|
||||
/** the setup result for the hypervisor NPK log */
|
||||
uint16_t res;
|
||||
|
||||
/** the loglevel for the hypervisor NPK log */
|
||||
uint16_t loglevel;
|
||||
|
||||
/** Reserved */
|
||||
uint16_t reserved;
|
||||
|
||||
/** the MMIO address for the hypervisor NPK log */
|
||||
uint64_t mmio_addr;
|
||||
} __aligned(8);
|
||||
|
||||
/**
|
||||
* Gpa to hpa translation parameter, used for HC_VM_GPA2HPA hypercall
|
||||
*/
|
||||
|
Reference in New Issue
Block a user