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:
Kaige Fu
2018-08-13 13:20:24 +08:00
committed by lijinxia
parent b0861621d9
commit b5a233da9f
4 changed files with 21 additions and 4 deletions

View File

@@ -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);