mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-30 06:54:48 +00:00
hv: remove pr_dbg between stac/clac
As the pr_dbg will access sbuf which will call stac/clac inside, so can not put pr_dbg between stac/clac, it will case Page Fault. acrn_print_request is a debug feature, and it calls pr_dbg. when the loglevel is set to 6, there will be Page Fault. So, remove the caller for acrn_print_request and mask the function as unused, reserved for debug. Tracked-On: #3648 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
parent
8d27c1e11c
commit
32d8510596
@ -18,7 +18,7 @@ static uint32_t acrn_vhm_notification_vector = VECTOR_HYPERVISOR_CALLBACK_VHM;
|
||||
#define MMIO_DEFAULT_VALUE_SIZE_8 (0xFFFFFFFFFFFFFFFFUL)
|
||||
|
||||
#if defined(HV_DEBUG)
|
||||
static void acrn_print_request(uint16_t vcpu_id, const struct vhm_request *req)
|
||||
__unused static void acrn_print_request(uint16_t vcpu_id, const struct vhm_request *req)
|
||||
{
|
||||
switch (req->type) {
|
||||
case REQ_MMIO:
|
||||
@ -122,12 +122,6 @@ int32_t acrn_insert_request(struct acrn_vcpu *vcpu, const struct io_request *io_
|
||||
*/
|
||||
set_vhm_req_state(vcpu->vm, vcpu->vcpu_id, REQ_STATE_PENDING);
|
||||
|
||||
#if defined(HV_DEBUG)
|
||||
stac();
|
||||
acrn_print_request(vcpu->vcpu_id, vhm_req);
|
||||
clac();
|
||||
#endif
|
||||
|
||||
/* signal VHM */
|
||||
arch_fire_vhm_interrupt();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user