diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2013-04-20 08:52:36 (GMT) |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-22 09:53:42 (GMT) |
commit | 384bb783275145b70d769acf4c687957d1c61802 (patch) | |
tree | 8db3286f89b5a1cf38ba2e3231b94c822b229199 /arch/x86/include | |
parent | ea8ceb8354e1c84a13cf2a8e915dc74f96759393 (diff) | |
download | linux-fsl-qoriq-384bb783275145b70d769acf4c687957d1c61802.tar.xz |
KVM: nVMX: Validate EFER values for VM_ENTRY/EXIT_LOAD_IA32_EFER
As we may emulate the loading of EFER on VM-entry and VM-exit, implement
the checks that VMX performs on the guest and host values on vmlaunch/
vmresume. Factor out kvm_valid_efer for this purpose which checks for
set reserved bits.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 599f98b..18635ae 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -809,6 +809,7 @@ static inline int emulate_instruction(struct kvm_vcpu *vcpu, } void kvm_enable_efer_bits(u64); +bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer); int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *data); int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr); |