[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 1/7] spapr_pci: Drop useless CONFIG_KVM ifdefery
From: |
Greg Kurz |
Subject: |
[Qemu-ppc] [PATCH 1/7] spapr_pci: Drop useless CONFIG_KVM ifdefery |
Date: |
Fri, 14 Jun 2019 13:08:49 +0200 |
User-agent: |
StGit/unknown-version |
kvm_enabled() expands to (0) when CONFIG_KVM is not defined.
Signed-off-by: Greg Kurz <address@hidden>
---
hw/ppc/spapr_pci.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index fbeb1c90ee6c..00d9f2cfe464 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1944,11 +1944,9 @@ static void spapr_phb_realize(DeviceState *dev, Error
**errp)
* For KVM we want to ensure that this memory is a full page so that
* our memory slot is of page size granularity.
*/
-#ifdef CONFIG_KVM
if (kvm_enabled()) {
msi_window_size = getpagesize();
}
-#endif
memory_region_init_io(&sphb->msiwindow, OBJECT(sphb), &spapr_msi_ops,
spapr,
"msi", msi_window_size);
- [Qemu-ppc] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 7/7] target/ppc/machine: Add kvmppc_pvr_workaround_required() stub, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 6/7] ppc: Introduce kvmppc_set_reg_tb_offset() helper, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 5/7] hw/ppc: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 3/7] hw/ppc/mac_newworld: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 1/7] spapr_pci: Drop useless CONFIG_KVM ifdefery,
Greg Kurz <=
- [Qemu-ppc] [PATCH 2/7] hw/ppc/mac_oldworld: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- [Qemu-ppc] [PATCH 4/7] hw/ppc/prep: Drop useless CONFIG_KVM ifdefery, Greg Kurz, 2019/06/14
- Re: [Qemu-ppc] [PATCH 0/7] ppc: Get rid of some CONFIG_KVM guards, David Gibson, 2019/06/19