File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -296,12 +296,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
296
296
/* mov to cr4 */
297
297
vmx_write_cr4 (vcpu , * regptr );
298
298
break ;
299
- #if 0
300
- case 0x14 :
301
- /* mov from cr4 (this should not happen) */
302
- case 0x10 :
303
- /* mov from cr0 (this should not happen) */
304
- #endif
305
299
case 0x08 :
306
300
/* mov to cr8 */
307
301
vlapic_set_cr8 (vcpu -> arch_vcpu .vlapic , * regptr );
@@ -324,21 +318,6 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
324
318
return 0 ;
325
319
}
326
320
327
- #if 0
328
- /*
329
- * VMX_PROCBASED_CTLS_INVLPG is not enabled in the VM-execution
330
- * control therefore we don't need it's handler.
331
- *
332
- * INVLPG: this instruction Invalidates any translation lookaside buffer
333
- */
334
- int invlpg_handler (__unused struct vcpu * vcpu )
335
- {
336
- pr_fatal ("INVLPG executed" );
337
-
338
- return 0 ;
339
- }
340
- #endif
341
-
342
321
/*
343
322
* XSETBV instruction set's the XCR0 that is used to tell for which
344
323
* components states can be saved on a context switch using xsave.
You can’t perform that action at this time.
0 commit comments