search for: restore_common

Displaying 15 results from an estimated 15 matches for "restore_common".

2012 Mar 29
5
[PATCH 0/5] virtio: S3 support, use PM API macro for init
...ere tested. They all continue to work fine after resume. virtio balloon values too were tested by inflating and deflating the balloon. Please review and apply, Thanks, Amit Shah (5): virtio: balloon: Allow stats update after restore from S4 virtio: drop thaw PM operation virtio-pci: drop restore_common() virtio-pci: S3 support virtio-pci: switch to PM ops macro to initialise PM functions drivers/virtio/virtio_balloon.c | 14 ------- drivers/virtio/virtio_pci.c | 74 ++++---------------------------------- include/linux/virtio.h | 1 - 3 files changed, 8 insertions(+), 81...
2012 Mar 29
5
[PATCH 0/5] virtio: S3 support, use PM API macro for init
...ere tested. They all continue to work fine after resume. virtio balloon values too were tested by inflating and deflating the balloon. Please review and apply, Thanks, Amit Shah (5): virtio: balloon: Allow stats update after restore from S4 virtio: drop thaw PM operation virtio-pci: drop restore_common() virtio-pci: S3 support virtio-pci: switch to PM ops macro to initialise PM functions drivers/virtio/virtio_balloon.c | 14 ------- drivers/virtio/virtio_pci.c | 74 ++++---------------------------------- include/linux/virtio.h | 1 - 3 files changed, 8 insertions(+), 81...
2012 Apr 26
4
[PATCH 0/3] virtio: balloon: cleanups and a fix
...ost with the current balloon value on module removal after deflating the balloon. Without the fix, the host has the wrong idea of the ballooned memory in the guest. This is patch 2. Patches 1 and 3 are cleanups with no effective code change. Please apply, Amit Shah (3): virtio: balloon: drop restore_common() virtio: balloon: let host know of updated balloon size before module removal virtio: balloon: separate out common code between remove and freeze functions drivers/virtio/virtio_balloon.c | 34 ++++++++++++++-------------------- 1 files changed, 14 insertions(+), 20 deletions(-) -...
2012 Apr 26
4
[PATCH 0/3] virtio: balloon: cleanups and a fix
...ost with the current balloon value on module removal after deflating the balloon. Without the fix, the host has the wrong idea of the ballooned memory in the guest. This is patch 2. Patches 1 and 3 are cleanups with no effective code change. Please apply, Amit Shah (3): virtio: balloon: drop restore_common() virtio: balloon: let host know of updated balloon size before module removal virtio: balloon: separate out common code between remove and freeze functions drivers/virtio/virtio_balloon.c | 34 ++++++++++++++-------------------- 1 files changed, 14 insertions(+), 20 deletions(-) -...
2012 Feb 29
1
[PATCH 1/1] virtio: balloon: leak / fill balloon across S4
...e this * function is called. */ + while (vb->num_pages) + leak_balloon(vb, vb->num_pages); + update_balloon_size(vb); + /* Ensure we don't get any more requests from the host */ vdev->config->reset(vdev); vdev->config->del_vqs(vdev); return 0; } +static int restore_common(struct virtio_device *vdev) +{ + struct virtio_balloon *vb = vdev->priv; + int ret; + + ret = init_vqs(vdev->priv); + if (ret) + return ret; + + fill_balloon(vb, towards_target(vb)); + update_balloon_size(vb); + return 0; +} + static int virtballoon_thaw(struct virtio_device *vdev) { - ret...
2012 Feb 29
1
[PATCH 1/1] virtio: balloon: leak / fill balloon across S4
...e this * function is called. */ + while (vb->num_pages) + leak_balloon(vb, vb->num_pages); + update_balloon_size(vb); + /* Ensure we don't get any more requests from the host */ vdev->config->reset(vdev); vdev->config->del_vqs(vdev); return 0; } +static int restore_common(struct virtio_device *vdev) +{ + struct virtio_balloon *vb = vdev->priv; + int ret; + + ret = init_vqs(vdev->priv); + if (ret) + return ret; + + fill_balloon(vb, towards_target(vb)); + update_balloon_size(vb); + return 0; +} + static int virtballoon_thaw(struct virtio_device *vdev) { - ret...
2011 Dec 06
17
[PATCH v4 00/12] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit and init work is also done in the freeze and restore functions. All the drivers in testing work fine: * virtio-blk is used for the only disk in the VM, IO works fine before and after. 'dd
2011 Dec 06
17
[PATCH v4 00/12] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit and init work is also done in the freeze and restore functions. All the drivers in testing work fine: * virtio-blk is used for the only disk in the VM, IO works fine before and after. 'dd
2012 Mar 31
0
[PULL] virtio: S3 support, use PM API macro for init
.../sparc (2012-03-30 18:40:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio-console.git s3-for-3.4 Amit Shah (5): virtio: balloon: Allow stats update after restore from S4 virtio: drop thaw PM operation virtio-pci: drop restore_common() virtio-pci: S3 support virtio-pci: switch to PM ops macro to initialise PM functions drivers/virtio/virtio_balloon.c | 14 ------- drivers/virtio/virtio_pci.c | 74 ++++---------------------------------- include/linux/virtio.h | 1 - 3 files changed, 8 insertions...
2012 Mar 31
0
[PULL] virtio: S3 support, use PM API macro for init
.../sparc (2012-03-30 18:40:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio-console.git s3-for-3.4 Amit Shah (5): virtio: balloon: Allow stats update after restore from S4 virtio: drop thaw PM operation virtio-pci: drop restore_common() virtio-pci: S3 support virtio-pci: switch to PM ops macro to initialise PM functions drivers/virtio/virtio_balloon.c | 14 ------- drivers/virtio/virtio_pci.c | 74 ++++---------------------------------- include/linux/virtio.h | 1 - 3 files changed, 8 insertions...
2011 Dec 22
12
[PATCH v6 00/11] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit and init work is also done in the freeze and restore functions. All the drivers in testing work fine: * virtio-blk is used for the only disk in the VM, IO works fine before and after. 'dd
2011 Dec 22
12
[PATCH v6 00/11] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit and init work is also done in the freeze and restore functions. All the drivers in testing work fine: * virtio-blk is used for the only disk in the VM, IO works fine before and after. 'dd
2011 Dec 15
12
[PATCH v5 00/11] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. Michael saw some race in virtio-net module removal which will need a similar fix for the freeze code as well. I'll update the virtio-net patch with that fix once the fix is settled upon and applied. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit
2011 Dec 15
12
[PATCH v5 00/11] virtio: s4 support
Hi, These patches add support for S4 to virtio (pci) and all drivers. Michael saw some race in virtio-net module removal which will need a similar fix for the freeze code as well. I'll update the virtio-net patch with that fix once the fix is settled upon and applied. For each driver, all vqs are removed before hibernation, and then re-created after restore. Some driver-specific uninit
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
..._device_model_info *dm_info) { + libxl_gc gc = LIBXL_INIT_GC(ctx); char **vments = NULL, **localents = NULL; struct timeval start_time; int i, ret, esave, flags; ret = build_pre(ctx, domid, info, state); - if (ret) goto out; + if (ret) + goto out; ret = restore_common(ctx, domid, info, state, fd); - if (ret) goto out; + if (ret) + goto out; gettimeofday(&start_time, NULL); if (info->hvm) { - vments = libxl_calloc(ctx, 7, sizeof(char *)); + vments = libxl_calloc(&gc, 7, sizeof(char *)); vments[0] = &quo...