@@ -404,48 +404,6 @@ static inline bool vmcb12_is_intercept(struct vmcb_ctrl_area_cached *control, u3
404
404
return test_bit (bit , (unsigned long * )& control -> intercepts );
405
405
}
406
406
407
- static inline void set_dr_intercepts (struct vcpu_svm * svm )
408
- {
409
- struct vmcb * vmcb = svm -> vmcb01 .ptr ;
410
-
411
- if (!sev_es_guest (svm -> vcpu .kvm )) {
412
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR0_READ );
413
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR1_READ );
414
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR2_READ );
415
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR3_READ );
416
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR4_READ );
417
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR5_READ );
418
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR6_READ );
419
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR0_WRITE );
420
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR1_WRITE );
421
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR2_WRITE );
422
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR3_WRITE );
423
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR4_WRITE );
424
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR5_WRITE );
425
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR6_WRITE );
426
- }
427
-
428
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR7_READ );
429
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR7_WRITE );
430
-
431
- recalc_intercepts (svm );
432
- }
433
-
434
- static inline void clr_dr_intercepts (struct vcpu_svm * svm )
435
- {
436
- struct vmcb * vmcb = svm -> vmcb01 .ptr ;
437
-
438
- vmcb -> control .intercepts [INTERCEPT_DR ] = 0 ;
439
-
440
- /* DR7 access must remain intercepted for an SEV-ES guest */
441
- if (sev_es_guest (svm -> vcpu .kvm )) {
442
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR7_READ );
443
- vmcb_set_intercept (& vmcb -> control , INTERCEPT_DR7_WRITE );
444
- }
445
-
446
- recalc_intercepts (svm );
447
- }
448
-
449
407
static inline void set_exception_intercept (struct vcpu_svm * svm , u32 bit )
450
408
{
451
409
struct vmcb * vmcb = svm -> vmcb01 .ptr ;
0 commit comments