This round is kind of an assorted collection: - make kvm_cpu_exec ready for qemu-kvm reuse - reworked vm_stop handling (as preparation for kvm_cpu_exec reuse) - the return of kvmclock - cleanups around KVM's dirty logging/slot management - style cleanups of cpus.c The patches related to the first item allowed me to remove another 400 lines of duplicate qemu-kvm code. Current local stats: # wc -l qemu-kvm.[ch] qemu-kvm-x86.c 1142 qemu-kvm.c 309 qemu-kvm.h 230 qemu-kvm-x86.c 1681 total (vs. 3513 in current master) I'm about to look into the last issue soon: consolidation of the threading code. For upstream qemu, there is now only the MCE rework pending in my queue. That will be sent as part IV after this series has passed the review. CC: Alexander Graf <agraf@xxxxxxx> CC: Alex Williamson <alex.williamson@xxxxxxxxxx> CC: Anthony PERARD <anthony.perard@xxxxxxxxxx> CC: Glauber Costa <glommer@xxxxxxxxxx> Anthony PERARD (1): Introduce log_start/log_stop in CPUPhysMemoryClient Jan Kiszka (14): Refactor kvm&tcg function names in cpus.c Refactor cpu_has_work/any_cpu_has_work in cpus.c Fix a few coding style violations in cpus.c Improve vm_stop reason declarations Refactor debug and vmstop request interface Move debug exception handling out of cpu_exec kvm: Separate TCG from KVM cpu execution kvm: x86: Prepare VCPU loop for in-kernel irqchip kvm: Drop return values from kvm_arch_pre/post_run kvm: x86: Catch and report failing IRQ and NMI injections kvm: Remove unneeded memory slot reservation cirrus: Remove obsolete kvm.h include kvm: Make kvm_state globally available kvm: x86: Introduce kvmclock device to save/restore its state Makefile.target | 4 +- cpu-all.h | 6 ++ cpu-common.h | 4 + cpu-exec.c | 43 ++----------- cpus.c | 182 +++++++++++++++++++++++++++++++--------------------- cpus.h | 2 - exec.c | 30 +++++++++ gdbstub.c | 19 +++--- hw/cirrus_vga.c | 1 - hw/ide/core.c | 2 +- hw/kvmclock.c | 125 +++++++++++++++++++++++++++++++++++ hw/kvmclock.h | 14 ++++ hw/pc_piix.c | 31 +++++++-- hw/scsi-disk.c | 2 +- hw/vga.c | 31 +++++---- hw/vhost.c | 2 + hw/virtio-blk.c | 2 +- hw/watchdog.c | 2 +- kvm-all.c | 35 +++++----- kvm-stub.c | 10 --- kvm.h | 9 +-- migration.c | 2 +- monitor.c | 4 +- savevm.c | 4 +- sysemu.h | 10 +++ target-i386/kvm.c | 93 +++++++++++++++----------- target-ppc/kvm.c | 6 +- target-s390x/kvm.c | 6 +- vl.c | 22 +++++-- 29 files changed, 462 insertions(+), 241 deletions(-) create mode 100644 hw/kvmclock.c create mode 100644 hw/kvmclock.h -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html