]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/include/asm/kvm_host.h
KVM: SVM: Implement VIRT_SPEC_CTRL support for SSBD
[mirror_ubuntu-artful-kernel.git] / arch / x86 / include / asm / kvm_host.h
index 92c9032502d87b3291268f2c98b04ec4cb59854d..ae5552cb7a56d499703b927f02cfa37a23b2a8fe 100644 (file)
@@ -628,6 +628,8 @@ struct kvm_vcpu_arch {
        u64 mcg_ext_ctl;
        u64 *mce_banks;
 
+       u64 spec_ctrl;
+
        /* Cache MMIO info */
        u64 mmio_gva;
        unsigned access;
@@ -904,7 +906,7 @@ struct kvm_x86_ops {
        int (*hardware_setup)(void);               /* __init */
        void (*hardware_unsetup)(void);            /* __exit */
        bool (*cpu_has_accelerated_tpr)(void);
-       bool (*cpu_has_high_real_mode_segbase)(void);
+       bool (*has_emulated_msr)(int index);
        void (*cpuid_update)(struct kvm_vcpu *vcpu);
 
        int (*vm_init)(struct kvm *kvm);
@@ -1437,4 +1439,7 @@ static inline int kvm_cpu_get_apicid(int mps_cpu)
 #endif
 }
 
+void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm,
+               unsigned long start, unsigned long end);
+
 #endif /* _ASM_X86_KVM_HOST_H */