diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
| -rw-r--r-- | arch/x86/kvm/x86.c | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index f7628555f036..4ea644827b8a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -104,7 +104,6 @@ static u64 __read_mostly cr4_reserved_bits = CR4_RESERVED_BITS;                                      KVM_X2APIC_API_DISABLE_BROADCAST_QUIRK)  static void update_cr8_intercept(struct kvm_vcpu *vcpu); -static void kvm_update_dr6(struct kvm_vcpu *vcpu);  static void process_nmi(struct kvm_vcpu *vcpu);  static void enter_smm(struct kvm_vcpu *vcpu);  static void __kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags); @@ -1048,7 +1047,7 @@ static void kvm_update_dr0123(struct kvm_vcpu *vcpu)  	}  } -static void kvm_update_dr6(struct kvm_vcpu *vcpu) +void kvm_update_dr6(struct kvm_vcpu *vcpu)  {  	if (!(vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP))  		kvm_x86_ops.set_dr6(vcpu, vcpu->arch.dr6); @@ -1129,10 +1128,7 @@ int kvm_get_dr(struct kvm_vcpu *vcpu, int dr, unsigned long *val)  	case 4:  		/* fall through */  	case 6: -		if (vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP) -			*val = vcpu->arch.dr6; -		else -			*val = kvm_x86_ops.get_dr6(vcpu); +		*val = vcpu->arch.dr6;  		break;  	case 5:  		/* fall through */  | 
