mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: Enclose debug specific code with #ifdef HV_DEBUG
Thare some debug specific code which don't run on release version, such as vmexit_time, vmexit_cnt, sbuf related codes, etc... This patch encloses the codes with #ifdef HV_DEBUG. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -155,9 +155,11 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
|
||||
ret = hcall_reset_ptdev_intr_info(vm, (uint16_t)param1, param2);
|
||||
break;
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
case HC_SETUP_SBUF:
|
||||
ret = hcall_setup_sbuf(vm, param1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case HC_WORLD_SWITCH:
|
||||
ret = hcall_world_switch(vcpu);
|
||||
|
Reference in New Issue
Block a user