Displaying 2 results from an estimated 2 matches for "target_ramsize".
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...quot;pc.h"
+
+typedef struct VirtIOBalloon
+{
+ VirtIODevice vdev;
+} VirtIOBalloon;
+
+struct virtio_balloon_hdr
+{
+ uint8_t cmd;
+ uint8_t status;
+};
+
+struct virtio_balloon_config
+{
+ uint32_t target_nrpages;
+};
+
+VirtIOBalloon *virtio_balloon;
+
+extern int64_t ram_size;
+int64_t target_ramsize;
+
+#define VIRTIO_ID_BALLOON 3
+
+#define CMD_BALLOON_INFLATE 0x1
+#define CMD_BALLOON_DEFLATE 0x2
+
+static VirtIOBalloon *to_virtio_balloon(VirtIODevice *vdev)
+{
+ return (VirtIOBalloon *)vdev;
+}
+
+static void virtio_balloon_queue(VirtIODevice *vdev, VirtQueue *vq)
+{
+ VirtIOBalloon *n = to_...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...quot;pc.h"
+
+typedef struct VirtIOBalloon
+{
+ VirtIODevice vdev;
+} VirtIOBalloon;
+
+struct virtio_balloon_hdr
+{
+ uint8_t cmd;
+ uint8_t status;
+};
+
+struct virtio_balloon_config
+{
+ uint32_t target_nrpages;
+};
+
+VirtIOBalloon *virtio_balloon;
+
+extern int64_t ram_size;
+int64_t target_ramsize;
+
+#define VIRTIO_ID_BALLOON 3
+
+#define CMD_BALLOON_INFLATE 0x1
+#define CMD_BALLOON_DEFLATE 0x2
+
+static VirtIOBalloon *to_virtio_balloon(VirtIODevice *vdev)
+{
+ return (VirtIOBalloon *)vdev;
+}
+
+static void virtio_balloon_queue(VirtIODevice *vdev, VirtQueue *vq)
+{
+ VirtIOBalloon *n = to_...