A very very small bug--miss #ifdef CONFIG_KVM_ARM_VGIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a very small bug!

branch: kvm_arm_master:

when I don't configure CONFIG_KVM_ARM_VGIC,
compiling the host kernel will be failure!

In arch/arm/kvm/arm.c file:
In function kvm_arch_vcpu_ioctl_run:
Parts of codes should be added "#ifdef CONFIG_KVM_ARM_VGIC" and
"#endif", as follow:

int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run)
{
        ......

#ifdef CONFIG_KVM_ARM_VGIC
        /* Initalize the VGIC before running a vcpu the first time on this VM */
        if (unlikely(irqchip_in_kernel(vcpu->kvm) &&
                     !vgic_initialized(vcpu->kvm))) {
                ret = kvm_vgic_init(vcpu->kvm);
                if (ret)
                        return ret;
        }
#endif

        ........
}
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm


[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux