search for: balloon_plist

Displaying 4 results from an estimated 4 matches for "balloon_plist".

2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...+#define VIRTIO_MAX_SG 2 + +struct virtballoon { + struct virtio_device *vdev; + struct virtqueue *vq; + struct task_struct *balloon_thread; + wait_queue_head_t balloon_wait; + wait_queue_head_t rmmod_wait; + uint32_t target_nrpages; + atomic_t inflight_bufs; + int balloon_size; + struct list_head balloon_plist; + struct list_head balloon_work; + spinlock_t plist_lock; + spinlock_t queue_lock; + struct list_head list; +}; + +struct balloon_buf *alloc_balloon_buf(struct virtio_device *vdev, gfp_t flags) +{ + struct balloon_buf *buf; + + buf = kzalloc(sizeof(struct balloon_buf), flags); + if (!buf) + dev_p...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...+#define VIRTIO_MAX_SG 2 + +struct virtballoon { + struct virtio_device *vdev; + struct virtqueue *vq; + struct task_struct *balloon_thread; + wait_queue_head_t balloon_wait; + wait_queue_head_t rmmod_wait; + uint32_t target_nrpages; + atomic_t inflight_bufs; + int balloon_size; + struct list_head balloon_plist; + struct list_head balloon_work; + spinlock_t plist_lock; + spinlock_t queue_lock; + struct list_head list; +}; + +struct balloon_buf *alloc_balloon_buf(struct virtio_device *vdev, gfp_t flags) +{ + struct balloon_buf *buf; + + buf = kzalloc(sizeof(struct balloon_buf), flags); + if (!buf) + dev_p...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...uot;GPL"); +MODULE_VERSION("1"); + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static int kvm_balloon_debug; + +#define DEBUG +#ifdef DEBUG +#define dprintk(str...) if (kvm_balloon_debug) printk(str) +#else +#define dprintk(str...) +#endif + +static LIST_HEAD(balloon_plist); +static LIST_HEAD(balloon_work); +static int balloon_size = 0; +static DEFINE_SPINLOCK(balloon_plist_lock); +static DEFINE_SPINLOCK(balloon_queue_lock); + +struct virtio_balloon_hdr { + uint8_t cmd; + uint8_t status; +}; + +#define BALLOON_DATA_SIZE 200 + +struct balloon_buf { + struct virtio_bal...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...uot;GPL"); +MODULE_VERSION("1"); + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static int kvm_balloon_debug; + +#define DEBUG +#ifdef DEBUG +#define dprintk(str...) if (kvm_balloon_debug) printk(str) +#else +#define dprintk(str...) +#endif + +static LIST_HEAD(balloon_plist); +static LIST_HEAD(balloon_work); +static int balloon_size = 0; +static DEFINE_SPINLOCK(balloon_plist_lock); +static DEFINE_SPINLOCK(balloon_queue_lock); + +struct virtio_balloon_hdr { + uint8_t cmd; + uint8_t status; +}; + +#define BALLOON_DATA_SIZE 200 + +struct balloon_buf { + struct virtio_bal...