Skip to content

Patch queue, part III

Jan Kiszka kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Refactor kvm&tcg function names in cpus.ccpus.c+8 -80 replies
2/15Refactor cpu_has_work/any_cpu_has_work in cpus.ccpus.c+23 -204 replies
3/15Fix a few coding style violations in cpus.ccpus.c+44 -270 replies
4/15Improve vm_stop reason declarationscpus.c gdbstub.c hw/ide/core.c +9 more+31 -225 replies
5/15Refactor debug and vmstop request interfacecpus.c cpus.h sysemu.h +1 more+19 -140 replies
6/15Move debug exception handling out of cpu_execcpu-exec.c cpus.c vl.c+31 -300 replies
7/15kvm: Separate TCG from KVM cpu executioncpu-exec.c cpus.c kvm-all.c +1 more+23 -314 replies
8/15kvm: x86: Prepare VCPU loop for in-kernel irqchiptarget-i386/kvm.c+38 -310 replies
9/15kvm: Drop return values from kvm_arch_pre/post_runkvm.h target-i386/kvm.c target-ppc/kvm.c +1 more+8 -175 replies
10/15kvm: x86: Catch and report failing IRQ and NMI injectionstarget-i386/kvm.c+13 -30 replies
11/15kvm: Remove unneeded memory slot reservationkvm-all.c+0 -41 reply
12/15Introduce log_start/log_stop in CPUPhysMemoryClientcpu-all.h cpu-common.h exec.c +5 more+64 -300 replies
13/15cirrus: Remove obsolete kvm.h includehw/cirrus_vga.c+0 -10 replies
14/15kvm: Make kvm_state globally availablekvm-all.c kvm.h+2 -10 replies
15/15kvm: x86: Introduce kvmclock device to save/restore its stateMakefile.target hw/kvmclock.c hw/kvmclock.h +1 more+165 -910 replies

Reviews trailers per patch

2 of 15 patches have a Reviewed-by or Acked-by.

PatchAlexander GrafAlex Williamson
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15A-b
10/15
11/15A-b
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] [uq/master] Patch queue, part III

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 <[email protected]>
CC Alex Williamson <[email protected]>
CC Anthony PERARD <[email protected]>
CC Glauber Costa <[email protected]>

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