]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
xen: remove a confusing comment on auto-translated guest I/O
authorPetr Tesarik <petr.tesarik.ext@huawei.com>
Wed, 2 Aug 2023 16:31:51 +0000 (18:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:58 +0000 (13:49 +0100)
[ Upstream commit d826c9e61c99120f8996f8fed6417167e32eb922 ]

After removing the conditional return from xen_create_contiguous_region(),
the accompanying comment was left in place, but it now precedes an
unrelated conditional and confuses readers.

Fixes: 989513a735f5 ("xen: cleanup pvh leftovers from pv-only sources")
Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20230802163151.1486-1-petrtesarik@huaweicloud.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Stable-dep-of: e93ec87286bd ("x86/xen: allow larger contiguous memory regions in PV guests")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/xen/mmu_pv.c

index ee29fb558f2e66368da45ce590582457638e465e..22b619f89a1d7af59a23c2df1cb87b19150e4c66 100644 (file)
@@ -2302,12 +2302,6 @@ int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
        int            success;
        unsigned long vstart = (unsigned long)phys_to_virt(pstart);
 
-       /*
-        * Currently an auto-translated guest will not perform I/O, nor will
-        * it require PAE page directories below 4GB. Therefore any calls to
-        * this function are redundant and can be ignored.
-        */
-
        if (unlikely(order > MAX_CONTIG_ORDER))
                return -ENOMEM;