]> xenbits.xensource.com Git - qemu-xen.git/commit
kvm: ppc: disable sPAPR code if CONFIG_PSERIES is disabled
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 May 2024 07:35:33 +0000 (09:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 May 2024 13:47:47 +0000 (15:47 +0200)
commit566abdb4d90d73728f37cd5dcced0fbef84a63db
treed54984a0dd0970e5e7c743bdb8dcbc9f39be2dd6
parent957f583b7cb4d317fb694ca45350de6d9d2bd1b8
kvm: ppc: disable sPAPR code if CONFIG_PSERIES is disabled

target/ppc/kvm.c calls out to code in hw/ppc/spapr*.c; that code is
not present and fails to link if CONFIG_PSERIES is not enabled.
Adjust kvm.c to depend on CONFIG_PSERIES instead of TARGET_PPC64,
and compile out anything that requires cap_papr, because only
the pseries machine will call kvmppc_set_papr().

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/ppc/kvm.c