#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/workqueue.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <asm/hypervisor.h>
Go to the source code of this file.
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define STATS_INC |
( |
|
stat | ) |
|
#define VMW_BALLOON_CMD_GET_TARGET 1 |
#define VMW_BALLOON_CMD_GUEST_ID 4 |
#define VMW_BALLOON_CMD_LOCK 2 |
#define VMW_BALLOON_CMD_START 0 |
#define VMW_BALLOON_CMD_UNLOCK 3 |
#define VMW_BALLOON_ERROR_BUSY 8 |
#define VMW_BALLOON_ERROR_CMD_INVALID 1 |
#define VMW_BALLOON_ERROR_PPN_INVALID 2 |
#define VMW_BALLOON_ERROR_PPN_LOCKED 3 |
#define VMW_BALLOON_ERROR_PPN_NOTNEEDED 6 |
#define VMW_BALLOON_ERROR_PPN_PINNED 5 |
#define VMW_BALLOON_ERROR_PPN_UNLOCKED 4 |
#define VMW_BALLOON_ERROR_RESET 7 |
#define VMW_BALLOON_FAILURE -1 |
#define VMW_BALLOON_GUEST_ID 1 /* Linux */ |
#define VMW_BALLOON_HV_MAGIC 0x456c6d6f |
#define VMW_BALLOON_HV_PORT 0x5670 |
#define VMW_BALLOON_MAX_REFUSED 16 |
#define VMW_BALLOON_NOSLEEP_ALLOC_MAX 16384U |
#define VMW_BALLOON_PROTOCOL_VERSION 2 |
#define VMW_BALLOON_RATE_ALLOC_INC 16U |
#define VMW_BALLOON_RATE_ALLOC_MAX 2048U |
#define VMW_BALLOON_RATE_ALLOC_MIN 512U |
#define VMW_BALLOON_RATE_FREE_INC 16U |
#define VMW_BALLOON_RATE_FREE_MAX 16384U |
#define VMW_BALLOON_RATE_FREE_MIN 512U |
#define VMW_BALLOON_SLOW_CYCLES 4 |
#define VMW_BALLOON_SUCCESS 0 |
#define VMW_BALLOON_YIELD_THRESHOLD 1024 |
Value:({ \
unsigned long __stat, __dummy1, __dummy2; \
__asm__ __volatile__ ("inl (%%dx)" : \
"=a"(__stat), \
"=c"(__dummy1), \
"=d"(__dummy2), \
"1"(VMW_BALLOON_CMD_##
cmd), \
"memory"); \
})
Definition at line 133 of file vmw_balloon.c.
MODULE_ALIAS |
( |
"dmi:*:svnVMware*:*" |
| ) |
|
MODULE_ALIAS |
( |
"vmware_vmmemctl" |
| ) |
|
MODULE_AUTHOR |
( |
" |
VMware, |
|
|
Inc." |
|
|
) |
| |
module_exit |
( |
vmballoon_exit |
| ) |
|
module_init |
( |
vmballoon_init |
| ) |
|
MODULE_VERSION |
( |
"1.2.1.3-k" |
| ) |
|