4 * Copyright IBM, Corp. 2007-2008
7 * Anthony Liguori <aliguori@us.ibm.com>
8 * Rusty Russell <rusty@rustcorp.com.au>
10 * This work is licensed under the terms of the GNU GPL, version 2. See
11 * the COPYING file in the top-level directory.
15 #ifndef _QEMU_VIRTIO_BALLOON_H
16 #define _QEMU_VIRTIO_BALLOON_H
21 /* from Linux's linux/virtio_balloon.h */
23 /* The ID for virtio_balloon */
24 #define VIRTIO_ID_BALLOON 5
26 /* The feature bitmap for virtio balloon */
27 #define VIRTIO_BALLOON_F_MUST_TELL_HOST 0 /* Tell before reclaiming pages */
29 /* Size of a PFN in the balloon interface. */
30 #define VIRTIO_BALLOON_PFN_SHIFT 12
32 struct virtio_balloon_config
34 /* Number of pages host wants Guest to give up. */
36 /* Number of pages we've actually got in balloon. */
40 void *virtio_balloon_init(PCIBus
*bus
);