aboutsummaryrefslogtreecommitdiff
path: root/accel/kvm
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2021-03-10 14:52:17 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-03-12 12:47:11 +0000
commit516fc0a081161eab5b3a89c7f243954945ee390e (patch)
tree675b35aa5f8663c4e0ec496eb6bcbf19fb47899f /accel/kvm
parentfc49b77fd391fdcfc9c0b61a8c301ac0d15232e9 (diff)
downloadqemu-516fc0a081161eab5b3a89c7f243954945ee390e.zip
qemu-516fc0a081161eab5b3a89c7f243954945ee390e.tar.gz
qemu-516fc0a081161eab5b3a89c7f243954945ee390e.tar.bz2
accel: kvm: Fix kvm_type invocation
Prior to commit f2ce39b4f067 a MachineClass kvm_type method only needed to be registered to ensure it would be executed. With commit f2ce39b4f067 a kvm-type machine property must also be specified. hw/arm/virt relies on the kvm_type method to pass its selected IPA limit to KVM, but this is not exposed as a machine property. Restore the previous functionality of invoking kvm_type when it's present. Fixes: f2ce39b4f067 ("vl: make qemu_get_machine_opts static") Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Message-id: 20210310135218.255205-2-drjones@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'accel/kvm')
-rw-r--r--accel/kvm/kvm-all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index f88a523..37b0a18 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -2068,6 +2068,8 @@ static int kvm_init(MachineState *ms)
"kvm-type",
&error_abort);
type = mc->kvm_type(ms, kvm_type);
+ } else if (mc->kvm_type) {
+ type = mc->kvm_type(ms, NULL);
}
do {