xen: Fix emfn calculation in init_domheap_pages()
PATCH 1/1 xen: Fix emfn calculation in init_domheap_pages()
From: Oleksandr Tyshchenko <[email protected]>
The "end" address must be rounded down before shifting, otherwise we will insert wrong page range to a heap if address isn't page aligned.
It seems that a copy-paste mistake took place in the following commit:0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some of page_alloc.c to typesafe MFN
--- xen/common/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/page_alloc.c +1 -1
@@ -2166,7 +2166,7 @@ void init_domheap_pages(paddr_t ps, paddr_t pe)ASSERT (!in_irq ()); smfn =maddr_to_mfn (round_pgup (ps)); - emfn =maddr_to_mfn (round_pgup (pe)); + emfn =maddr_to_mfn (round_pgdown (pe));if (mfn_x (emfn) <=mfn_x (smfn) )return ;
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 16.04.18 at 13:29, <[email protected]> wrote:
From: Oleksandr Tyshchenko <[email protected]>
The "end" address must be rounded down before shifting, otherwise we will insert wrong page range to a heap if address isn't page aligned.
Quoted 5 lines
It seems that a copy-paste mistake took place in the following commit:
0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some ofpage_alloc.cto typesafe MFNSigned-off-by Oleksandr Tyshchenko <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines · On 16.04.18 at 13:52, <[email protected]> wrote:
Quoted 1 line · On 16.04.18 at 13:29, <[email protected]> wrote:
From: Oleksandr Tyshchenko <[email protected]>
The "end" address must be rounded down before shifting, otherwise we will insert wrong page range to a heap if address isn't page aligned.
Quoted 7 lines
Quoted 5 lines
It seems that a copy-paste mistake took place in the following commit:
0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some ofpage_alloc.cto typesafe MFNSigned-off-by Oleksandr Tyshchenko <[email protected]>Reviewed-by Jan Beulich <[email protected]>
Oh, and Cc Jürgen.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · Jan Beulich
Quoted 12 lines
Quoted 12 lines
Quoted 2 lines · On 16.04.18 at 13:52, <[email protected]> wrote:
Quoted 1 line · On 16.04.18 at 13:29, <[email protected]> wrote:
From: Oleksandr Tyshchenko <[email protected]>
The "end" address must be rounded down before shifting, otherwise we will insert wrong page range to a heap if address isn't page aligned.
It seems that a copy-paste mistake took place in the following commit:
0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some ofpage_alloc.cto typesafe MFN
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Oleksandr Tyshchenko <[email protected]>Reviewed-by Jan Beulich <[email protected]>Oh, and Cc Jürgen.
Thanks, just saw it myself. :-)
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 17 lines · Juergen Gross
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 8 lines
Quoted 2 lines · On 16.04.18 at 13:52, <[email protected]> wrote:
Quoted 1 line · On 16.04.18 at 13:29, <[email protected]> wrote:
From: Oleksandr Tyshchenko <[email protected]>
The "end" address must be rounded down before shifting, otherwise we will insert wrong page range to a heap if address isn't page aligned.
Quoted 5 lines
It seems that a copy-paste mistake took place in the following commit:
0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some ofpage_alloc.cto typesafe MFNSigned-off-by Oleksandr Tyshchenko <[email protected]>Reviewed-by Jan Beulich <[email protected]>
Quoted 8 lines
Quoted 1 line
Oh, and Cc Jürgen.
Thanks, just saw it myself. :-)
Release-acked-by Juergen Gross <[email protected]>Juergen
Thank you.
Signature · 8 lines
Regards, Oleksandr Tyshchenko _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel