[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards |
Date: |
Fri, 14 Jun 2019 13:08:44 +0200 |
User-agent: |
StGit/unknown-version |
There are several places where CONFIG_KVM is used to guard code that
should only be built when KVM is supported. It is generally preferable
to avoid that and leave such guards in header files for improved
readability.
In many cases, the execution of the code is also conditionned by
kvm_enabled() which expands to (0) when CONFIG_KVM is not defined.
This is likely to cause the compiler to optimize the code out,
and if it doesn't, the right way to address compiling issues is
to add stubs.
Successfuly compile tested on x86_64 and ppc64le linux. Travis shows
this builds fine on OSX as well.
--
Greg
---
Greg Kurz (7):
spapr_pci: Drop useless CONFIG_KVM ifdefery
hw/ppc/mac_oldworld: Drop useless CONFIG_KVM ifdefery
hw/ppc/mac_newworld: Drop useless CONFIG_KVM ifdefery
hw/ppc/prep: Drop useless CONFIG_KVM ifdefery
hw/ppc: Drop useless CONFIG_KVM ifdefery
ppc: Introduce kvmppc_set_reg_tb_offset() helper
target/ppc/machine: Add kvmppc_pvr_workaround_required() stub
hw/ppc/mac_newworld.c | 4 ----
hw/ppc/mac_oldworld.c | 2 --
hw/ppc/ppc.c | 7 +------
hw/ppc/prep.c | 2 --
hw/ppc/spapr_pci.c | 2 --
target/ppc/kvm.c | 9 +++++++++
target/ppc/kvm_ppc.h | 10 ++++++++++
target/ppc/machine.c | 2 --
8 files changed, 20 insertions(+), 18 deletions(-)
- [Qemu-devel] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards,
Greg Kurz <=
- [Qemu-devel] [PATCH 6/7] ppc: Introduce kvmppc_set_reg_tb_offset() helper, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 7/7] target/ppc/machine: Add kvmppc_pvr_workaround_required() stub, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 5/7] hw/ppc: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 4/7] hw/ppc/prep: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 3/7] hw/ppc/mac_newworld: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 2/7] hw/ppc/mac_oldworld: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-devel] [PATCH 1/7] spapr_pci: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- Re: [Qemu-devel] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards, David Gibson, 2019/06/19