Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 885795 Details for
Bug 1027565
fail to reboot guest after migration from RHEL6.5 host to RHEL7.0 host
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
dump ramblocks in stage 1 of the RHEL-6 outgoing migration (debug patch)
0001-dump-ramblocks-in-stage-1-of-ram_save_live.patch (text/plain), 2.36 KB, created by
Laszlo Ersek
on 2014-04-12 23:03:31 UTC
(
hide
)
Description:
dump ramblocks in stage 1 of the RHEL-6 outgoing migration (debug patch)
Filename:
MIME Type:
Creator:
Laszlo Ersek
Created:
2014-04-12 23:03:31 UTC
Size:
2.36 KB
patch
obsolete
>From 2ca2a156ddcf1d193fe279f838e65af3e1419061 Mon Sep 17 00:00:00 2001 >From: Laszlo Ersek <lersek@redhat.com> >Date: Sat, 12 Apr 2014 21:47:06 +0200 >Subject: [RHEL-6.6 qemu-kvm PATCH] dump ramblocks in stage 1 of > ram_save_live() > >Signed-off-by: Laszlo Ersek <lersek@redhat.com> >--- > vl.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > >diff --git a/vl.c b/vl.c >index 01e08c0..a2c14bc 100644 >--- a/vl.c >+++ b/vl.c >@@ -2879,19 +2879,55 @@ static int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque) > } > > if (stage == 1) { >+ unsigned blknr; > RAMBlock *block; > bytes_transferred = 0; > last_block = NULL; > last_offset = 0; > > /* Make sure all dirty bits are set */ >+ blknr = 0; > QLIST_FOREACH(block, &ram_list.blocks, next) { >+ char *fname, *c; >+ int fd; >+ ssize_t wr; >+ >+ fname = g_strdup_printf( >+ "ramblock.%02u.%0*lx.%0*lx.%08" PRIx32 ",%s", blknr, >+ (int)(sizeof block->offset) * 2, block->offset, >+ (int)(sizeof block->length) * 2, block->length, >+ block->flags, block->idstr); >+ for (c = fname; *c != '\0'; ++c) { >+ if (*c == '/') { >+ *c = '_'; >+ } >+ } >+ fprintf(stderr, "%s\n", fname); >+ fd = open(fname, >+ O_WRONLY | O_CLOEXEC | O_CREAT | O_NOCTTY | O_TRUNC, >+ 0666); >+ if (fd == -1) { >+ perror("open()"); >+ abort(); >+ } >+ wr = qemu_write_full(fd, block->host, block->length); >+ if (wr != block->length) { >+ perror("write()"); >+ abort(); >+ } >+ if (close(fd) == -1) { >+ perror("close()"); >+ abort(); >+ } >+ g_free(fname); >+ > for (addr = block->offset; addr < block->offset + block->length; > addr += TARGET_PAGE_SIZE) { > if (!cpu_physical_memory_get_dirty(addr, > MIGRATION_DIRTY_FLAG)) > cpu_physical_memory_set_dirty(addr); > } >+ ++blknr; > } > > /* Enable dirty memory tracking */ >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1027565
:
885244
|
885245
|
885252
|
885649
|
885650
| 885795 |
885838
|
886494
|
886593
|
886840
|
886841
|
886964
|
888022
|
888273