search for: register_savevm

Displaying 20 results from an estimated 33 matches for "register_savevm".

Did you mean: unregister_savevm
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...urn -EINVAL; + + target = qemu_get_be64(f); + if (!target) + return -EINVAL; + + balloon_update_target(target); + + return 0; +} +#endif + static void ram_save_live(QEMUFile *f, void *opaque) { target_ulong addr; @@ -9378,6 +9402,9 @@ int main(int argc, char **argv) register_savevm("timer", 0, 2, timer_save, timer_load, NULL); register_savevm("ram", 0, 3, ram_save, ram_load, NULL); + if (kvm_allowed) + register_savevm("balloon", 0, 1, balloon_save, balloon_load, NULL); + init_ioports();
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...urn -EINVAL; + + target = qemu_get_be64(f); + if (!target) + return -EINVAL; + + balloon_update_target(target); + + return 0; +} +#endif + static void ram_save_live(QEMUFile *f, void *opaque) { target_ulong addr; @@ -9378,6 +9402,9 @@ int main(int argc, char **argv) register_savevm("timer", 0, 2, timer_save, timer_load, NULL); register_savevm("ram", 0, 3, ram_save, ram_load, NULL); + if (kvm_allowed) + register_savevm("balloon", 0, 1, balloon_save, balloon_load, NULL); + init_ioports();
2011 Dec 21
0
the principle of the vm snapshot based on qemu-dm
Hi everyone, I'm not clear about the principle of the vm snapshot based on qemu-dm, so the following below maybe a joke. Sorry for that... register_savevm() included in ioemu-qemu-xen/hw/*.c covers various kinds of hardware in order to save the state of current running vm. In this way, the file saved by the cmd of 'xm save domain snapshot.save' is of large size and the operation costs much time. Is there anyelse way to qucikly create a snaps...
2009 Oct 27
0
[PATCH 4/4] megasas: Add SCSI command emulation
...Using SCSI cmd emulation on dev %d (error %d)\n", unit, ret); - lun->sdev = NULL; - lun->bdrv = NULL; + bdrv_set_sg(lun->bdrv, 0); + } else { + DPRINTF("Using SCSI cmd passthrough on dev %d\n", unit); + bdrv_set_sg(lun->bdrv, 1); } } register_savevm("megasas", -1, 0, megasas_scsi_save, megasas_scsi_load, s); -- 1.6.0.2
2009 Oct 27
0
[PATCH 4/4] megasas: Add SCSI command emulation
...Using SCSI cmd emulation on dev %d (error %d)\n", unit, ret); - lun->sdev = NULL; - lun->bdrv = NULL; + bdrv_set_sg(lun->bdrv, 0); + } else { + DPRINTF("Using SCSI cmd passthrough on dev %d\n", unit); + bdrv_set_sg(lun->bdrv, 1); } } register_savevm("megasas", -1, 0, megasas_scsi_save, megasas_scsi_load, s); -- 1.6.0.2
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...qemu_mallocz(MAC_TABLE_ENTRIES * ETH_ALEN); n->vlans = qemu_mallocz(MAX_VLAN >> 3); - n->vdev.nvectors = 3; + if (dev->nd->nvectors == NIC_NVECTORS_UNSPECIFIED) + n->vdev.nvectors = 3; + else + n->vdev.nvectors = dev->nd->nvectors; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/net.c b/net.c index af9de73..1a71b75 100644 --- a/net.c +++ b/net.c @@ -2103,7 +2103,7 @@ int net_client_init(Monitor *mon, const char *device, const char *p)...
2009 Jun 21
0
[PATCHv6 12/12] qemu/net: flag to control the number of vectors a nic has
...qemu_mallocz(MAC_TABLE_ENTRIES * ETH_ALEN); n->vlans = qemu_mallocz(MAX_VLAN >> 3); - n->vdev.nvectors = 3; + if (dev->nd->nvectors == NIC_NVECTORS_UNSPECIFIED) + n->vdev.nvectors = 3; + else + n->vdev.nvectors = dev->nd->nvectors; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/net.c b/net.c index af9de73..1a71b75 100644 --- a/net.c +++ b/net.c @@ -2103,7 +2103,7 @@ int net_client_init(Monitor *mon, const char *device, const char *p)...
2007 Dec 10
10
[PATCH] ioemu/qemu vga: save and restore vram buffer
The existing stdvga driver from xen-unstable tools/ioemu/hw/vga* does not save the emulated VGA memory contents. The symptoms include video malfunction after restore, including black screen (which can often be fixed by asking the guest to redraw) but also missing font setup etc. The attached patch fixes this by saving the entire VGA memory buffer, just like the Xen ioemu Cirrus emulator does. I
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -863,6 +892,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index ab6e9c4..4b02df3 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,11 +15,13 @@ #include <inttypes.h> +#...
2009 Aug 13
0
[PATCHv2 3/3] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -863,6 +892,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index ab6e9c4..4b02df3 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,11 +15,13 @@ #include <inttypes.h> +#...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -863,6 +892,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index ab6e9c4..4b02df3 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,11 +15,13 @@ #include <inttypes.h> +#...
2009 Aug 17
1
[PATCHv3 3/4] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -863,6 +892,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index ab6e9c4..4b02df3 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,11 +15,13 @@ #include <inttypes.h> +#...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -864,6 +893,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 90f51be..8484562 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,10 +15,12 @@ #include <inttypes.h> +#...
2009 Aug 10
0
[PATCH 3/3] qemu-kvm: vhost-net implementation
...l_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); @@ -864,6 +893,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.nvectors = 3; else n->vdev.nvectors = dev->nd->nvectors; + n->vhost_device = dev->nd->vhost_device; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 90f51be..8484562 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -15,10 +15,12 @@ #include <inttypes.h> +#...
2009 Aug 25
3
Extending virtio_console to support multiple ports
Hello all, Here is a new iteration of the patch series that implements a transport for guest and host communications. The code has been updated to reuse the virtio-console device instead of creating a new virtio-serial device. I've tested for compatibility (old qemu & new kernel, new qemu & old kernel, new qemu & new kernel) and it all works fine. There are a few items on my
2009 Aug 25
3
Extending virtio_console to support multiple ports
Hello all, Here is a new iteration of the patch series that implements a transport for guest and host communications. The code has been updated to reuse the virtio-console device instead of creating a new virtio-serial device. I've tested for compatibility (old qemu & new kernel, new qemu & old kernel, new qemu & new kernel) and it all works fine. There are a few items on my
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...evice) + return; if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) return; @@ -810,6 +829,8 @@ static void virtio_net_cleanup(VLANClientState *vc) { VirtIONet *n = vc->opaque; + /* TODO: vhost device cleanup */ + qemu_purge_queued_packets(vc); unregister_savevm("virtio-net", n); @@ -823,6 +844,21 @@ static void virtio_net_cleanup(VLANClientState *vc) virtio_cleanup(&n->vdev); } +static void virtio_net_driver_ok(VirtIODevice *vdev) +{ + VirtIONet *n = to_virtio_net(vdev); + int r; + + if (!n->vhost_device) + retu...
2009 Nov 02
2
[PATCHv4 6/6] qemu-kvm: vhost-net implementation
...evice) + return; if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) return; @@ -810,6 +829,8 @@ static void virtio_net_cleanup(VLANClientState *vc) { VirtIONet *n = vc->opaque; + /* TODO: vhost device cleanup */ + qemu_purge_queued_packets(vc); unregister_savevm("virtio-net", n); @@ -823,6 +844,21 @@ static void virtio_net_cleanup(VLANClientState *vc) virtio_cleanup(&n->vdev); } +static void virtio_net_driver_ok(VirtIODevice *vdev) +{ + VirtIONet *n = to_virtio_net(vdev); + int r; + + if (!n->vhost_device) + retu...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...= NULL; + continue; + } + /* check if we can use SG_IO */ + ret = bdrv_ioctl(lun->bdrv, SG_IO, &hdr); + if (ret) { + DPRINTF("SCSI cmd passthrough not available on dev %d (error %d)\n", + unit, ret); + lun->sdev = NULL; + lun->bdrv = NULL; + } + } + register_savevm("megasas", -1, 0, megasas_scsi_save, megasas_scsi_load, s); + return 0; +} + +static PCIDeviceInfo megasas_info = { + .qdev.name = "LSI MegaRAID SAS 1078", + .qdev.alias = "megasas", + .qdev.size = sizeof(MPTState), + .init = megasas_scsi_init, +...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...= NULL; + continue; + } + /* check if we can use SG_IO */ + ret = bdrv_ioctl(lun->bdrv, SG_IO, &hdr); + if (ret) { + DPRINTF("SCSI cmd passthrough not available on dev %d (error %d)\n", + unit, ret); + lun->sdev = NULL; + lun->bdrv = NULL; + } + } + register_savevm("megasas", -1, 0, megasas_scsi_save, megasas_scsi_load, s); + return 0; +} + +static PCIDeviceInfo megasas_info = { + .qdev.name = "LSI MegaRAID SAS 1078", + .qdev.alias = "megasas", + .qdev.size = sizeof(MPTState), + .init = megasas_scsi_init, +...