search for: balloon_update_target

Displaying 2 results from an estimated 2 matches for "balloon_update_target".

2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...RTIO_ID_BALLOON, + 0xff, 0x80, 0x00, 4, + sizeof(VirtIOBalloon)); + + virtio_add_queue(&n->vdev, 128, virtio_balloon_queue); + n->vdev.update_config = virtio_balloon_update_config; + target_ramsize = ram_size; + virtio_balloon = n; + + return &n->vdev; +} + +int balloon_update_target(int64_t target) +{ + VirtIODevice *vdev = &virtio_balloon->vdev; + target_ramsize = target; + + vdev->update_config(vdev, vdev->config); + qemu_set_irq(vdev->pci_dev.irq[0], 1); + + return 1; +} Index: kvm-userspace/qemu/migration.c ==================================================...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...RTIO_ID_BALLOON, + 0xff, 0x80, 0x00, 4, + sizeof(VirtIOBalloon)); + + virtio_add_queue(&n->vdev, 128, virtio_balloon_queue); + n->vdev.update_config = virtio_balloon_update_config; + target_ramsize = ram_size; + virtio_balloon = n; + + return &n->vdev; +} + +int balloon_update_target(int64_t target) +{ + VirtIODevice *vdev = &virtio_balloon->vdev; + target_ramsize = target; + + vdev->update_config(vdev, vdev->config); + qemu_set_irq(vdev->pci_dev.irq[0], 1); + + return 1; +} Index: kvm-userspace/qemu/migration.c ==================================================...