Hi,

here's the introduction of some convenience helpers for enabling
kvm capabilities and the conversion of the existing callers. I kept
this separate for s390x and ppc, as I can't test the ppc part.

The helper functions are now macros so that I can use __VA_ARGS__
for argument checking.

Patches are available on
https://github.com/cohuck/qemu.git kvm-cap-helpers
and I'd like to send this through my tree, unless there are objections.

Cornelia Huck (3):
  kvm: add kvm_enable_cap_{vm,vcpu}
  s390x: use kvm_enable_cap_vcpu()
  ppc: use kvm_enable_cap_vcpu()

 hw/intc/openpic_kvm.c |    8 ++------
 hw/intc/xics_kvm.c    |    8 ++------
 include/sysemu/kvm.h  |   28 ++++++++++++++++++++++++++++
 target-ppc/kvm.c      |   21 ++++-----------------
 target-s390x/kvm.c    |    4 +---
 5 files changed, 37 insertions(+), 32 deletions(-)

-- 
1.7.9.5


Reply via email to