[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/23] fix return check for KVM_GET_DIRTY_LOG ioctl
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 06/23] fix return check for KVM_GET_DIRTY_LOG ioctl |
Date: |
Thu, 27 Mar 2014 19:28:11 +0400 |
From: Mario Smarduch <address@hidden>
Fix return condition check from kvm_vm_ioctl(s, KVM_GET_DIRTY_LOG, &d) to
handle internal failures or no support for memory slot dirty bitmap.
Otherwise the ioctl succeeds and continues with migration.
Addresses BUG# 1294227
Signed-off-by: Mario Smarduch <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
kvm-all.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kvm-all.c b/kvm-all.c
index 82a9119..cd4111d 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -441,7 +441,7 @@ static int
kvm_physical_sync_dirty_bitmap(MemoryRegionSection *section)
d.slot = mem->slot;
- if (kvm_vm_ioctl(s, KVM_GET_DIRTY_LOG, &d) == -1) {
+ if (kvm_vm_ioctl(s, KVM_GET_DIRTY_LOG, &d) < 0) {
DPRINTF("ioctl failed %d\n", errno);
ret = -1;
break;
--
1.7.10.4
- [Qemu-devel] [PULL for-2.0 00/23] Trivial patches for 2014-03-27, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 07/23] doc: update sun4m documentation, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 06/23] fix return check for KVM_GET_DIRTY_LOG ioctl,
Michael Tokarev <=
- [Qemu-devel] [PULL 05/23] target-i386: Add missing 'static' and 'const' attributes, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 23/23] linux-user: remove duplicate statement, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 12/23] hw/pci/pci_host.c: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 20/23] hw/intc/xilinx_intc: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 13/23] hw/i386/acpi_build.c: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 21/23] hw/pci-host/apb.c: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 10/23] target-i386: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 14/23] target-mips: Avoid shifting left into sign bit, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 22/23] hw/timer/grlib_gptimer: remove unnecessary assignment, Michael Tokarev, 2014/03/27
- [Qemu-devel] [PULL 01/23] target-s390x: Add missing 'static' and 'const' attributes, Michael Tokarev, 2014/03/27