kvm: allow target-specific accelerator properties
commit3dba0a335cf5c53146b606be6ddfab4df81c464e
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Sep 2022 07:20:12 +0000 (29 15:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 Oct 2022 07:23:16 +0000 (10 09:23 +0200)
treecd88f1a5f421da22731ec31629d6f985960d9615
parent12f89a39cf3c5760cba82ce68929d748961f62df
kvm: allow target-specific accelerator properties

Several hypervisor capabilities in KVM are target-specific.  When exposed
to QEMU users as accelerator properties (i.e. -accel kvm,prop=value), they
should not be available for all targets.

Add a hook for targets to add their own properties to -accel kvm, for
now no such property is defined.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220929072014.20705-3-chenyi.qiang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c
include/sysemu/kvm.h
target/arm/kvm.c
target/i386/kvm/kvm.c
target/mips/kvm.c
target/ppc/kvm.c
target/riscv/kvm.c
target/s390x/kvm/kvm.c