KVM: Qemu: fix compilation error in IA64
PATCH 1/1 KVM: Qemu: fix compilation error in IA64
fix compilation error in IA64
--- kernel/ia64/external-module-compat.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
kernel/ia64/external-module-compat.h +6 -0
@@ -42,6 +42,12 @@ typedef u64 phys_addr_t;#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,30 ) + +#define PAGE_KERNEL_UC __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX | \ + _PAGE_MA_UC) +#endif +#endif #ifndef CONFIG_HAVE_KVM_IRQCHIP
Signature · 1 line
1.6.0.rc1
From 0714123c279861b74a6ee5d3990a9af40dfb6b1c Mon Sep 17 00:00:00 2001
From: Yang Zhang <Yang Zhang>
Date: Wed, 1 Apr 2009 06:19:11 -0400
Subject: [PATCH] KVM: Qemu: fix compilation error in IA64
fix compilation error in IA64
--- kernel/ia64/external-module-compat.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
kernel/ia64/external-module-compat.h +6 -0
@@ -42,6 +42,12 @@ typedef u64 phys_addr_t;#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,30 ) + +#define PAGE_KERNEL_UC __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX | \ + _PAGE_MA_UC) +#endif +#endif #ifndef CONFIG_HAVE_KVM_IRQCHIP
Signature · 1 line
1.6.0.rc1
Avi Kivity
AppliedQuoted 3 lines · Yang
fix compilation error in IA64
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function
PATCH 1/1 kvm: qemu: fix compilation error in ia64
In reply to Zhang, Yangia64 doesn't need the function kvm_arch_get_supported_cpuid. Move it to qemu-kvm-x86.c from qemu-kvm.c
--- qemu-kvm-x86.c | 6 ++++++ qemu-kvm.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)
qemu-kvm-x86.c +6 -0
@@ -887,3 +887,9 @@ int kvm_arch_init_irq_routing(void) }return 0 ; } + +uint32_t kvm_arch_get_supported_cpuid (CPUState *env,uint32_t function, +int reg) +{ +return kvm_get_supported_cpuid (kvm_context, function, reg); +}
qemu-kvm.c +0 -6
@@ -1425,9 +1425,3 @@ void qemu_kvm_cpu_stop(CPUState *env)if (kvm_enabled ()) env->kvm_cpu_state.stopped =1 ; } - -uint32_t kvm_arch_get_supported_cpuid (CPUState *env,uint32_t function, -int reg) -{ -return kvm_get_supported_cpuid (kvm_context, function, reg); -}
Signature · 1 line
1.6.0.rc1
From 56cc33ed2056dd1cd3f41af3e99991ec54485a97 Mon Sep 17 00:00:00 2001
From: Yang Zhang <[email protected]>
Date: Mon, 11 May 2009 20:08:08 -0400
Subject: [PATCH] kvm: qemu: fix compilation error in ia64
ia64 doesn't need the function kvm_arch_get_supported_cpuid. Move it to qemu-kvm-x86.c from qemu-kvm.c
--- qemu-kvm-x86.c | 6 ++++++ qemu-kvm.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)
qemu-kvm-x86.c +6 -0
@@ -887,3 +887,9 @@ int kvm_arch_init_irq_routing(void) }return 0 ; } + +uint32_t kvm_arch_get_supported_cpuid (CPUState *env,uint32_t function, +int reg) +{ +return kvm_get_supported_cpuid (kvm_context, function, reg); +}
qemu-kvm.c +0 -6
@@ -1425,9 +1425,3 @@ void qemu_kvm_cpu_stop(CPUState *env)if (kvm_enabled ()) env->kvm_cpu_state.stopped =1 ; } - -uint32_t kvm_arch_get_supported_cpuid (CPUState *env,uint32_t function, -int reg) -{ -return kvm_get_supported_cpuid (kvm_context, function, reg); -}
Signature · 1 line
1.6.0.rc1