virtio_balloon.h 493 B

123456789101112131415161718
  1. #ifndef _LINUX_VIRTIO_BALLOON_H
  2. #define _LINUX_VIRTIO_BALLOON_H
  3. #include <linux/virtio_config.h>
  4. /* The ID for virtio_balloon */
  5. #define VIRTIO_ID_BALLOON 5
  6. /* The feature bitmap for virtio balloon */
  7. #define VIRTIO_BALLOON_F_MUST_TELL_HOST 0 /* Tell before reclaiming pages */
  8. struct virtio_balloon_config
  9. {
  10. /* Number of pages host wants Guest to give up. */
  11. __le32 num_pages;
  12. /* Number of pages we've actually got in balloon. */
  13. __le32 actual;
  14. };
  15. #endif /* _LINUX_VIRTIO_BALLOON_H */