Skip to content

Commit 8324c3d

Browse files
Zenghui YuMarc Zyngier
authored andcommitted
KVM: arm/arm64: Comments cleanup in mmu.c
Some comments in virt/kvm/arm/mmu.c are outdated. Update them to reflect the current state of the code. Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> [maz: commit message tidy-up] Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent d9ea27a commit 8324c3d

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

virt/kvm/arm/mmu.c

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ static bool kvm_is_device_pfn(unsigned long pfn)
102102
* @addr: IPA
103103
* @pmd: pmd pointer for IPA
104104
*
105-
* Function clears a PMD entry, flushes addr 1st and 2nd stage TLBs. Marks all
106-
* pages in the range dirty.
105+
* Function clears a PMD entry, flushes addr 1st and 2nd stage TLBs.
107106
*/
108107
static void stage2_dissolve_pmd(struct kvm *kvm, phys_addr_t addr, pmd_t *pmd)
109108
{
@@ -121,8 +120,7 @@ static void stage2_dissolve_pmd(struct kvm *kvm, phys_addr_t addr, pmd_t *pmd)
121120
* @addr: IPA
122121
* @pud: pud pointer for IPA
123122
*
124-
* Function clears a PUD entry, flushes addr 1st and 2nd stage TLBs. Marks all
125-
* pages in the range dirty.
123+
* Function clears a PUD entry, flushes addr 1st and 2nd stage TLBs.
126124
*/
127125
static void stage2_dissolve_pud(struct kvm *kvm, phys_addr_t addr, pud_t *pudp)
128126
{
@@ -899,9 +897,8 @@ int create_hyp_exec_mappings(phys_addr_t phys_addr, size_t size,
899897
* kvm_alloc_stage2_pgd - allocate level-1 table for stage-2 translation.
900898
* @kvm: The KVM struct pointer for the VM.
901899
*
902-
* Allocates only the stage-2 HW PGD level table(s) (can support either full
903-
* 40-bit input addresses or limited to 32-bit input addresses). Clears the
904-
* allocated pages.
900+
* Allocates only the stage-2 HW PGD level table(s) of size defined by
901+
* stage2_pgd_size(kvm).
905902
*
906903
* Note we don't need locking here as this is only called when the VM is
907904
* created, which can only be done once.
@@ -1478,13 +1475,11 @@ static void stage2_wp_pmds(struct kvm *kvm, pud_t *pud,
14781475
}
14791476

14801477
/**
1481-
* stage2_wp_puds - write protect PGD range
1482-
* @pgd: pointer to pgd entry
1483-
* @addr: range start address
1484-
* @end: range end address
1485-
*
1486-
* Process PUD entries, for a huge PUD we cause a panic.
1487-
*/
1478+
* stage2_wp_puds - write protect PGD range
1479+
* @pgd: pointer to pgd entry
1480+
* @addr: range start address
1481+
* @end: range end address
1482+
*/
14881483
static void stage2_wp_puds(struct kvm *kvm, pgd_t *pgd,
14891484
phys_addr_t addr, phys_addr_t end)
14901485
{

0 commit comments

Comments
 (0)