|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [mini-os master] mini-os: fix bug in ballooning on PVH
commit 5bcb28aaeba1c2506a82fab0cdad0201cd9b54b3
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Tue Jun 21 09:23:14 2022 +0200
Commit: Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Mon Jul 4 09:52:38 2022 +0100
mini-os: fix bug in ballooning on PVH
There is a subtle bug in ballooning code for PVH: in case ballooning
extends above a non-RAM area of the memory map, wrong pages will be
used.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
---
balloon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/balloon.c b/balloon.c
index 6ad0764..55be814 100644
--- a/balloon.c
+++ b/balloon.c
@@ -124,7 +124,7 @@ int balloon_up(unsigned long n_pages)
for ( pfn = 0; pfn < rc; pfn++ )
{
arch_pfn_add(start_pfn + pfn, balloon_frames[pfn]);
- free_page(pfn_to_virt(nr_mem_pages + pfn));
+ free_page(pfn_to_virt(start_pfn + pfn));
}
nr_mem_pages += rc;
--
generated by git-patchbot for /home/xen/git/mini-os.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |