aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
authorGravatar Krish Sadhukhan <krish.sadhukhan@oracle.com> 2020-05-22 18:19:51 -0400
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2020-07-08 16:21:40 -0400
commitf5f6145e41d39c7fd04a17c3b2596c7abe933f10 (patch)
treeac25f39c23941c1d7697bf18cf0a16a186f9c3f0 /arch/x86/kvm/x86.h
parentKVM: X86: Do the same ignore_msrs check for feature msrs (diff)
downloadlinux-f5f6145e41d39c7fd04a17c3b2596c7abe933f10.tar.gz
linux-f5f6145e41d39c7fd04a17c3b2596c7abe933f10.tar.bz2
linux-f5f6145e41d39c7fd04a17c3b2596c7abe933f10.zip
KVM: x86: Move the check for upper 32 reserved bits of DR6 to separate function
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com> Message-Id: <20200522221954.32131-2-krish.sadhukhan@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.h')
-rw-r--r--arch/x86/kvm/x86.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
index 8d42dd0cf81e..31928bf18ba5 100644
--- a/arch/x86/kvm/x86.h
+++ b/arch/x86/kvm/x86.h
@@ -360,6 +360,11 @@ static inline bool kvm_dr7_valid(u64 data)
/* Bits [63:32] are reserved */
return !(data >> 32);
}
+static inline bool kvm_dr6_valid(u64 data)
+{
+ /* Bits [63:32] are reserved */
+ return !(data >> 32);
+}
void kvm_load_guest_xsave_state(struct kvm_vcpu *vcpu);
void kvm_load_host_xsave_state(struct kvm_vcpu *vcpu);