mmu.h (8120337a4c5502118e255b170799040eefe2f280) mmu.h (e7b7bdea77f3277fe49f714c983d0f38f7cb0d86)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __KVM_X86_MMU_H
3#define __KVM_X86_MMU_H
4
5#include <linux/kvm_host.h>
6#include "kvm_cache_regs.h"
7#include "cpuid.h"
8

--- 46 unchanged lines hidden (view full) ---

55
56 if (e < s)
57 return 0;
58
59 return ((2ULL << (e - s)) - 1) << s;
60}
61
62void kvm_mmu_set_mmio_spte_mask(u64 mmio_value, u64 mmio_mask, u64 access_mask);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __KVM_X86_MMU_H
3#define __KVM_X86_MMU_H
4
5#include <linux/kvm_host.h>
6#include "kvm_cache_regs.h"
7#include "cpuid.h"
8

--- 46 unchanged lines hidden (view full) ---

55
56 if (e < s)
57 return 0;
58
59 return ((2ULL << (e - s)) - 1) << s;
60}
61
62void kvm_mmu_set_mmio_spte_mask(u64 mmio_value, u64 mmio_mask, u64 access_mask);
63void kvm_mmu_set_ept_masks(bool has_ad_bits, bool has_exec_only);
63
64void
65reset_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, struct kvm_mmu *context);
66
67void kvm_init_mmu(struct kvm_vcpu *vcpu, bool reset_roots);
68void kvm_init_shadow_npt_mmu(struct kvm_vcpu *vcpu, u32 cr0, u32 cr4, u32 efer,
69 gpa_t nested_cr3);
70void kvm_init_shadow_ept_mmu(struct kvm_vcpu *vcpu, bool execonly,

--- 164 unchanged lines hidden ---
64
65void
66reset_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, struct kvm_mmu *context);
67
68void kvm_init_mmu(struct kvm_vcpu *vcpu, bool reset_roots);
69void kvm_init_shadow_npt_mmu(struct kvm_vcpu *vcpu, u32 cr0, u32 cr4, u32 efer,
70 gpa_t nested_cr3);
71void kvm_init_shadow_ept_mmu(struct kvm_vcpu *vcpu, bool execonly,

--- 164 unchanged lines hidden ---