[PATCH v2 00/17] [uq/master] Prepare for more qemu-kvm merging

Jan Kiszka
2011-01-03T08:33:39Z

All previously sent patches against current uq combined, some smaller
tweaks applied, and 4 new patches added. Major news is support for
using up to 16M BIOSes and optional code dump for cpu_dump_state. Those
features are already present qemu-kvm but were reworked to provide
cleaner upstream versions.

Based on this series, I've an experimental tree here where I eliminated
another 1500 LOC from qemu-kvm code. Specifically, that tree sets an end
to duplicate KVM and VCPU initialization functions, KVMState copies, and
redundant state saving/loading functions. Will be rolled out after some
more review and testing.

Jan Kiszka (17):
kvm: Fix coding style violations
kvm: Drop return value of kvm_cpu_exec
kvm: Stop on all fatal exit reasons
kvm: Improve reporting of fatal errors
x86: Optionally dump code bytes on cpu_dump_state
kvm: x86: Align kvm_arch_put_registers code with comment
kvm: x86: Prepare kvm_get_mp_state for in-kernel irqchip
kvm: x86: Remove redundant mp_state initialization
kvm: x86: Fix xcr0 reset mismerge
kvm: x86: Refactor msr_star/hsave_pa setup and checks
kvm: x86: Reset paravirtual MSRs
kvm: x86: Drop MCE MSRs write back restrictions
kvm: Eliminate KVMState arguments
kvm: x86: Introduce kvmclock device to save/restore its state
kvm: Drop smp_cpus argument from init functions
kvm: x86: Rework identity map and TSS setup for larger BIOS sizes
kvm: Drop dependencies on very old capabilities

cpu-all.h | 2 +
cpu-defs.h | 2 -
kvm-all.c | 404 +++++++++++++++++++++++--------------------------
kvm-stub.c | 8 +-
kvm.h | 19 +--
target-i386/cpu.h | 2 +
target-i386/cpuid.c | 14 +-
target-i386/helper.c | 21 +++
target-i386/kvm.c | 331 ++++++++++++++++++++++++----------------
target-i386/kvm_x86.h | 3 +
target-ppc/kvm.c | 16 ++-
target-s390x/kvm.c | 8 +-
vl.c | 2 +-
13 files changed, 448 insertions(+), 384 deletions(-)