qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] [PATCH 28/28] update-linux-headers.sh: Handle new kernel uapi/ directories
Date: Wed, 31 Oct 2012 07:40:06 -0200	[thread overview]
Message-ID: <b55f546eefe79cb6e6b15ebb23f352a736bafc39.1351676406.git.mtosatti@redhat.com> (raw)
In-Reply-To: <cover.1351676405.git.mtosatti@redhat.com>

From: Peter Maydell <peter.maydell@linaro.org>

Recent kernels have moved to keeping the userspace headers
in uapi/ subdirectories. This breaks the detection of whether an
architecture has KVM support in the kernel because kvm.h has
moved in the kernel source tree. Update the check to support
both the old and new locations.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
---
 scripts/update-linux-headers.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 67be2ef..4c7b566 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -34,7 +34,8 @@ ARCHLIST=$(cd "$linux/arch" && echo *)
 
 for arch in $ARCHLIST; do
     # Discard anything which isn't a KVM-supporting architecture
-    if ! [ -e "$linux/arch/$arch/include/asm/kvm.h" ]; then
+    if ! [ -e "$linux/arch/$arch/include/asm/kvm.h" ] &&
+        ! [ -e "$linux/arch/$arch/include/uapi/asm/kvm.h" ] ; then
         continue
     fi
 
-- 
1.7.6.4

  parent reply	other threads:[~2012-10-31  9:40 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-31  9:39 [Qemu-devel] [PATCH 00/28] [PULL] qemu-kvm.git uq/master queue Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 01/28] i386: kvm: kvm_arch_get_supported_cpuid: move R_EDX hack outside of for loop Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 02/28] i386: kvm: kvm_arch_get_supported_cpuid: clean up has_kvm_features check Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 03/28] i386: kvm: kvm_arch_get_supported_cpuid: use 'entry' variable Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 04/28] i386: kvm: extract register switch to cpuid_entry_get_reg() function Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 05/28] i386: kvm: extract CPUID entry lookup to cpuid_find_entry() function Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 06/28] i386: kvm: extract try_get_cpuid() loop to get_supported_cpuid() function Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 07/28] i386: kvm: kvm_arch_get_supported_cpuid: replace if+switch with single 'if' Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 08/28] i386: kvm: set CPUID_EXT_HYPERVISOR on kvm_arch_get_supported_cpuid() Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 09/28] i386: kvm: set CPUID_EXT_TSC_DEADLINE_TIMER " Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 10/28] i386: kvm: x2apic is not supported without in-kernel irqchip Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 11/28] i386: kvm: mask cpuid_kvm_features earlier Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 12/28] i386: kvm: mask cpuid_ext4_features bits earlier Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 13/28] i386: kvm: filter CPUID feature words earlier, on cpu.c Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 14/28] i386: kvm: reformat filter_features_for_kvm() code Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 15/28] i386: kvm: filter CPUID leaf 7 based on GET_SUPPORTED_CPUID, too Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 16/28] i386: cpu: add missing CPUID[EAX=7, ECX=0] flag names Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 17/28] target-i386: Add missing kvm cpuid feature name Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 18/28] cirrus_vga: allow configurable vram size Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 19/28] Use machine options to emulate -no-kvm-irqchip Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 20/28] Issue warning when deprecated -no-kvm-pit is used Marcelo Tosatti
2012-10-31  9:39 ` [Qemu-devel] [PATCH 21/28] Use global properties to emulate -no-kvm-pit-reinjection Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 22/28] Issue warning when deprecated drive parameter boot=on|off is used Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 23/28] Issue warning when deprecated -tdf option " Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 24/28] Emulate qemu-kvms -no-kvm option Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 25/28] target-i386: make cpu_x86_fill_host() void Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 26/28] target-i386: cpu: make -cpu host/check/enforce code KVM-specific Marcelo Tosatti
2012-10-31  9:40 ` [Qemu-devel] [PATCH 27/28] target-i386: kvm_cpu_fill_host: use GET_SUPPORTED_CPUID Marcelo Tosatti
2012-11-02 15:34   ` Andreas Färber
2012-11-02 15:52     ` Andreas Färber
2012-11-02 16:05     ` Eduardo Habkost
2012-11-02 16:25       ` [Qemu-devel] [PATCH] target-i386: cpu: fix --disable-kvm compilation Eduardo Habkost
2012-11-02 16:54         ` Andreas Färber
2012-10-31  9:40 ` Marcelo Tosatti [this message]
2012-11-01 19:32 ` [Qemu-devel] [PATCH 00/28] [PULL] qemu-kvm.git uq/master queue Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b55f546eefe79cb6e6b15ebb23f352a736bafc39.1351676406.git.mtosatti@redhat.com \
    --to=mtosatti@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).