HV: Remove dead code wrapped by #if 0

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Kaige Fu 2018-05-29 16:07:59 +08:00 committed by lijinxia
parent 39cce18de7
commit 7491b83394
1 changed files with 0 additions and 21 deletions

View File

@ -296,12 +296,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
/* mov to cr4 */
vmx_write_cr4(vcpu, *regptr);
break;
#if 0
case 0x14:
/* mov from cr4 (this should not happen) */
case 0x10:
/* mov from cr0 (this should not happen) */
#endif
case 0x08:
/* mov to cr8 */
vlapic_set_cr8(vcpu->arch_vcpu.vlapic, *regptr);
@ -324,21 +318,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
return 0;
}
#if 0
/*
* VMX_PROCBASED_CTLS_INVLPG is not enabled in the VM-execution
* control therefore we don't need it's handler.
*
* INVLPG: this instruction Invalidates any translation lookaside buffer
*/
int invlpg_handler(__unused struct vcpu *vcpu)
{
pr_fatal("INVLPG executed");
return 0;
}
#endif
/*
* XSETBV instruction set's the XCR0 that is used to tell for which
* components states can be saved on a context switch using xsave.