qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Aarch64: Qemu master or 2.9.0-rc1 breaks compatibility with 4.10 kernel.
@ 2017-03-28 11:22 Prakash B
  2017-03-28 11:29 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Prakash B @ 2017-03-28 11:22 UTC (permalink / raw)
  To: qemu-devel, qemu-arm, peter.maydell, Eric Auger, Marc Zyngier,
	Christoffer Dall, kvmarm, Vijaya.Kumar
  Cc: sgoutham, bprakash

Hi ,

Qemu master or v2.9.0-rc1 doesn't launch guest  when host kernel
version 4.10 or  lower on Aarch64 (cavium ThunderX), its failing with
abort  "qemu-system-aarch64: KVM_GET_DEVICE_ATTR failed: No such
device or address"

"GICv3 live migration support"  patch breaks the  compatibility b/w
kernel and qemu.

Is this expected behaviour,  can we provide a fix without  breaking
compatibility b/w kernel and qemu .

For  more information  below is gdb back trace .
-------------------------------------------------------------------

Thread 1 "qemu-system-aar" received signal SIGABRT, Aborted.
0x0000ffffa4bd7528 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
54    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x0000ffffa4bd7528 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x0000ffffa4bd89e0 in __GI_abort () at abort.c:89
#2  0x0000000000479d3c in kvm_device_access (fd=23, group=6, attr=50788,
val=0x15c80d8, write=false)
    at /home/ubuntu/workarea/sources/qemu-stable/qemu-2.9/kvm-all.c:2225
#3  0x00000000004ed948 in arm_gicv3_icc_reset (env=0x13a8ff8, ri=0x1629ed0) at
/home/ubuntu/workarea/sources/qemu-stable/qemu-2.9/hw/intc/arm_gicv3_kvm.c:618
#4  0x0000000000610414 in cp_reg_reset (key=0x1629cf0, value=0x1629ed0,
opaque=0x13a0cf0) at
/home/ubuntu/workarea/sources/qemu-stable/qemu-2.9/target/arm/cpu.c:75
#5  0x0000ffffa4fb0878 in g_hash_table_foreach () from
/lib/aarch64-linux-gnu/libglib-2.0.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)



Verified guest  booting on host 4.10 kernel by reverting "GICv3:
support state save/restore" patches  and  guest booted without issues.

Regards,
Prakash B

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Aarch64: Qemu master or 2.9.0-rc1 breaks compatibility with 4.10 kernel.
  2017-03-28 11:22 [Qemu-devel] Aarch64: Qemu master or 2.9.0-rc1 breaks compatibility with 4.10 kernel Prakash B
@ 2017-03-28 11:29 ` Peter Maydell
  2017-03-28 11:59   ` Auger Eric
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2017-03-28 11:29 UTC (permalink / raw)
  To: Prakash B
  Cc: QEMU Developers, qemu-arm, Eric Auger, Marc Zyngier,
	Christoffer Dall, kvmarm@lists.cs.columbia.edu, Kumar, Vijaya,
	sgoutham, bprakash

On 28 March 2017 at 12:22, Prakash B <bjsprakash.linux@gmail.com> wrote:
> Qemu master or v2.9.0-rc1 doesn't launch guest  when host kernel
> version 4.10 or  lower on Aarch64 (cavium ThunderX), its failing with
> abort  "qemu-system-aarch64: KVM_GET_DEVICE_ATTR failed: No such
> device or address"
>
> "GICv3 live migration support"  patch breaks the  compatibility b/w
> kernel and qemu.
>
> Is this expected behaviour,  can we provide a fix without  breaking
> compatibility b/w kernel and qemu .

This is indeed not supposed to happen. Eric, can you take a look?

thanks
-- PMM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Aarch64: Qemu master or 2.9.0-rc1 breaks compatibility with 4.10 kernel.
  2017-03-28 11:29 ` Peter Maydell
@ 2017-03-28 11:59   ` Auger Eric
  0 siblings, 0 replies; 3+ messages in thread
From: Auger Eric @ 2017-03-28 11:59 UTC (permalink / raw)
  To: Peter Maydell, Prakash B
  Cc: Marc Zyngier, bprakash, QEMU Developers, Kumar, Vijaya, qemu-arm,
	sgoutham, kvmarm@lists.cs.columbia.edu, Christoffer Dall

Hi Peter,

On 28/03/2017 13:29, Peter Maydell wrote:
> On 28 March 2017 at 12:22, Prakash B <bjsprakash.linux@gmail.com> wrote:
>> Qemu master or v2.9.0-rc1 doesn't launch guest  when host kernel
>> version 4.10 or  lower on Aarch64 (cavium ThunderX), its failing with
>> abort  "qemu-system-aarch64: KVM_GET_DEVICE_ATTR failed: No such
>> device or address"
>>
>> "GICv3 live migration support"  patch breaks the  compatibility b/w
>> kernel and qemu.
>>
>> Is this expected behaviour,  can we provide a fix without  breaking
>> compatibility b/w kernel and qemu .
> 
> This is indeed not supposed to happen. Eric, can you take a look?

Yes I start the investigations.

Thanks

Eric
> 
> thanks
> -- PMM
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-28 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28 11:22 [Qemu-devel] Aarch64: Qemu master or 2.9.0-rc1 breaks compatibility with 4.10 kernel Prakash B
2017-03-28 11:29 ` Peter Maydell
2017-03-28 11:59   ` Auger Eric

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).