mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
Revert "ANDROID: virtio_balloon: New module parameter "pkvm""
This reverts commit 87bcd3edf3.
Reason for revert: Memory reclaim capability will be checked by the
host before configuring the virtio_balloon device.
Bug: 240239989
Change-Id: I03e7c39ec6d671babeace4040138b416c7e201cf
Signed-off-by: Keir Fraser <keirf@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
committed by
Quentin Perret
parent
5584b944ab
commit
8260bd357c
@@ -18,11 +18,6 @@
|
||||
#include <linux/wait.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/page_reporting.h>
|
||||
#include <linux/mem_relinquish.h>
|
||||
|
||||
static bool pkvm;
|
||||
module_param(pkvm, bool, 0);
|
||||
MODULE_PARM_DESC(pkvm, "Running on PKVM. Must use MEM_RELINQUISH.");
|
||||
|
||||
/*
|
||||
* Balloon device works in 4K page units. So each page is pointed to by
|
||||
@@ -873,12 +868,6 @@ static int virtballoon_probe(struct virtio_device *vdev)
|
||||
struct virtio_balloon *vb;
|
||||
int err;
|
||||
|
||||
if (pkvm && !kvm_has_memrelinquish_services()) {
|
||||
dev_err(&vdev->dev, "%s failure: pkvm but no memrelinquish\n",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!vdev->config->get) {
|
||||
dev_err(&vdev->dev, "%s failure: config access disabled\n",
|
||||
__func__);
|
||||
|
||||
Reference in New Issue
Block a user