Revision 625a5bef hw/virtio-balloon.h

b/hw/virtio-balloon.h
25 25

  
26 26
/* The feature bitmap for virtio balloon */
27 27
#define VIRTIO_BALLOON_F_MUST_TELL_HOST 0 /* Tell before reclaiming pages */
28
#define VIRTIO_BALLOON_F_STATS_VQ 1       /* Memory stats virtqueue */
28 29

  
29 30
/* Size of a PFN in the balloon interface. */
30 31
#define VIRTIO_BALLOON_PFN_SHIFT 12
......
37 38
    uint32_t actual;
38 39
};
39 40

  
41
/* Memory Statistics */
42
#define VIRTIO_BALLOON_S_SWAP_IN  0   /* Amount of memory swapped in */
43
#define VIRTIO_BALLOON_S_SWAP_OUT 1   /* Amount of memory swapped out */
44
#define VIRTIO_BALLOON_S_MAJFLT   2   /* Number of major faults */
45
#define VIRTIO_BALLOON_S_MINFLT   3   /* Number of minor faults */
46
#define VIRTIO_BALLOON_S_MEMFREE  4   /* Total amount of free memory */
47
#define VIRTIO_BALLOON_S_MEMTOT   5   /* Total amount of memory */
48
#define VIRTIO_BALLOON_S_NR       6
49

  
50
typedef struct VirtIOBalloonStat {
51
    uint16_t tag;
52
    uint64_t val;
53
} __attribute__((packed)) VirtIOBalloonStat;
54

  
40 55
#endif

Also available in: Unified diff