[PATCH] util: fix build with musl libc on ppc64le

2023-12-19 Thread Natanael Copa
Signed-off-by: Natanael Copa --- util/cpuinfo-ppc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/cpuinfo-ppc.c b/util/cpuinfo-ppc.c index 1ea3db0ac8..b2d8893a06 100644 --- a/util/cpuinfo-ppc.c +++ b/util/cpuinfo-ppc.c @@ -6,10 +6,10 @@ #include "qemu/os

[PATCH] target/riscv/kvm: do not use non-portable strerrorname_np()

2023-12-18 Thread Natanael Copa
Buglink: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15541 Signed-off-by: Natanael Copa --- target/riscv/kvm/kvm-cpu.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c index 45b6cf1cfa

[PATCH] edk2: fix TPM 2.0 regression

2022-10-14 Thread Natanael Copa
/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5 Signed-off-by: Natanael Copa --- I have not really been able to test this, due to issues with building the OVMF_CODE.fd from the qemu source tree. I do have tested building OVMF_CODE.fd for the Alpine Linux package, and adding -D TPM2_ENABLE dis solve the issue in windows guests

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Mon, 25 Feb 2019 13:06:16 + Peter Maydell wrote: > On Mon, 25 Feb 2019 at 12:22, Natanael Copa wrote: > > > > On Mon, 25 Feb 2019 10:34:23 + > > Peter Maydell wrote: > > > The short term fix is to fix your toolchain/compilation > > > envi

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Mon, 25 Feb 2019 10:34:23 + Peter Maydell wrote: > On Mon, 25 Feb 2019 at 10:24, Natanael Copa wrote: > > > > On Sat, 23 Feb 2019 16:18:15 + > > Peter Maydell wrote: > > > > > On Sat, 23 Feb 2019 at 16:05, Natanael Copa > > >

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Sat, 23 Feb 2019 16:18:15 + Peter Maydell wrote: > On Sat, 23 Feb 2019 at 16:05, Natanael Copa wrote: > > I was thinking of something in the lines of: > > > > typedef volatile uint16_t __attribute__((__may_alias__)) volatile_uint16_t; > > static inline in

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-23 Thread Natanael Copa
On Fri, 22 Feb 2019 14:04:20 + Stefan Hajnoczi wrote: > On Fri, Feb 22, 2019 at 12:57 PM Fernando Casas Schössow > wrote: > > I have CCed Natanael Copa, qemu package maintainer in Alpine Linux. > > Fernando: Can you confirm that the bug occurs with an unmodified > Alp

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-23 Thread Natanael Copa
On Fri, 22 Feb 2019 14:04:20 + Stefan Hajnoczi wrote: > On Fri, Feb 22, 2019 at 12:57 PM Fernando Casas Schössow > wrote: > > I have CCed Natanael Copa, qemu package maintainer in Alpine Linux. Hi! ... > Richard: Commit 7db2145a6826b14efceb8dd64bfe6ad8647072eb ("bswa

[Qemu-devel] [PATCH] linux-user: fix build with musl on aarch64

2016-12-15 Thread Natanael Copa
Use the standard uint64_t instead of internal __u64. This fixes compiler error with musl libc on aarch64: .../qemu-2.7.0/linux-user/host/aarch64/hostdep.h:28:5: error: unknown type name '__u64' __u64 *pcreg = >uc_mcontext.pc; ^ Signed-off-by: Natanael Copa <nc...@alpinelin

[Qemu-devel] [PATCH v2] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-06-04 Thread Natanael Copa
-by: Natanael Copa nc...@alpinelinux.org --- Changes v1 - v2: - replace NSIG with _NSIG since thats use everywhere else in the code. - add runtime asserts. linux-user/signal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index

Re: [Qemu-devel] [PATCH 0/5] fix building with musl libc

2014-06-03 Thread Natanael Copa
On Wed, 4 Jun 2014 00:37:44 +0100 Peter Maydell peter.mayd...@linaro.org wrote: On 29 April 2014 15:17, Natanael Copa nc...@alpinelinux.org wrote: In addition to the previoiusly sent linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct, those

Re: [Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-29 Thread Natanael Copa
On Wed, 23 Apr 2014 19:00:41 +0100 Peter Maydell peter.mayd...@linaro.org wrote: On 23 April 2014 15:59, Natanael Copa nc...@alpinelinux.org wrote: Avoid using glibc specific internals. Calculate the sigevent pad size is calculated in similar way as kernel does it. This is needed

[Qemu-devel] [PATCH] linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct

2014-04-29 Thread Natanael Copa
Use the public sigset_t instead of the glibc specific internal __sigset_t in _syscall. Calculate the sigevent pad size is calculated in similar way as kernel does it instead of using glibc internal field _pad. This is needed for building with musl libc. Signed-off-by: Natanael Copa nc

Re: [Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-29 Thread Natanael Copa
On Wed, 23 Apr 2014 19:00:41 +0100 Peter Maydell peter.mayd...@linaro.org wrote: On 23 April 2014 15:59, Natanael Copa nc...@alpinelinux.org wrote: Avoid using glibc specific internals. Calculate the sigevent pad size is calculated in similar way as kernel does it. This is needed

[Qemu-devel] [PATCH v3] linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct

2014-04-29 Thread Natanael Copa
Use the public sigset_t instead of the glibc specific internal __sigset_t in _syscall. Calculate the sigevent pad size is calculated in similar way as kernel does it instead of using glibc internal field _pad. This is needed for building with musl libc. Signed-off-by: Natanael Copa nc

[Qemu-devel] [PATCH 1/5] util/qemu-openpty: fix build with musl libc by include termios.h as fallback

2014-04-29 Thread Natanael Copa
); ^ Signed-off-by: Natanael Copa nc...@alpinelinux.org --- util/qemu-openpty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/qemu-openpty.c b/util/qemu-openpty.c index 4febfe9..4c53211 100644 --- a/util/qemu-openpty.c +++ b/util/qemu-openpty.c @@ -47,6 +47,8 @@ #elif defined CONFIG_SOLARIS

[Qemu-devel] [PATCH 0/5] fix building with musl libc

2014-04-29 Thread Natanael Copa
be defined in libc so patch for that is not included here. Natanael Copa (5): util/qemu-openpty: fix build with musl libc by include termios.h as fallback xen: replace ffsl with ctzl vhost: replace ffsl with ctzl exec: replace ffsl with ctzl linux-user/signal.c: define __SIGRTMIN/MAX

[Qemu-devel] [PATCH 2/5] xen: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
ffsl is a GNU extension and not available in musl libc. See also commit fbeadf50 (bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl) on why ctzl should be used instead of ffsl. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- xen-all.c | 2 +- 1 file changed, 1

[Qemu-devel] [PATCH 4/5] exec: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
See commit fbeadf50 (bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl) on why ctzl should be used instead of ffsl. This is also needed for musl libc which does not implement ffsl. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- include/exec/ram_addr.h | 2 +- 1

[Qemu-devel] [PATCH 3/5] vhost: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
it bitops_ctzl) on why ctzl should be used instead of ffsl. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- hw/virtio/vhost.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 9e336ad..f62cfaf 100644 --- a/hw/virtio/vhost.c +++ b

[Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available on all platforms, so we define those if they are missing. This is needed for musl libc. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- linux-user/signal.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
On Tue, 29 Apr 2014 08:28:29 -0600 Eric Blake ebl...@redhat.com wrote: On 04/29/2014 08:17 AM, Natanael Copa wrote: The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available on all platforms, so we define those if they are missing. This is needed for musl libc. Signed

Re: [Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
On Tue, 29 Apr 2014 09:02:13 -0600 Eric Blake ebl...@redhat.com wrote: On 04/29/2014 08:53 AM, Natanael Copa wrote: On Tue, 29 Apr 2014 08:28:29 -0600 Eric Blake ebl...@redhat.com wrote: On 04/29/2014 08:17 AM, Natanael Copa wrote: The __SIGRTMIN and __SIGRTMAX are glibc internals

[Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-23 Thread Natanael Copa
Avoid using glibc specific internals. Calculate the sigevent pad size is calculated in similar way as kernel does it. This is needed for building with musl libc. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- linux-user/syscall.c | 2 +- linux-user/syscall_defs.h | 6 +- 2

[Qemu-devel] [PATCH v5] configure: properly check if -lrt and -lm is needed

2012-09-12 Thread Natanael Copa
for this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- Changes v4-v5: - Do not exit with error if librt fails. Apparently, mingw32 does not use those functions at all so we

Re: [Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-29 Thread Natanael Copa
On Tue, 28 Aug 2012 17:16:18 + Blue Swirl blauwir...@gmail.com wrote: On Tue, Aug 28, 2012 at 7:33 AM, Natanael Copa nc...@alpinelinux.org wrote: On Tue, 21 Aug 2012 18:12:05 + Blue Swirl blauwir...@gmail.com wrote: Now I get this on mingw32: config-host.mak is out-of-date

Re: [Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-28 Thread Natanael Copa
On Tue, 21 Aug 2012 18:12:05 + Blue Swirl blauwir...@gmail.com wrote: Now I get this on mingw32: config-host.mak is out-of-date, running configure Error: librt check failed Any news on the v4 patch, which should fix this? Thanks!

[Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-22 Thread Natanael Copa
for this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- Changes v3-v4: - Use $pthread_lib from previous pthread test We don't need to add it to $LIBS since it should be there already

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-21 Thread Natanael Copa
On Mon, 20 Aug 2012 19:53:22 + Blue Swirl blauwir...@gmail.com wrote: - Do not remove the explicit add of -lm unless Haiku. This was due to http://www.mail-archive.com/qemu-devel@nongnu.org/msg102965.html I am not sure if this is valid, though. Certainly building a linux-user

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Natanael Copa
On Mon, Aug 20, 2012 at 3:27 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 16 August 2012 14:22, Natanael Copa natanael.c...@gmail.com wrote: Fixes build against uClibc. uClibc provides 2 versions of clock_gettime(), one with realtime support and one without (this is so you can avoid

[Qemu-devel] [PATCH v3] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Natanael Copa
for this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- Changes v2-v3: - Check if -lpthread is needed with static -lrt configure | 37 - 1 file

[Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-16 Thread Natanael Copa
for this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa nc...@alpinelinux.org --- The Xen people have nagged me to get this patch upstream so I have come up with a rebased v2 patch after consulting with pm215

[Qemu-devel] Release Engineering: qemu-1.1.1.tar.bz2 release name and filetype mismatch

2012-07-17 Thread Natanael Copa
Hi, The qemu-1.1.1 release tarball[1] has file extention .tar.bz2 while the real file format is gzip. $ file Downloads/qemu-1.1.1.tar.bz2 Downloads/qemu-1.1.1.tar.bz2: gzip compressed data, from Unix, last modified: Thu Jul 12 21:52:36 2012 Would it be possible to add a tarball which has a

[Qemu-devel] [PATCH] configure: properly check if -lrt and -lm is needed

2012-06-14 Thread Natanael Copa
for this function in addition. We also need check if -lm is needed for isnan(). Signed-off-by: Natanael Copa nc...@alpinelinux.org --- Makefile|4 ++-- Makefile.target |4 +--- configure | 33 +++-- 3 files changed, 34 insertions(+), 7 deletions(-) diff