Wind River Support Network

HomeDefectsLIN5-2949
Fixed

LIN5-2949 : Build error with features/kvm/qemu-kvm-enable.scc

Created: Jul 8, 2013    Updated: Dec 19, 2017
Resolved Date: Jul 29, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.6
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

...
| /build/common_pc-5_0_1_head-05/bitbake_build/tmp/work/common_pc-wrs-linux/linux-windriver-3.4-r0/linux/arch/x86/kvm/x86.c: In function 'kvm_set_guest_paused':
| /build/common_pc-5_0_1_head-05/bitbake_build/tmp/work/common_pc-wrs-linux/linux-windriver-3.4-r0/linux/arch/x86/kvm/x86.c:2631:17: error: 'struct kvm_vcpu_arch' has no member named 'time_page'
...
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /build/common_pc-5_0_1_head-05/bitbake_build/tmp/work/common_pc-wrs-linux/linux-windriver-3.4-r0/temp/do_compile_kernelmodules/run.do_compile_kernelmodules.28964:121 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile_kernelmodules (see /build/common_pc-5_0_1_head-05/bitbake_build/tmp/work/common_pc-wrs-linux/linux-windriver-3.4-r0/temp/do_compile_kernelmodules/log.do_compile_kernelmodules.28964 for further information)
ERROR: Task 17 (/build/common_pc-5_0_1_head-05/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.4.bb, do_compile_kernelmodules) failed with exit code '1'
NOTE: Tasks Summary: Attempted 415 tasks of which 405 didn't need to be rerun and 1 failed.
No currently running tasks (415 of 425)

Summary: 1 task failed:
  /build/common_pc-5_0_1_head-05/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.4.bb, do_compile_kernelmodules
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Workaround

--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -1571,5 +1571,5 @@ int kvm_lapic_enable_pv_eoi(struct kvm_vcpu *vcpu, u64 data)
        if (!pv_eoi_enabled(vcpu))
                return 0;
        return kvm_gfn_to_hva_cache_init(vcpu->kvm, &vcpu->arch.pv_eoi.data,
-                                        addr);
+                                        addr, sizeof(u8));
 }
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index beeab0f..3482c97 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2628,7 +2628,7 @@ static int kvm_vcpu_ioctl_x86_set_xcrs(struct kvm_vcpu *vcpu,
 static int kvm_set_guest_paused(struct kvm_vcpu *vcpu)
 {
        struct pvclock_vcpu_time_info *src = &vcpu->arch.hv_clock;
-       if (!vcpu->arch.time_page)
+       if (!vcpu->arch.pv_time_enabled)
                return -EINVAL;
        src->flags |= PVCLOCK_GUEST_STOPPED;
        mark_page_dirty(vcpu->kvm, vcpu->arch.time >> PAGE_SHIFT);

Steps to Reproduce

#PATH_to_WRL-5.0.1_head/wrlinux/configure --enable-board=common_pc --enable-kernel=standard+features/kvm/qemu-kvm-enable.scc --enable-rootfs=glibc_std
#make -C build linux

Other Downloads


Live chat
Online