|
KVM
|
#include <linux/backing-dev.h>#include <linux/falloc.h>#include <linux/kvm_host.h>#include <linux/pagemap.h>#include <linux/anon_inodes.h>#include "kvm_mm.h"
Go to the source code of this file.
Classes | |
| struct | kvm_gmem |
Functions | |
| static struct folio * | kvm_gmem_get_folio (struct inode *inode, pgoff_t index) |
| static void | kvm_gmem_invalidate_begin (struct kvm_gmem *gmem, pgoff_t start, pgoff_t end) |
| static void | kvm_gmem_invalidate_end (struct kvm_gmem *gmem, pgoff_t start, pgoff_t end) |
| static long | kvm_gmem_punch_hole (struct inode *inode, loff_t offset, loff_t len) |
| static long | kvm_gmem_allocate (struct inode *inode, loff_t offset, loff_t len) |
| static long | kvm_gmem_fallocate (struct file *file, int mode, loff_t offset, loff_t len) |
| static int | kvm_gmem_release (struct inode *inode, struct file *file) |
| static struct file * | kvm_gmem_get_file (struct kvm_memory_slot *slot) |
| void | kvm_gmem_init (struct module *module) |
| static int | kvm_gmem_migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode) |
| static int | kvm_gmem_error_folio (struct address_space *mapping, struct folio *folio) |
| static int | kvm_gmem_getattr (struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, u32 request_mask, unsigned int query_flags) |
| static int | kvm_gmem_setattr (struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) |
| static int | __kvm_gmem_create (struct kvm *kvm, loff_t size, u64 flags) |
| int | kvm_gmem_create (struct kvm *kvm, struct kvm_create_guest_memfd *args) |
| int | kvm_gmem_bind (struct kvm *kvm, struct kvm_memory_slot *slot, unsigned int fd, loff_t offset) |
| void | kvm_gmem_unbind (struct kvm_memory_slot *slot) |
| int | kvm_gmem_get_pfn (struct kvm *kvm, struct kvm_memory_slot *slot, gfn_t gfn, kvm_pfn_t *pfn, int *max_order) |
| EXPORT_SYMBOL_GPL (kvm_gmem_get_pfn) | |
Variables | |
| static struct file_operations | kvm_gmem_fops |
| static const struct address_space_operations | kvm_gmem_aops |
| static const struct inode_operations | kvm_gmem_iops |
|
static |
Definition at line 327 of file guest_memfd.c.


| EXPORT_SYMBOL_GPL | ( | kvm_gmem_get_pfn | ) |
|
static |
Definition at line 124 of file guest_memfd.c.


| int kvm_gmem_bind | ( | struct kvm * | kvm, |
| struct kvm_memory_slot * | slot, | ||
| unsigned int | fd, | ||
| loff_t | offset | ||
| ) |
| int kvm_gmem_create | ( | struct kvm * | kvm, |
| struct kvm_create_guest_memfd * | args | ||
| ) |
Definition at line 382 of file guest_memfd.c.

|
static |
Definition at line 270 of file guest_memfd.c.
|
static |
Definition at line 171 of file guest_memfd.c.

|
inlinestatic |
|
static |
| int kvm_gmem_get_pfn | ( | struct kvm * | kvm, |
| struct kvm_memory_slot * | slot, | ||
| gfn_t | gfn, | ||
| kvm_pfn_t * | pfn, | ||
| int * | max_order | ||
| ) |
Definition at line 485 of file guest_memfd.c.

|
static |
Definition at line 307 of file guest_memfd.c.
| void kvm_gmem_init | ( | struct module * | module | ) |
|
static |
Definition at line 51 of file guest_memfd.c.


|
static |
|
static |
Definition at line 262 of file guest_memfd.c.
|
static |
Definition at line 98 of file guest_memfd.c.


|
static |
|
static |
Definition at line 317 of file guest_memfd.c.
| void kvm_gmem_unbind | ( | struct kvm_memory_slot * | slot | ) |
Definition at line 459 of file guest_memfd.c.


|
static |
Definition at line 270 of file guest_memfd.c.
|
static |
Definition at line 240 of file guest_memfd.c.
|
static |
Definition at line 317 of file guest_memfd.c.