Revert "ANDROID: KVM: arm64: balloon: Notify hyp before reporting free pages to host"

This reverts commit a06477d464.

The unnecessarily generic mem_relinquish api is being replaced with
something specific to virtio_balloon.

Bug: 315173520
Bug: 357781595
Change-Id: Idfa64dd5617516cf2b5d42175c412d73d7d086c5
Signed-off-by: Keir Fraser <keirf@google.com>
This commit is contained in:
Keir Fraser
2025-03-11 15:08:48 +00:00
parent 62297a33bc
commit 8413f3c999
+1 -6
View File
@@ -7,7 +7,6 @@
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/scatterlist.h>
#include <linux/mem_relinquish.h>
#include "page_reporting.h"
#include "internal.h"
@@ -153,7 +152,7 @@ page_reporting_cycle(struct page_reporting_dev_info *prdev, struct zone *zone,
unsigned int page_len = PAGE_SIZE << order;
struct page *page, *next;
long budget;
int i, err = 0;
int err = 0;
/*
* Perform early check, if free area is empty there is
@@ -208,10 +207,6 @@ page_reporting_cycle(struct page_reporting_dev_info *prdev, struct zone *zone,
--(*offset);
sg_set_page(&sgl[*offset], page, page_len, 0);
/* Notify hyp that these pages are reclaimable. */
for (i = 0; i < (1<<order); i++)
page_relinquish(page+i);
continue;
}