Re: [Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads

2018-01-27 Thread Anatoly Trosinenko
My patch is kind of trivial quick fix that just eliminates these unaligned reads and doesn't seem to require complicated testing supposing my code properly handles integer promotion (and hope it will not slow the interpreter down). Aligning everything, on the other hand, can not only remove the

Re: [Qemu-devel] [PATCH] vcpu: create vcpu thread with QEMU_THREAD_DETACHED mode

2018-01-27 Thread CheneyLin
> -原始邮件- > 发件人: "Paolo Bonzini" > 发送时间: 2018-01-25 17:59:03 (星期四) > 收件人: linzhecheng , qemu-devel@nongnu.org > 抄送: crosthwaite.pe...@gmail.com, r...@twiddle.net > 主题: Re: [Qemu-devel] [PATCH] vcpu: create vcpu thread with > QEMU_THREAD_DETACHED

Re: [Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads

2018-01-27 Thread Stefan Weil
Am 27.01.2018 um 14:49 schrieb Anatoly Trosinenko: > Use ldl_he_p / ldq_he_p functions instead of a plain memory access > through pointer. > > Signed-off-by: Anatoly Trosinenko > --- > tcg/tci.c | 16 +++- > 1 file changed, 11 insertions(+), 5

[Qemu-devel] [PATCH 1/1] tci: eliminate UB due to unaligned reads

2018-01-27 Thread Anatoly Trosinenko
Use ldl_he_p / ldq_he_p functions instead of a plain memory access through pointer. Signed-off-by: Anatoly Trosinenko --- tcg/tci.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tcg/tci.c b/tcg/tci.c index

[Qemu-devel] [PATCH 0/1] Fix unaligned reads in the tcg/tci.c

2018-01-27 Thread Anatoly Trosinenko
The code in tcg/tci.c reads some data from TCI bytecode through pointer dereferencing. As far as I know unaligned reads in such a way are undefined behavior and compiling with -fsanitize=undefined enumerated them as such at run-time. I have replaced such reads with invocations of ld{l,q}_he_p. A

[Qemu-devel] [Bug 1703795] Re: Unable to release mouse in SDL2 mode

2018-01-27 Thread jmicco
I am seeing this on my system as well - the exact same symptoms. Has anyone investigated this problem? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1703795 Title: Unable to release mouse in SDL2

Re: [Qemu-devel] [PATCH v3 41/45] hw/hppa: Implement DINO system board

2018-01-27 Thread Helge Deller
Hi Philipppe, On 25.01.2018 12:22, Philippe Mathieu-Daudé wrote: > Hi Richard, Helge, > > On 01/24/2018 08:26 PM, Richard Henderson wrote: >> From: Helge Deller >> >> Now that we have the prerequisites in target/hppa/, >> implement the hardware for a PA7100LC. >> >> This also

Re: [Qemu-devel] [PATCH] spapr_pci: fix MSI/MSIX selection

2018-01-27 Thread David Gibson
On Fri, Jan 26, 2018 at 11:25:24PM +0100, Greg Kurz wrote: > In various place we don't correctly check if the device supports MSI or > MSI-X. This can cause devices to be advertised with MSI support, even > if they only support MSI-X (like virtio-pci-* devices for example): > >