404

[ Avaa Bypassed ]




Upload:

Command:

botdev@52.15.57.203: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 * Xen balloon functionality
 */

#define RETRY_UNLIMITED	0

struct balloon_stats {
	/* We aim for 'current allocation' == 'target allocation'. */
	unsigned long current_pages;
	unsigned long target_pages;
	unsigned long target_unpopulated;
	/* Number of pages in high- and low-memory balloons. */
	unsigned long balloon_low;
	unsigned long balloon_high;
	unsigned long total_pages;
	unsigned long schedule_delay;
	unsigned long max_schedule_delay;
	unsigned long retry_count;
	unsigned long max_retry_count;
};

extern struct balloon_stats balloon_stats;

void balloon_set_new_target(unsigned long target);

int alloc_xenballooned_pages(int nr_pages, struct page **pages);
void free_xenballooned_pages(int nr_pages, struct page **pages);

struct device;
#ifdef CONFIG_XEN_SELFBALLOONING
extern int register_xen_selfballooning(struct device *dev);
#else
static inline int register_xen_selfballooning(struct device *dev)
{
	return -ENOSYS;
}
#endif

#ifdef CONFIG_XEN_BALLOON
void xen_balloon_init(void);
#else
static inline void xen_balloon_init(void)
{
}
#endif

Filemanager

Name Type Size Permission Actions
arm Folder 0755
interface Folder 0755
acpi.h File 3.41 KB 0644
balloon.h File 1.15 KB 0644
events.h File 5.14 KB 0644
features.h File 502 B 0644
grant_table.h File 9.99 KB 0644
hvc-console.h File 518 B 0644
hvm.h File 1.29 KB 0644
page.h File 1.34 KB 0644
platform_pci.h File 2.04 KB 0644
swiotlb-xen.h File 271 B 0644
tmem.h File 349 B 0644
xen-ops.h File 5.96 KB 0644
xen.h File 972 B 0644
xenbus.h File 8.54 KB 0644
xenbus_dev.h File 1.8 KB 0644