x86.h (5a9f54435a488f8a1153efd36cccee3e7e0fc28b) | x86.h (404d5d7bff0d419fe11c7eaebca9ec8f25258f95) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef ARCH_X86_KVM_X86_H 3#define ARCH_X86_KVM_X86_H 4 5#include <linux/kvm_host.h> 6#include <asm/pvclock.h> 7#include "kvm_cache_regs.h" 8#include "kvm_emulate.h" --- 260 unchanged lines hidden (view full) --- 269bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data); 270int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data); 271int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); 272bool kvm_mtrr_check_gfn_range_consistency(struct kvm_vcpu *vcpu, gfn_t gfn, 273 int page_num); 274bool kvm_vector_hashing_enabled(void); 275int x86_emulate_instruction(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, 276 int emulation_type, void *insn, int insn_len); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef ARCH_X86_KVM_X86_H 3#define ARCH_X86_KVM_X86_H 4 5#include <linux/kvm_host.h> 6#include <asm/pvclock.h> 7#include "kvm_cache_regs.h" 8#include "kvm_emulate.h" --- 260 unchanged lines hidden (view full) --- 269bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data); 270int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data); 271int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); 272bool kvm_mtrr_check_gfn_range_consistency(struct kvm_vcpu *vcpu, gfn_t gfn, 273 int page_num); 274bool kvm_vector_hashing_enabled(void); 275int x86_emulate_instruction(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, 276 int emulation_type, void *insn, int insn_len); |
277enum exit_fastpath_completion handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vcpu); | 277fastpath_t handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vcpu); |
278 279extern u64 host_xcr0; 280extern u64 supported_xcr0; 281extern u64 supported_xss; 282 283static inline bool kvm_mpx_supported(void) 284{ 285 return (supported_xcr0 & (XFEATURE_MASK_BNDREGS | XFEATURE_MASK_BNDCSR)) --- 84 unchanged lines hidden --- | 278 279extern u64 host_xcr0; 280extern u64 supported_xcr0; 281extern u64 supported_xss; 282 283static inline bool kvm_mpx_supported(void) 284{ 285 return (supported_xcr0 & (XFEATURE_MASK_BNDREGS | XFEATURE_MASK_BNDCSR)) --- 84 unchanged lines hidden --- |