mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
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:
@@ -296,12 +296,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
|
|||||||
/* mov to cr4 */
|
/* mov to cr4 */
|
||||||
vmx_write_cr4(vcpu, *regptr);
|
vmx_write_cr4(vcpu, *regptr);
|
||||||
break;
|
break;
|
||||||
#if 0
|
|
||||||
case 0x14:
|
|
||||||
/* mov from cr4 (this should not happen) */
|
|
||||||
case 0x10:
|
|
||||||
/* mov from cr0 (this should not happen) */
|
|
||||||
#endif
|
|
||||||
case 0x08:
|
case 0x08:
|
||||||
/* mov to cr8 */
|
/* mov to cr8 */
|
||||||
vlapic_set_cr8(vcpu->arch_vcpu.vlapic, *regptr);
|
vlapic_set_cr8(vcpu->arch_vcpu.vlapic, *regptr);
|
||||||
@@ -324,21 +318,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
|
|||||||
return 0;
|
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
|
* XSETBV instruction set's the XCR0 that is used to tell for which
|
||||||
* components states can be saved on a context switch using xsave.
|
* components states can be saved on a context switch using xsave.
|
||||||
|
|||||||
Reference in New Issue
Block a user