Commit c919e881 authored by Kai Huang's avatar Kai Huang Committed by Paolo Bonzini

KVM: x86/mmu: Rename reset_rsvds_bits_mask()

Rename reset_rsvds_bits_mask() to reset_guest_rsvds_bits_mask() to make
it clearer that it resets the reserved bits check for guest's page table
entries.
Signed-off-by: default avatarKai Huang <kai.huang@intel.com>
Message-Id: <efdc174b85d55598880064b8bf09245d3791031d.1650363789.git.kai.huang@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c9f3d9fb
...@@ -4442,8 +4442,8 @@ static bool guest_can_use_gbpages(struct kvm_vcpu *vcpu) ...@@ -4442,8 +4442,8 @@ static bool guest_can_use_gbpages(struct kvm_vcpu *vcpu)
guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES); guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES);
} }
static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, static void reset_guest_rsvds_bits_mask(struct kvm_vcpu *vcpu,
struct kvm_mmu *context) struct kvm_mmu *context)
{ {
__reset_rsvds_bits_mask(&context->guest_rsvd_check, __reset_rsvds_bits_mask(&context->guest_rsvd_check,
vcpu->arch.reserved_gpa_bits, vcpu->arch.reserved_gpa_bits,
...@@ -4742,7 +4742,7 @@ static void reset_guest_paging_metadata(struct kvm_vcpu *vcpu, ...@@ -4742,7 +4742,7 @@ static void reset_guest_paging_metadata(struct kvm_vcpu *vcpu,
if (!is_cr0_pg(mmu)) if (!is_cr0_pg(mmu))
return; return;
reset_rsvds_bits_mask(vcpu, mmu); reset_guest_rsvds_bits_mask(vcpu, mmu);
update_permission_bitmask(mmu, false); update_permission_bitmask(mmu, false);
update_pkru_bitmask(mmu); update_pkru_bitmask(mmu);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment