Re: kvm oops vgic_v2_sync_lr_elrsr

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

 



On Mon, Sep 22, 2014 at 03:44:14PM -0500, Joel Schopp wrote:
> 
> > Thanks, can you give this little patch a spin:
> >
> > diff --git a/virt/kvm/arm/vgic-v2.c b/virt/kvm/arm/vgic-v2.c
> > index 01124ef..416baed 100644
> > --- a/virt/kvm/arm/vgic-v2.c
> > +++ b/virt/kvm/arm/vgic-v2.c
> > @@ -71,7 +71,7 @@ static void vgic_v2_sync_lr_elrsr(struct kvm_vcpu *vcpu, int lr,
> >  				  struct vgic_lr lr_desc)
> >  {
> >  	if (!(lr_desc.state & LR_STATE_MASK))
> > -		set_bit(lr, (unsigned long *)vcpu->arch.vgic_cpu.vgic_v2.vgic_elrsr);
> > +		__set_bit(lr, (unsigned long *)vcpu->arch.vgic_cpu.vgic_v2.vgic_elrsr);
> >  }
> >  
> >  static u64 vgic_v2_get_elrsr(const struct kvm_vcpu *vcpu)
> 
> I am now able to boot/run kvm/qemu.  Much better.  This seems to fix the
> problem.
> 
> In what looks to be unrelated I sometimes (but not every time) get
> another fail.
> dmesg:
> kvm [5378]: Unsupported fault status: EC=0x24 DFCS=0x20
> qemu output:
> [root@joelaarch64 qemu]# ./aarch64-softmmu/qemu-system-aarch64
> --enable-kvm -nographic -kernel /boot/Joel-linux.Image -drive
> file=~/ubuntu-core-14.04.1-core-arm64.img,id=fs -device
> virtio-blk-device,drive=fs -m 512 -M virt -cpu host -no-reboot -append
> "console=ttyAMA0 console=ttyS0 rootwait root=/dev/vda rw"
> error: kvm run failed Bad address
> PC=fffffe000043f2ac  SP=fffffe001fda3b80
> X00=fffffe0000cc0000 X01=0000000000000000 X02=00000000000000c0
> X03=0000000000000004
> X04=0000000000000000 X05=0000000000000040 X06=000000000000003f
> X07=0000000000000000
> X08=fffffe0000cc0000 X09=0000000000000000 X10=fffffdfc000e2cf8
> X11=fffffe0000b84768
> X12=0000000000000000 X13=ffffffffffffffb8 X14=0000000000000001
> X15=00000000ffffffff
> X16=0000000000007fff X17=00000000000013ff X18=000000000000013f
> X19=fffffe001001fc00
> X20=fffffe0000cc0000 X21=00000000000080d0 X22=00000000000000f4
> X23=fffffe00001e7cd0
> X24=fffffe0000c14c38 X25=fffffe0000b72a60 X26=0000000000000000
> X27=0000000000000003
> X28=0000000000000003 X29=fffffe001fda3b80 X30=fffffe00001834ec
> PSTATE=40000245 (flags -Z--)
> 
> 
> Tested-by: Joel Schopp <joel.schopp@xxxxxxx>
> 
Cool, thanks for the quick reaction.  The fix has been sent to Paolo.

-Christoffer
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/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