diff options
author | Juergen Gross <jgross@suse.com> | 2021-07-30 09:18:03 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2021-08-30 11:57:48 +0200 |
commit | 2526cff7c4f944924f39043dc657189eccc4fe5c (patch) | |
tree | b95ccf001740f3ad8740ad88243fa3301d6f63ad /arch/x86/xen/mmu_pv.c | |
parent | xen: check required Xen features (diff) | |
download | linux-2526cff7c4f944924f39043dc657189eccc4fe5c.tar.xz linux-2526cff7c4f944924f39043dc657189eccc4fe5c.zip |
xen: assume XENFEAT_mmu_pt_update_preserve_ad being set for pv guests
XENFEAT_mmu_pt_update_preserve_ad is always set in Xen 4.0 and newer.
Remove coding assuming it might be zero.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210730071804.4302-3-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/xen/mmu_pv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index ade789e73ee4..1df5f01529e5 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -2099,8 +2099,8 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = { .set_pte = xen_set_pte_init, .set_pmd = xen_set_pmd_hyper, - .ptep_modify_prot_start = __ptep_modify_prot_start, - .ptep_modify_prot_commit = __ptep_modify_prot_commit, + .ptep_modify_prot_start = xen_ptep_modify_prot_start, + .ptep_modify_prot_commit = xen_ptep_modify_prot_commit, .pte_val = PV_CALLEE_SAVE(xen_pte_val), .pgd_val = PV_CALLEE_SAVE(xen_pgd_val), |