[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH V3 4/7] target-arm: Provide PSCI v0.2 consta
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [RFC PATCH V3 4/7] target-arm: Provide PSCI v0.2 constants to generic QEMU code |
Date: |
Fri, 25 Apr 2014 22:33:47 +0100 |
On 25 April 2014 20:24, Rob Herring <address@hidden> wrote:
> I don't see the point of MISMATCH_CHECK with 0.2 PSCI. The values are
> fixed and the header is the ABI. Why can't all of QEMU use the psci.h
> header?
That would depend on where the psci.h header comes from.
In general we can't use kernel headers because the kernel
doesn't guarantee that they'll compile on all the platforms
QEMU needs to build on. Beyond that, we have a build
system problem with trying to use them on non-Linux
systems -- we can't put the linux-headers/ directories
on the include path because of all the other nonportable
headers, but if we take a copy of psci.h into QEMU's include
tree then its defines will clash with the ones in the
linux-headers/ copy if we are building on Linux with KVM.
Putting the defines in a separate definitely-won't-clash
namespace and doing a compile time check that we
have the same values was my pragmatic solution to the
general problem.
thanks
-- PMM
- [Qemu-devel] [RFC PATCH V3 0/7] PSCI v0.2 support for KVM ARM/ARM64, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 1/7] linux-headers: Update KVM headers from v3.15, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 2/7] kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 3/7] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 4/7] target-arm: Provide PSCI v0.2 constants to generic QEMU code, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 5/7] hw/arm/virt: Use PSCI v0.2 function IDs when kernel supports it, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 6/7] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 7/7] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64, Pranavkumar Sawargaonkar, 2014/04/10
- Re: [Qemu-devel] [RFC PATCH V3 0/7] PSCI v0.2 support for KVM ARM/ARM64, Peter Maydell, 2014/04/28