Skip to content

Commit 13ca916

Browse files
Dmytro Malukacxdong
authored andcommitted
SQUASHME: pKVM: x86: Use host_mmu_pte_prot() in pkvm_hyp_donate_host_mmio_locked()
Fixes: 1bcae0c ("pKVM: x86: Add MMIO donation from hyp to host") Signed-off-by: Dmytro Maluka <dmaluka@google.com>
1 parent cbdd8bb commit 13ca916

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/kvm/pkvm/mmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,7 @@ void pkvm_hyp_donate_host(unsigned long phys, unsigned long size, bool clear)
607607
*/
608608
int pkvm_hyp_donate_host_mmio_locked(unsigned long phys, unsigned long size)
609609
{
610-
u64 prot = host_mmu.pgt_ops->calc_pte_perm(true, true, true) |
611-
host_mmu.pgt_ops->calc_pte_memtype(true) |
610+
u64 prot = host_mmu_pte_prot(true) |
612611
host_mmu.pgt_ops->pte_mk_pgstate(PKVM_PAGE_OWNED);
613612
int ret;
614613

0 commit comments

Comments
 (0)